ctest_test.rst 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. ctest_test
  2. ----------
  3. Run tests in the project build tree.
  4. ::
  5. ctest_test([BUILD build_dir] [APPEND]
  6. [START start number] [END end number]
  7. [STRIDE stride number] [EXCLUDE exclude regex ]
  8. [INCLUDE include regex] [RETURN_VALUE res]
  9. [EXCLUDE_LABEL exclude regex]
  10. [INCLUDE_LABEL label regex]
  11. [PARALLEL_LEVEL level]
  12. [SCHEDULE_RANDOM on]
  13. [STOP_TIME time of day])
  14. Tests the given build directory and stores results in Test.xml. The
  15. second argument is a variable that will hold value. Optionally, you
  16. can specify the starting test number START, the ending test number
  17. END, the number of tests to skip between each test STRIDE, a regular
  18. expression for tests to run INCLUDE, or a regular expression for tests
  19. to not run EXCLUDE. EXCLUDE_LABEL and INCLUDE_LABEL are regular
  20. expression for test to be included or excluded by the test property
  21. LABEL. PARALLEL_LEVEL should be set to a positive number representing
  22. the number of tests to be run in parallel. SCHEDULE_RANDOM will
  23. launch tests in a random order, and is typically used to detect
  24. implicit test dependencies. STOP_TIME is the time of day at which the
  25. tests should all stop running.
  26. The APPEND option marks results for append to those previously
  27. submitted to a dashboard server since the last ctest_start. Append
  28. semantics are defined by the dashboard server in use.