ctest
Verified for current stable LTS
Ctest Command: Filter Tests By Regex
Use for filter tests by regex with Ctest. Exact CLI syntax to filter tests by regex using Ctest.
When to use this: Use for filter tests by regex with Ctest.
Command Syntax
ctest --output-on-failure -R '^<regex>$' ctest --output-on-failure -R '^<regex>$' Command Breakdown
--output-on-failure- Command Option
- Tool-specific option used by this command invocation.
-R- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to filter tests by regex using Ctest.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.