Skip to content
Andrew Hu edited this page May 11, 2019 · 5 revisions

Tests

If you want to run the tests, make sure that you have BUILD_TESTS and BUILD_TEST_TOOLS on in CMake. You'll be looking for an executable called run_test_suite.

If you forget to turn on BUILD_TESTS it will build the executable, but complain at run time.

Note: run_test_suite.exe may segfault and some tests may fail if llvm, roadrunner, or its dependencies are built and installed in debug mode. If this occurs, rebuild and reinstall llvm, roadrunner and the roadrunner dependencies on release mode (preferably in folders separate from the debug build and install).

If you want to debug it, you have to build LLVM and dependencies in Debug settings, too.

If you don't have a roadrunner.conf file, you can still run the tests, just set the appropriate command line arguments shown.

./run_test_suite.exe -m ../../../source/roadrunner/models/sbml-test-suite/ -r out/tests.out -t out/

Also, you need to create the out/ folder

You may need to download newer versions of the libsbml test suite, since they haven't been updated in a while. You can find them at sbml.org (which is down for the time being but should be up shortly), and they will replace models/sbml-test-suite/cases/semantic

Make sure that you are installing the newly built files before debugging! If Visual Studio tells you that roadrunner or another project is out of date before debugging and you just click build, then it won't install it :(

Visual Studio

Set run_test_suite to the default project and then click the debug play button. Also, add the appropriate command line arguments to the arguments section of the properties page of the project