cmopts_test_disable_analysis#
Disable requested analysis for a given test.
cmopts_test_disable_analysis(<target> <tools...>)
Arguments#
The named <target>
must have been created by a command such as add_executable or add_library and must not be an ALIAS target.
If ALL
is passed as <tools>
, all available analysis will be disabled for a given target.
If you want a more granular control over what analysis to be disabled, you can use one or more of the following options for <tools>
:
Examples#
Disable all available analysis for a specific target:
cmopts_test_disable_analysis(target1 ALL)
# equals to
cmopts_test_disable_analysis(target1 MEMCHECK)
Run all tests with memory checks, excluding those ones that disabled them:
ctest -LE "^DISABLE_MEMCHECK$" -T memcheck