ctest_memcheck.rst 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ctest_memcheck
  2. --------------
  3. Perform the :ref:`CTest MemCheck Step` as a :ref:`Dashboard Client`.
  4. .. code-block:: cmake
  5. ctest_memcheck([BUILD <build-dir>] [APPEND]
  6. [START <start-number>]
  7. [END <end-number>]
  8. [STRIDE <stride-number>]
  9. [EXCLUDE <exclude-regex>]
  10. [INCLUDE <include-regex>]
  11. [EXCLUDE_LABEL <label-exclude-regex>]
  12. [INCLUDE_LABEL <label-include-regex>]
  13. [EXCLUDE_FIXTURE <regex>]
  14. [EXCLUDE_FIXTURE_SETUP <regex>]
  15. [EXCLUDE_FIXTURE_CLEANUP <regex>]
  16. [PARALLEL_LEVEL <level>]
  17. [RESOURCE_SPEC_FILE <file>]
  18. [TEST_LOAD <threshold>]
  19. [SCHEDULE_RANDOM <ON|OFF>]
  20. [STOP_ON_FAILURE]
  21. [STOP_TIME <time-of-day>]
  22. [RETURN_VALUE <result-var>]
  23. [CAPTURE_CMAKE_ERROR <result-var>]
  24. [REPEAT <mode>:<n>]
  25. [OUTPUT_JUNIT <file>]
  26. [DEFECT_COUNT <defect-count-var>]
  27. [QUIET]
  28. )
  29. Run tests with a dynamic analysis tool and store results in
  30. ``MemCheck.xml`` for submission with the :command:`ctest_submit`
  31. command.
  32. Most options are the same as those for the :command:`ctest_test` command.
  33. The options unique to this command are:
  34. ``DEFECT_COUNT <defect-count-var>``
  35. .. versionadded:: 3.8
  36. Store in the ``<defect-count-var>`` the number of defects found.