Building tests - saprykin/plibsys GitHub Wiki

Building tests is enabled by default. To disable, pass -DPLIBSYS_TESTS=OFF. To run tests, use ctest command in build directory, or make test on UNIX-like systems.

There is also a separate bash script in scripts directory to run compiled tests in case if CMake is not capable to run tests (i.e. on OS/2).

Note. As test binaries and the library itself are compiled in different directories, you may need to set library search path properly (i.e. LD_LIBRARY_PATH or PATH variables), or copy the library to the directory with binaries.