ctest
CMake test driver program. tldr-pages
On several platforms
Several platforms
Run all tests in the current CMake build directory
ctestIdentifyRun all tests defined in the CMake build directory, executing 4 jobs at a time in parallel
ctest --parallel 4IdentifyRun all tests on all processor cores
ctest --parallelIdentifyRun all tests defined in the CMake build directory and print detailed logs on failed tests
ctest --output-on-failureIdentifyList available tests
ctest --show-onlyIdentifyRun a single test based on its name, or filter on a regex
ctest --output-on-failure --tests-regex '^test_name$'Identify