ctest
CMake test driver program. More information: https://manned.org/ctest.
- Run all tests in the current CMake build directory:
ctest
- Run all tests defined in the CMake build directory, executing 4 [j]obs at a time in parallel:
ctest 4
- Run all tests on all processor cores:
ctest
- Run all tests defined in the CMake build directory and print detailed logs on failed tests:
ctest --output-on-failure
- List available tests:
ctest
- Run a single test based on its name, or filter on a
regex:
ctest --output-on-failure '^$'
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
