execution-properties.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .. This file was generated by Utilities/Scripts/regenerate-presets.py
  2. from Help/manual/presets/schema.yaml. Do not edit.
  3. .. _`CMakePresets.testPresets.execution.stopOnFailure`:
  4. ``stopOnFailure``
  5. An optional bool. If ``true``, equivalent to passing
  6. :ctest-option:`--stop-on-failure` on the command line.
  7. .. _`CMakePresets.testPresets.execution.enableFailover`:
  8. ``enableFailover``
  9. An optional bool. If ``true``, equivalent to passing
  10. :ctest-option:`-F` on the command line.
  11. .. _`CMakePresets.testPresets.execution.jobs`:
  12. ``jobs``
  13. An optional integer. Equivalent to passing
  14. :ctest-option:`--parallel` on the command line. If the value is
  15. ``0``, it is equivalent to unbounded parallelism.
  16. .. presets-versionchanged:: 11
  17. This field can also be a string, in which case it must be
  18. empty, and is equivalent to passing ``--parallel`` with
  19. ``<jobs>`` omitted.
  20. .. versionchanged:: 4.3
  21. This field does not accept negative integer values,
  22. regardless of the version in the preset file.
  23. .. _`CMakePresets.testPresets.execution.resourceSpecFile`:
  24. ``resourceSpecFile``
  25. An optional string. Equivalent to passing
  26. :ctest-option:`--resource-spec-file` on the command line. This
  27. field supports `macro expansion`_.
  28. .. _`CMakePresets.testPresets.execution.testLoad`:
  29. ``testLoad``
  30. An optional integer. Equivalent to passing
  31. :ctest-option:`--test-load` on the command line.
  32. .. _`CMakePresets.testPresets.execution.showOnly`:
  33. ``showOnly``
  34. An optional string. Equivalent to passing
  35. :ctest-option:`--show-only` on the command line. The string
  36. must be one of the following values:
  37. * ``human``
  38. * ``json-v1``
  39. .. _`CMakePresets.testPresets.execution.repeat`:
  40. ``repeat``
  41. An optional object specifying how to repeat tests. Equivalent
  42. to passing :ctest-option:`--repeat` on the command line.
  43. The object must have the following fields:
  44. .. include:: presets/repeat-properties.rst
  45. .. _`CMakePresets.testPresets.execution.interactiveDebugging`:
  46. ``interactiveDebugging``
  47. An optional bool. If ``true``, equivalent to passing
  48. :ctest-option:`--interactive-debug-mode 1` on the command line.
  49. If ``false``, equivalent to passing
  50. :ctest-option:`--interactive-debug-mode 0` on the command line.
  51. .. _`CMakePresets.testPresets.execution.scheduleRandom`:
  52. ``scheduleRandom``
  53. An optional bool. If ``true``, equivalent to passing
  54. :ctest-option:`--schedule-random` on the command line.
  55. .. _`CMakePresets.testPresets.execution.timeout`:
  56. ``timeout``
  57. An optional integer. Equivalent to passing
  58. :ctest-option:`--timeout` on the command line.
  59. .. _`CMakePresets.testPresets.execution.noTestsAction`:
  60. ``noTestsAction``
  61. An optional string specifying the behavior if no tests are
  62. found. Must be one of the following values:
  63. ``default``
  64. Equivalent to not passing any value on the command line.
  65. ``error``
  66. Equivalent to passing :ctest-option:`--no-tests=error`
  67. on the command line.
  68. ``ignore``
  69. Equivalent to passing :ctest-option:`--no-tests=ignore`
  70. on the command line.
  71. .. _`CMakePresets.testPresets.execution.testPassthroughArguments`:
  72. ``testPassthroughArguments``
  73. .. presets-versionadded:: 12
  74. An optional array of strings. Each element is forwarded as an
  75. argument to every test executable, equivalent to passing
  76. arguments after :option:`ctest --` on the command line.
  77. When both preset and command-line passthrough arguments are
  78. specified, preset arguments appear first, followed by
  79. command-line arguments.