Checking the Testcases
Before commiting changes the developers must run the tests that are bundled with the code.
These tests check that the code has not been broken before a commit.
How to run all the tests ?
First go to the build directory and compile the whole project:
$> make
then run all the tests with:
$> make test
How to run only part of the tests?
To run part of the tests you must use the ctest tool (comes with cmake).
Run a test by name
This runs all tests which match the name jets:
$> ctest -R jets
This runs all tests except which match the name linear:
$> ctest -E linear
Options -E and -R can be used together
Run a test by number
This runs the tests with numbers 43 to 56:
$> ctest -I 43,56
Run an exact list of tests
This runs the tests with numbers 43,56,78,79,83:
$> ctest -I 43,43,,43,56,78,79,83
Note the repetition of test 43 in the start 43,43,,43 is correct.
