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