commands.sh

ctest

all

CMake test driver program.

More info →

Options (3)

-j, --parallelboolean

Run all tests defined in the CMake project, executing 4 [j]obs at a time in parallel

Example: ctest {{[-j|--parallel]}} {{4}} --output-on-failure
-N, --show-onlyboolean

List available tests

Example: ctest {{[-N|--show-only]}}
-R, --tests-regexboolean

Run a single test based on its name, or filter on a `regex`

Example: ctest --output-on-failure {{[-R|--tests-regex]}} '^{{test_name}}$'

Examples (3)

Run all tests defined in the CMake project, executing 4 [j]obs at a time in parallel

ctest [-j|--parallel] 4 --output-on-failure

List available tests

ctest [-N|--show-only]

Run a single test based on its name, or filter on a `regex`

ctest --output-on-failure [-R|--tests-regex] '^test_name$'
made by @shridhargupta | data from tldr-pages