Forrest logo
back to context overview

ctest

List of commands for ctest:

  • ctest:tldr:0b190 ctest: Run all tests defined in the CMake project, executing 4 jobs at a time in parallel.
    $ ctest -j${4} --output-on-failure
    try on your machine
    explain this command
  • ctest:tldr:25e10 ctest: Run a single test based on its name, or filter on a regular expression.
    $ ctest --output-on-failure -R '^${test_name}$'
    try on your machine
    explain this command
  • ctest:tldr:e74fe ctest: Show a list of available tests.
    $ ctest -N
    try on your machine
    explain this command
back to context overview