ctest_memcheck.rst 1.1 KB
Newer Older
1 2 3
ctest_memcheck
--------------

4
Perform the :ref:`CTest MemCheck Step` as a :ref:`Dashboard Client`.
5 6 7

::

8 9 10 11 12 13 14 15 16
  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>]
                 [PARALLEL_LEVEL <level>]
17
                 [TEST_LOAD <threshold>]
18 19 20
                 [SCHEDULE_RANDOM <ON|OFF>]
                 [STOP_TIME <time-of-day>]
                 [RETURN_VALUE <result-var>]
21
                 [DEFECT_COUNT <defect-count-var>]
22 23
                 [QUIET]
                 )
24 25


26 27 28
Run tests with a dynamic analysis tool and store results in
``MemCheck.xml`` for submission with the :command:`ctest_submit`
command.
29

30 31 32 33 34 35
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>``
  Store in the ``<defect-count-var>`` the number of defects found.