Testing

fw4spl uses CTest and CppUnit for unit testing.

Building

When building fw4spl with CMake, you will need to enable the BUILD_TESTS option, e.g. with the -DBUILD_TESTS=ON command line option.

Launching unit tests

In you build directory, you can launch the unit tests with the ctest command in the following way:

# Launch the tests sequentially
ctest .

# Launch the tests using 4 jobs, similar to the -j option of make
ctest -j 4 .

# You can also use the make or ninja commands to do so
make test

ninja test

Additional data

Additional data need to be download to run all the unit tests. They are available at the following link. You can then specify the directory, where the data are located, with the FWTEST_DATA_DIR environment variable.