The standard command make check will run the unit tests.

The following options can be combined of course:


Use make check VERBOSE=1 to get a verbose output - which checks were run, skipped, failed...

Preventing cleanup of logs

Use make check TESTS=""; this will skip the "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 ctest or make test to run the tests; use ctest -V to run with verbose output.

Updated by stbuehler about 5 years ago · 1 revisions