cmake/Help/command/ctest_memcheck.rst

46 lines
1.5 KiB
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
ctest_memcheck
--------------
2015-08-17 11:37:30 +02:00
Perform the :ref:`CTest MemCheck Step` as a :ref:`Dashboard Client`.
2014-08-03 19:52:23 +02:00
2023-05-23 16:38:00 +02:00
.. code-block:: cmake
2014-08-03 19:52:23 +02:00
2015-08-17 11:37:30 +02:00
ctest_memcheck([BUILD <build-dir>] [APPEND]
[START <start-number>]
[END <end-number>]
[STRIDE <stride-number>]
[EXCLUDE <exclude-regex>]
[INCLUDE <include-regex>]
[EXCLUDE_LABEL <label-exclude-regex>]
[INCLUDE_LABEL <label-include-regex>]
2017-07-20 19:35:53 +02:00
[EXCLUDE_FIXTURE <regex>]
[EXCLUDE_FIXTURE_SETUP <regex>]
[EXCLUDE_FIXTURE_CLEANUP <regex>]
2015-08-17 11:37:30 +02:00
[PARALLEL_LEVEL <level>]
2021-09-14 00:13:48 +02:00
[RESOURCE_SPEC_FILE <file>]
2015-11-17 17:22:37 +01:00
[TEST_LOAD <threshold>]
2015-08-17 11:37:30 +02:00
[SCHEDULE_RANDOM <ON|OFF>]
2021-09-14 00:13:48 +02:00
[STOP_ON_FAILURE]
2015-08-17 11:37:30 +02:00
[STOP_TIME <time-of-day>]
[RETURN_VALUE <result-var>]
2021-09-14 00:13:48 +02:00
[CAPTURE_CMAKE_ERROR <result-var>]
[REPEAT <mode>:<n>]
[OUTPUT_JUNIT <file>]
2017-04-14 19:02:05 +02:00
[DEFECT_COUNT <defect-count-var>]
2015-08-17 11:37:30 +02:00
[QUIET]
)
2014-08-03 19:52:23 +02:00
2015-08-17 11:37:30 +02:00
Run tests with a dynamic analysis tool and store results in
``MemCheck.xml`` for submission with the :command:`ctest_submit`
command.
2017-04-14 19:02:05 +02:00
Most options are the same as those for the :command:`ctest_test` command.
The options unique to this command are:
``DEFECT_COUNT <defect-count-var>``
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.8
2017-04-14 19:02:05 +02:00
Store in the ``<defect-count-var>`` the number of defects found.