ctest_memcheck — CMake 4.0.1 Documentation (original) (raw)
Perform the CTest MemCheck Step as a Dashboard Client.
ctest_memcheck([BUILD ] [APPEND] [START ] [END ] [STRIDE ] [EXCLUDE ] [INCLUDE ] [EXCLUDE_LABEL ] [INCLUDE_LABEL ] [EXCLUDE_FIXTURE ] [EXCLUDE_FIXTURE_SETUP ] [EXCLUDE_FIXTURE_CLEANUP ] [PARALLEL_LEVEL ] [RESOURCE_SPEC_FILE ] [TEST_LOAD ] [SCHEDULE_RANDOM <ON|OFF>] [STOP_ON_FAILURE] [STOP_TIME ] [RETURN_VALUE ] [CAPTURE_CMAKE_ERROR ] [REPEAT :] [OUTPUT_JUNIT ] [DEFECT_COUNT ] [QUIET] )
Run tests with a dynamic analysis tool and store results inMemCheck.xml
for submission with the ctest_submit()command.
Most options are the same as those for the ctest_test() command.
The options unique to this command are:
DEFECT_COUNT <defect-count-var>
Added in version 3.8.
Store in the <defect-count-var>
the number of defects found.