Project

General

Profile

Actions

RunningUnitTests

The standard command make check will run the unit tests.

The following options can be combined of course:

Verbose

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

Preventing cleanup of logs

Use 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.

cmake

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 over 10 years ago · 1 revisions