The standard command
make check will run the unit tests.
The following options can be combined of course:
make check VERBOSE=1 to get a verbose output - which checks were run, skipped, failed...
Preventing cleanup of logs¶
make check TESTS="prepare.sh run-tests.pl"; this will skip the
cleanup.sh "test" which removes all the temporary (log) files.
Selecting only some tests¶
Use something like
make check RUNTESTS="request core" to only select some of the tests. All
*.t files in
tests/ are tests that can be selected.
If you used cmake to build your project you can use
make test to run the tests; use
ctest -V to run with verbose output.
Updated by stbuehler about 3 years ago · 1 revisions