mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
The ctest(1) command line allows repeating -L/-LE to form an AND filter over test labels, but the ctest_test() and ctest_memcheck() scripting commands accepted only a single INCLUDE_LABEL/EXCLUDE_LABEL value, so a dashboard script could not express that filter. The label-matching engine already stores the include/exclude expressions as vectors and applies them with AND semantics; only the command binding was single-value. Change both keywords to multi-value (NonEmpty<vector<string>>) and hand the collected list straight to the engine. ctest_memcheck() gains the same behavior for free, since it inherits the option set. Fixes : #27497
48 lines
1.6 KiB
ReStructuredText
48 lines
1.6 KiB
ReStructuredText
ctest_memcheck
|
|
--------------
|
|
|
|
Perform the :ref:`CTest MemCheck Step` as a :ref:`Dashboard Client`.
|
|
|
|
.. code-block:: cmake
|
|
|
|
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>...]
|
|
[EXCLUDE_FIXTURE <regex>]
|
|
[EXCLUDE_FIXTURE_SETUP <regex>]
|
|
[EXCLUDE_FIXTURE_CLEANUP <regex>]
|
|
[PARALLEL_LEVEL <level>]
|
|
[RESOURCE_SPEC_FILE <file>]
|
|
[TEST_LOAD <threshold>]
|
|
[SCHEDULE_RANDOM <ON|OFF>]
|
|
[STOP_ON_FAILURE]
|
|
[STOP_TIME <time-of-day>]
|
|
[RETURN_VALUE <result-var>]
|
|
[CAPTURE_CMAKE_ERROR <result-var>]
|
|
[REPEAT <mode>:<n>]
|
|
[OUTPUT_JUNIT <file>]
|
|
[PRESET <preset>]
|
|
[PRESETS_FILE <path>]
|
|
[DEFECT_COUNT <defect-count-var>]
|
|
[QUIET]
|
|
)
|
|
|
|
|
|
Run tests with a dynamic analysis tool and store results in
|
|
``MemCheck.xml`` for submission with the :command:`ctest_submit`
|
|
command.
|
|
|
|
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>``
|
|
.. versionadded:: 3.8
|
|
|
|
Store in the ``<defect-count-var>`` the number of defects found.
|