ctest.1.rst 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811
  1. .. cmake-manual-description: CTest Command-Line Reference
  2. ctest(1)
  3. ********
  4. .. contents::
  5. Synopsis
  6. ========
  7. .. parsed-literal::
  8. `Run Tests`_
  9. ctest [<options>]
  10. `Build and Test Mode`_
  11. ctest --build-and-test <path-to-source> <path-to-build>
  12. --build-generator <generator> [<options>...]
  13. [--build-options <opts>...]
  14. [--test-command <command> [<args>...]]
  15. `Dashboard Client`_
  16. ctest -D <dashboard> [-- <dashboard-options>...]
  17. ctest -M <model> -T <action> [-- <dashboard-options>...]
  18. ctest -S <script> [-- <dashboard-options>...]
  19. ctest -SP <script> [-- <dashboard-options>...]
  20. `View Help`_
  21. ctest --help[-<topic>]
  22. Description
  23. ===========
  24. The **ctest** executable is the CMake test driver program.
  25. CMake-generated build trees created for projects that use the
  26. :command:`enable_testing` and :command:`add_test` commands have testing support.
  27. This program will run the tests and report results.
  28. .. _`Run Tests`:
  29. Run Tests
  30. =========
  31. .. program:: ctest
  32. .. option:: --preset <preset>, --preset=<preset>
  33. Use a test preset to specify test options. The project binary directory
  34. is inferred from the ``configurePreset`` key. The current working directory
  35. must contain CMake preset files.
  36. See :manual:`preset <cmake-presets(7)>` for more details.
  37. .. option:: --list-presets
  38. Lists the available test presets. The current working directory must contain
  39. CMake preset files.
  40. .. option:: -C <cfg>, --build-config <cfg>
  41. Choose configuration to test.
  42. Some CMake-generated build trees can have multiple build
  43. configurations in the same tree. This option can be used to specify
  44. which one should be tested. Example configurations are ``Debug`` and
  45. ``Release``.
  46. .. option:: --progress
  47. Enable short progress output from tests.
  48. When the output of **ctest** is being sent directly to a terminal, the
  49. progress through the set of tests is reported by updating the same line
  50. rather than printing start and end messages for each test on new lines.
  51. This can significantly reduce the verbosity of the test output.
  52. Test completion messages are still output on their own line for failed
  53. tests and the final test summary will also still be logged.
  54. This option can also be enabled by setting the environment variable
  55. :envvar:`CTEST_PROGRESS_OUTPUT`.
  56. .. option:: -V, --verbose
  57. Enable verbose output from tests.
  58. Test output is normally suppressed and only summary information is
  59. displayed. This option will show all test output.
  60. .. option:: -VV, --extra-verbose
  61. Enable more verbose output from tests.
  62. Test output is normally suppressed and only summary information is
  63. displayed. This option will show even more test output.
  64. .. option:: --debug
  65. Displaying more verbose internals of CTest.
  66. This feature will result in a large number of output that is mostly
  67. useful for debugging dashboard problems.
  68. .. option:: --output-on-failure
  69. Output anything outputted by the test program if the test should fail.
  70. This option can also be enabled by setting the
  71. :envvar:`CTEST_OUTPUT_ON_FAILURE` environment variable
  72. .. option:: --stop-on-failure
  73. Stop running the tests when the first failure happens.
  74. .. option:: -F
  75. Enable failover.
  76. This option allows CTest to resume a test set execution that was
  77. previously interrupted. If no interruption occurred, the ``-F`` option
  78. will have no effect.
  79. .. option:: -j <jobs>, --parallel <jobs>
  80. Run the tests in parallel using the given number of jobs.
  81. This option tells CTest to run the tests in parallel using given
  82. number of jobs. This option can also be set by setting the
  83. :envvar:`CTEST_PARALLEL_LEVEL` environment variable.
  84. This option can be used with the :prop_test:`PROCESSORS` test property.
  85. See `Label and Subproject Summary`_.
  86. .. option:: --resource-spec-file <file>
  87. Run CTest with :ref:`resource allocation <ctest-resource-allocation>` enabled,
  88. using the
  89. :ref:`resource specification file <ctest-resource-specification-file>`
  90. specified in ``<file>``.
  91. When ``ctest`` is run as a `Dashboard Client`_ this sets the
  92. ``ResourceSpecFile`` option of the `CTest Test Step`_.
  93. .. option:: --test-load <level>
  94. While running tests in parallel (e.g. with :option:`-j <ctest -j>`), try
  95. not to start tests when they may cause the CPU load to pass above a given
  96. threshold.
  97. When ``ctest`` is run as a `Dashboard Client`_ this sets the
  98. ``TestLoad`` option of the `CTest Test Step`_.
  99. .. option:: -Q, --quiet
  100. Make CTest quiet.
  101. This option will suppress all the output. The output log file will
  102. still be generated if the :option:`--output-log <ctest --output-log>` is
  103. specified. Options such as :option:`--verbose <ctest --verbose>`,
  104. :option:`--extra-verbose <ctest --extra-verbose>`, and
  105. :option:`--debug <ctest --debug>` are ignored
  106. if ``--quiet`` is specified.
  107. .. option:: -O <file>, --output-log <file>
  108. Output to log file.
  109. This option tells CTest to write all its output to a ``<file>`` log file.
  110. .. option:: --output-junit <file>
  111. Write test results in JUnit format.
  112. This option tells CTest to write test results to ``<file>`` in JUnit XML
  113. format. If ``<file>`` already exists, it will be overwritten. If using the
  114. :option:`-S <ctest -S>` option to run a dashboard script, use the
  115. ``OUTPUT_JUNIT`` keyword with the :command:`ctest_test` command instead.
  116. .. option:: -N, --show-only[=<format>]
  117. Disable actual execution of tests.
  118. This option tells CTest to list the tests that would be run but not
  119. actually run them. Useful in conjunction with the :option:`-R <ctest -R>`
  120. and :option:`-E <ctest -E>` options.
  121. ``<format>`` can be one of the following values.
  122. ``human``
  123. Human-friendly output. This is not guaranteed to be stable.
  124. This is the default.
  125. ``json-v1``
  126. Dump the test information in JSON format.
  127. See `Show as JSON Object Model`_.
  128. .. option:: -L <regex>, --label-regex <regex>
  129. Run tests with labels matching regular expression as described under
  130. :ref:`string(REGEX) <Regex Specification>`.
  131. This option tells CTest to run only the tests whose labels match the
  132. given regular expression. When more than one ``-L`` option is given,
  133. a test will only be run if each regular expression matches at least one
  134. of the test's labels (i.e. the multiple ``-L`` labels form an ``AND``
  135. relationship). See `Label Matching`_.
  136. .. option:: -R <regex>, --tests-regex <regex>
  137. Run tests matching regular expression.
  138. This option tells CTest to run only the tests whose names match the
  139. given regular expression.
  140. .. option:: -E <regex>, --exclude-regex <regex>
  141. Exclude tests matching regular expression.
  142. This option tells CTest to NOT run the tests whose names match the
  143. given regular expression.
  144. .. option:: -LE <regex>, --label-exclude <regex>
  145. Exclude tests with labels matching regular expression.
  146. This option tells CTest to NOT run the tests whose labels match the
  147. given regular expression. When more than one ``-LE`` option is given,
  148. a test will only be excluded if each regular expression matches at least one
  149. of the test's labels (i.e. the multiple ``-LE`` labels form an ``AND``
  150. relationship). See `Label Matching`_.
  151. .. option:: -FA <regex>, --fixture-exclude-any <regex>
  152. Exclude fixtures matching ``<regex>`` from automatically adding any tests to
  153. the test set.
  154. If a test in the set of tests to be executed requires a particular fixture,
  155. that fixture's setup and cleanup tests would normally be added to the test set
  156. automatically. This option prevents adding setup or cleanup tests for fixtures
  157. matching the ``<regex>``. Note that all other fixture behavior is retained,
  158. including test dependencies and skipping tests that have fixture setup tests
  159. that fail.
  160. .. option:: -FS <regex>, --fixture-exclude-setup <regex>
  161. Same as :option:`-FA <ctest -FA>` except only matching setup tests are
  162. excluded.
  163. .. option:: -FC <regex>, --fixture-exclude-cleanup <regex>
  164. Same as :option:`-FA <ctest -FA>` except only matching cleanup tests are
  165. excluded.
  166. .. option:: -I [Start,End,Stride,test#,test#|Test file], --tests-information
  167. Run a specific number of tests by number.
  168. This option causes CTest to run tests starting at number ``Start``,
  169. ending at number ``End``, and incrementing by ``Stride``. Any additional
  170. numbers after ``Stride`` are considered individual test numbers. ``Start``,
  171. ``End``, or ``Stride`` can be empty. Optionally a file can be given that
  172. contains the same syntax as the command line.
  173. .. option:: -U, --union
  174. Take the Union of :option:`-I <ctest -I>` and :option:`-R <ctest -R>`.
  175. When both :option:`-R <ctest -R>` and :option:`-I <ctest -I>` are specified
  176. by default the intersection of tests are run. By specifying ``-U`` the union
  177. of tests is run instead.
  178. .. option:: --rerun-failed
  179. Run only the tests that failed previously.
  180. This option tells CTest to perform only the tests that failed during
  181. its previous run. When this option is specified, CTest ignores all
  182. other options intended to modify the list of tests to run (
  183. :option:`-L <ctest -L>`, :option:`-R <ctest -R>`, :option:`-E <ctest -E>`,
  184. :option:`-LE <ctest -LE>`, :option:`-I <ctest -I>`, etc). In the event that
  185. CTest runs and no tests fail, subsequent calls to CTest with the
  186. ``--rerun-failed`` option will run the set of tests that most recently
  187. failed (if any).
  188. .. option:: --repeat <mode>:<n>
  189. Run tests repeatedly based on the given ``<mode>`` up to ``<n>`` times.
  190. The modes are:
  191. ``until-fail``
  192. Require each test to run ``<n>`` times without failing in order to pass.
  193. This is useful in finding sporadic failures in test cases.
  194. ``until-pass``
  195. Allow each test to run up to ``<n>`` times in order to pass.
  196. Repeats tests if they fail for any reason.
  197. This is useful in tolerating sporadic failures in test cases.
  198. ``after-timeout``
  199. Allow each test to run up to ``<n>`` times in order to pass.
  200. Repeats tests only if they timeout.
  201. This is useful in tolerating sporadic timeouts in test cases
  202. on busy machines.
  203. .. option:: --repeat-until-fail <n>
  204. Equivalent to :option:`--repeat until-fail:\<n\> <ctest --repeat>`.
  205. .. option:: --max-width <width>
  206. Set the max width for a test name to output.
  207. Set the maximum width for each test name to show in the output.
  208. This allows the user to widen the output to avoid clipping the test
  209. name which can be very annoying.
  210. .. option:: --interactive-debug-mode [0|1]
  211. Set the interactive mode to ``0`` or ``1``.
  212. This option causes CTest to run tests in either an interactive mode
  213. or a non-interactive mode. In dashboard mode (``Experimental``, ``Nightly``,
  214. ``Continuous``), the default is non-interactive. In non-interactive mode,
  215. the environment variable :envvar:`DASHBOARD_TEST_FROM_CTEST` is set.
  216. Prior to CMake 3.11, interactive mode on Windows allowed system debug
  217. popup windows to appear. Now, due to CTest's use of ``libuv`` to launch
  218. test processes, all system debug popup windows are always blocked.
  219. .. option:: --no-label-summary
  220. Disable timing summary information for labels.
  221. This option tells CTest not to print summary information for each
  222. label associated with the tests run. If there are no labels on the
  223. tests, nothing extra is printed.
  224. See `Label and Subproject Summary`_.
  225. .. option:: --no-subproject-summary
  226. Disable timing summary information for subprojects.
  227. This option tells CTest not to print summary information for each
  228. subproject associated with the tests run. If there are no subprojects on the
  229. tests, nothing extra is printed.
  230. See `Label and Subproject Summary`_.
  231. .. option:: --test-dir <dir>
  232. Specify the directory in which to look for tests.
  233. .. option:: --test-output-size-passed <size>
  234. .. versionadded:: 3.4
  235. Limit the output for passed tests to ``<size>`` bytes.
  236. .. option:: --test-output-size-failed <size>
  237. .. versionadded:: 3.4
  238. Limit the output for failed tests to ``<size>`` bytes.
  239. .. option:: --test-output-truncation <mode>
  240. .. versionadded:: 3.24
  241. Truncate ``tail`` (default), ``middle`` or ``head`` of test output once
  242. maximum output size is reached.
  243. .. option:: --overwrite
  244. Overwrite CTest configuration option.
  245. By default CTest uses configuration options from configuration file.
  246. This option will overwrite the configuration option.
  247. .. option:: --force-new-ctest-process
  248. Run child CTest instances as new processes.
  249. By default CTest will run child CTest instances within the same
  250. process. If this behavior is not desired, this argument will
  251. enforce new processes for child CTest processes.
  252. .. option:: --schedule-random
  253. Use a random order for scheduling tests.
  254. This option will run the tests in a random order. It is commonly
  255. used to detect implicit dependencies in a test suite.
  256. .. option:: --submit-index
  257. Legacy option for old Dart2 dashboard server feature.
  258. Do not use.
  259. .. option:: --timeout <seconds>
  260. Set the default test timeout.
  261. This option effectively sets a timeout on all tests that do not
  262. already have a timeout set on them via the :prop_test:`TIMEOUT`
  263. property.
  264. .. option:: --stop-time <time>
  265. Set a time at which all tests should stop running.
  266. Set a real time of day at which all tests should timeout. Example:
  267. ``7:00:00 -0400``. Any time format understood by the curl date parser
  268. is accepted. Local time is assumed if no timezone is specified.
  269. .. option:: --print-labels
  270. Print all available test labels.
  271. This option will not run any tests, it will simply print the list of
  272. all labels associated with the test set.
  273. .. option:: --no-tests=<action>
  274. Regard no tests found either as error (when ``<action>`` is set to
  275. ``error``) or ignore it (when ``<action>`` is set to ``ignore``).
  276. If no tests were found, the default behavior of CTest is to always log an
  277. error message but to return an error code in script mode only. This option
  278. unifies the behavior of CTest by either returning an error code if no tests
  279. were found or by ignoring it.
  280. View Help
  281. =========
  282. To print version details or selected pages from the CMake documentation,
  283. use one of the following options:
  284. .. include:: OPTIONS_HELP.txt
  285. .. _`Label Matching`:
  286. Label Matching
  287. ==============
  288. Tests may have labels attached to them. Tests may be included
  289. or excluded from a test run by filtering on the labels.
  290. Each individual filter is a regular expression applied to
  291. the labels attached to a test.
  292. When :option:`-L <ctest -L>` is used, in order for a test to be included in a
  293. test run, each regular expression must match at least one
  294. label. Using more than one :option:`-L <ctest -L>` option means "match **all**
  295. of these".
  296. The :option:`-LE <ctest -LE>` option works just like :option:`-L <ctest -L>`,
  297. but excludes tests rather than including them. A test is excluded if each
  298. regular expression matches at least one label.
  299. If a test has no labels attached to it, then :option:`-L <ctest -L>` will never
  300. include that test, and :option:`-LE <ctest -LE>` will never exclude that test.
  301. As an example of tests with labels, consider five tests,
  302. with the following labels:
  303. * *test1* has labels *tuesday* and *production*
  304. * *test2* has labels *tuesday* and *test*
  305. * *test3* has labels *wednesday* and *production*
  306. * *test4* has label *wednesday*
  307. * *test5* has labels *friday* and *test*
  308. Running ``ctest`` with ``-L tuesday -L test`` will select *test2*, which has
  309. both labels. Running CTest with ``-L test`` will select *test2* and
  310. *test5*, because both of them have a label that matches that regular
  311. expression.
  312. Because the matching works with regular expressions, take note that
  313. running CTest with ``-L es`` will match all five tests.
  314. To select the *tuesday* and *wednesday* tests together, use a single
  315. regular expression that matches either of them, like ``-L "tue|wed"``.
  316. .. _`Label and Subproject Summary`:
  317. Label and Subproject Summary
  318. ============================
  319. CTest prints timing summary information for each ``LABEL`` and subproject
  320. associated with the tests run. The label time summary will not include labels
  321. that are mapped to subprojects.
  322. .. versionadded:: 3.22
  323. Labels added dynamically during test execution are also reported in the
  324. timing summary. See :ref:`Additional Labels`.
  325. When the :prop_test:`PROCESSORS` test property is set, CTest will display a
  326. weighted test timing result in label and subproject summaries. The time is
  327. reported with `sec*proc` instead of just `sec`.
  328. The weighted time summary reported for each label or subproject ``j``
  329. is computed as::
  330. Weighted Time Summary for Label/Subproject j =
  331. sum(raw_test_time[j,i] * num_processors[j,i], i=1...num_tests[j])
  332. for labels/subprojects j=1...total
  333. where:
  334. * ``raw_test_time[j,i]``: Wall-clock time for the ``i`` test
  335. for the ``j`` label or subproject
  336. * ``num_processors[j,i]``: Value of the CTest :prop_test:`PROCESSORS` property
  337. for the ``i`` test for the ``j`` label or subproject
  338. * ``num_tests[j]``: Number of tests associated with the ``j`` label or subproject
  339. * ``total``: Total number of labels or subprojects that have at least one test run
  340. Therefore, the weighted time summary for each label or subproject represents
  341. the amount of time that CTest gave to run the tests for each label or
  342. subproject and gives a good representation of the total expense of the tests
  343. for each label or subproject when compared to other labels or subprojects.
  344. For example, if ``SubprojectA`` showed ``100 sec*proc`` and ``SubprojectB`` showed
  345. ``10 sec*proc``, then CTest allocated approximately 10 times the CPU/core time
  346. to run the tests for ``SubprojectA`` than for ``SubprojectB`` (e.g. so if effort
  347. is going to be expended to reduce the cost of the test suite for the whole
  348. project, then reducing the cost of the test suite for ``SubprojectA`` would
  349. likely have a larger impact than effort to reduce the cost of the test suite
  350. for ``SubprojectB``).
  351. .. _`Build and Test Mode`:
  352. Build and Test Mode
  353. ===================
  354. CTest provides a command-line signature to configure (i.e. run cmake on),
  355. build, and/or execute a test::
  356. ctest --build-and-test <path-to-source> <path-to-build>
  357. --build-generator <generator>
  358. [<options>...]
  359. [--build-options <opts>...]
  360. [--test-command <command> [<args>...]]
  361. The configure and test steps are optional. The arguments to this command line
  362. are the source and binary directories. The ``--build-generator`` option *must*
  363. be provided to use ``--build-and-test``. If ``--test-command`` is specified
  364. then that will be run after the build is complete. Other options that affect
  365. this mode include:
  366. .. option:: --build-and-test
  367. Switch into the build and test mode.
  368. .. option:: --build-target
  369. Specify a specific target to build. The option can be given multiple times
  370. with different targets, in which case each target is built in turn.
  371. A clean will be done before building each target unless the
  372. :option:`--build-noclean` option is given.
  373. If no ``--build-target`` is specified, the ``all`` target is built.
  374. .. option:: --build-nocmake
  375. Run the build without running cmake first.
  376. Skip the cmake step.
  377. .. option:: --build-run-dir
  378. Specify directory to run programs from.
  379. Directory where programs will be after it has been compiled.
  380. .. option:: --build-two-config
  381. Run CMake twice.
  382. .. option:: --build-exe-dir
  383. Specify the directory for the executable.
  384. .. option:: --build-generator
  385. Specify the generator to use. See the :manual:`cmake-generators(7)` manual.
  386. .. option:: --build-generator-platform
  387. Specify the generator-specific platform.
  388. .. option:: --build-generator-toolset
  389. Specify the generator-specific toolset.
  390. .. option:: --build-project
  391. Specify the name of the project to build.
  392. .. option:: --build-makeprogram
  393. Specify the explicit make program to be used by CMake when configuring and
  394. building the project. Only applicable for Make and Ninja based generators.
  395. .. option:: --build-noclean
  396. Skip the make clean step.
  397. .. option:: --build-config-sample
  398. A sample executable to use to determine the configuration that
  399. should be used. e.g. ``Debug``, ``Release`` etc.
  400. .. option:: --build-options
  401. Additional options for configuring the build (i.e. for CMake, not for
  402. the build tool). Note that if this is specified, the ``--build-options``
  403. keyword and its arguments must be the last option given on the command
  404. line, with the possible exception of ``--test-command``.
  405. .. option:: --test-command
  406. The command to run as the test step with the
  407. :option:`--build-and-test <ctest --build-and-test>` option.
  408. All arguments following this keyword will be assumed to be part of the
  409. test command line, so it must be the last option given.
  410. .. option:: --test-timeout
  411. The time limit in seconds
  412. .. _`Dashboard Client`:
  413. Dashboard Client
  414. ================
  415. CTest can operate as a client for the `CDash`_ software quality dashboard
  416. application. As a dashboard client, CTest performs a sequence of steps
  417. to configure, build, and test software, and then submits the results to
  418. a `CDash`_ server. The command-line signature used to submit to `CDash`_ is::
  419. ctest -D <dashboard> [-- <dashboard-options>...]
  420. ctest -M <model> -T <action> [-- <dashboard-options>...]
  421. ctest -S <script> [-- <dashboard-options>...]
  422. ctest -SP <script> [-- <dashboard-options>...]
  423. Options for Dashboard Client include:
  424. .. option:: -D <dashboard>, --dashboard <dashboard>
  425. Execute dashboard test.
  426. This option tells CTest to act as a CDash client and perform a
  427. dashboard test. All tests are ``<Mode><Test>``, where ``<Mode>`` can be
  428. ``Experimental``, ``Nightly``, and ``Continuous``, and ``<Test>`` can be
  429. ``Start``, ``Update``, ``Configure``, ``Build``, ``Test``,
  430. ``Coverage``, and ``Submit``.
  431. If ``<dashboard>`` is not one of the recognized ``<Mode><Test>`` values,
  432. this will be treated as a variable definition instead (see the
  433. :ref:`dashboard-options <Dashboard Options>` further below).
  434. .. option:: -M <model>, --test-model <model>
  435. Sets the model for a dashboard.
  436. This option tells CTest to act as a CDash client where the ``<model>``
  437. can be ``Experimental``, ``Nightly``, and ``Continuous``.
  438. Combining ``-M`` and :option:`-T <ctest -T>` is similar to
  439. :option:`-D <ctest -D>`.
  440. .. option:: -T <action>, --test-action <action>
  441. Sets the dashboard action to perform.
  442. This option tells CTest to act as a CDash client and perform some
  443. action such as ``start``, ``build``, ``test`` etc. See
  444. `Dashboard Client Steps`_ for the full list of actions.
  445. Combining :option:`-M <ctest -M>` and ``-T`` is similar to
  446. :option:`-D <ctest -D>`.
  447. .. option:: -S <script>, --script <script>
  448. Execute a dashboard for a configuration.
  449. This option tells CTest to load in a configuration script which sets
  450. a number of parameters such as the binary and source directories.
  451. Then CTest will do what is required to create and run a dashboard.
  452. This option basically sets up a dashboard and then runs :option:`ctest -D`
  453. with the appropriate options.
  454. .. option:: -SP <script>, --script-new-process <script>
  455. Execute a dashboard for a configuration.
  456. This option does the same operations as :option:`-S <ctest -S>` but it
  457. will do them in a separate process. This is primarily useful in cases
  458. where the script may modify the environment and you do not want the modified
  459. environment to impact other :option:`-S <ctest -S>` scripts.
  460. .. _`Dashboard Options`:
  461. The available ``<dashboard-options>`` are the following:
  462. .. option:: -D <var>:<type>=<value>
  463. Define a variable for script mode.
  464. Pass in variable values on the command line. Use in conjunction
  465. with :option:`-S <ctest -S>` to pass variable values to a dashboard script.
  466. Parsing ``-D`` arguments as variable values is only attempted if the value
  467. following ``-D`` does not match any of the known dashboard types.
  468. .. option:: --group <group>
  469. Specify what group you'd like to submit results to
  470. Submit dashboard to specified group instead of default one. By
  471. default, the dashboard is submitted to Nightly, Experimental, or
  472. Continuous group, but by specifying this option, the group can be
  473. arbitrary.
  474. This replaces the deprecated option ``--track``.
  475. Despite the name change its behavior is unchanged.
  476. .. option:: -A <file>, --add-notes <file>
  477. Add a notes file with submission.
  478. This option tells CTest to include a notes file when submitting
  479. dashboard.
  480. .. option:: --tomorrow-tag
  481. ``Nightly`` or ``Experimental`` starts with next day tag.
  482. This is useful if the build will not finish in one day.
  483. .. option:: --extra-submit <file>[;<file>]
  484. Submit extra files to the dashboard.
  485. This option will submit extra files to the dashboard.
  486. .. option:: --http1.0
  487. Submit using `HTTP 1.0`.
  488. This option will force CTest to use `HTTP 1.0` to submit files to the
  489. dashboard, instead of `HTTP 1.1`.
  490. .. option:: --no-compress-output
  491. Do not compress test output when submitting.
  492. This flag will turn off automatic compression of test output. Use
  493. this to maintain compatibility with an older version of CDash which
  494. doesn't support compressed test output.
  495. Dashboard Client Steps
  496. ----------------------
  497. CTest defines an ordered list of testing steps of which some or all may
  498. be run as a dashboard client:
  499. ``Start``
  500. Start a new dashboard submission to be composed of results recorded
  501. by the following steps.
  502. See the `CTest Start Step`_ section below.
  503. ``Update``
  504. Update the source tree from its version control repository.
  505. Record the old and new versions and the list of updated source files.
  506. See the `CTest Update Step`_ section below.
  507. ``Configure``
  508. Configure the software by running a command in the build tree.
  509. Record the configuration output log.
  510. See the `CTest Configure Step`_ section below.
  511. ``Build``
  512. Build the software by running a command in the build tree.
  513. Record the build output log and detect warnings and errors.
  514. See the `CTest Build Step`_ section below.
  515. ``Test``
  516. Test the software by loading a ``CTestTestfile.cmake``
  517. from the build tree and executing the defined tests.
  518. Record the output and result of each test.
  519. See the `CTest Test Step`_ section below.
  520. ``Coverage``
  521. Compute coverage of the source code by running a coverage
  522. analysis tool and recording its output.
  523. See the `CTest Coverage Step`_ section below.
  524. ``MemCheck``
  525. Run the software test suite through a memory check tool.
  526. Record the test output, results, and issues reported by the tool.
  527. See the `CTest MemCheck Step`_ section below.
  528. ``Submit``
  529. Submit results recorded from other testing steps to the
  530. software quality dashboard server.
  531. See the `CTest Submit Step`_ section below.
  532. Dashboard Client Modes
  533. ----------------------
  534. CTest defines three modes of operation as a dashboard client:
  535. ``Nightly``
  536. This mode is intended to be invoked once per day, typically at night.
  537. It enables the ``Start``, ``Update``, ``Configure``, ``Build``, ``Test``,
  538. ``Coverage``, and ``Submit`` steps by default. Selected steps run even
  539. if the ``Update`` step reports no changes to the source tree.
  540. ``Continuous``
  541. This mode is intended to be invoked repeatedly throughout the day.
  542. It enables the ``Start``, ``Update``, ``Configure``, ``Build``, ``Test``,
  543. ``Coverage``, and ``Submit`` steps by default, but exits after the
  544. ``Update`` step if it reports no changes to the source tree.
  545. ``Experimental``
  546. This mode is intended to be invoked by a developer to test local changes.
  547. It enables the ``Start``, ``Configure``, ``Build``, ``Test``, ``Coverage``,
  548. and ``Submit`` steps by default.
  549. Dashboard Client via CTest Command-Line
  550. ---------------------------------------
  551. CTest can perform testing on an already-generated build tree.
  552. Run the ``ctest`` command with the current working directory set
  553. to the build tree and use one of these signatures::
  554. ctest -D <mode>[<step>]
  555. ctest -M <mode> [-T <step>]...
  556. The ``<mode>`` must be one of the above `Dashboard Client Modes`_,
  557. and each ``<step>`` must be one of the above `Dashboard Client Steps`_.
  558. CTest reads the `Dashboard Client Configuration`_ settings from
  559. a file in the build tree called either ``CTestConfiguration.ini``
  560. or ``DartConfiguration.tcl`` (the names are historical). The format
  561. of the file is::
  562. # Lines starting in '#' are comments.
  563. # Other non-blank lines are key-value pairs.
  564. <setting>: <value>
  565. where ``<setting>`` is the setting name and ``<value>`` is the
  566. setting value.
  567. In build trees generated by CMake, this configuration file is
  568. generated by the :module:`CTest` module if included by the project.
  569. The module uses variables to obtain a value for each setting
  570. as documented with the settings below.
  571. .. _`CTest Script`:
  572. Dashboard Client via CTest Script
  573. ---------------------------------
  574. CTest can perform testing driven by a :manual:`cmake-language(7)`
  575. script that creates and maintains the source and build tree as
  576. well as performing the testing steps. Run the ``ctest`` command
  577. with the current working directory set outside of any build tree
  578. and use one of these signatures::
  579. ctest -S <script>
  580. ctest -SP <script>
  581. The ``<script>`` file must call :ref:`CTest Commands` commands
  582. to run testing steps explicitly as documented below. The commands
  583. obtain `Dashboard Client Configuration`_ settings from their
  584. arguments or from variables set in the script.
  585. Dashboard Client Configuration
  586. ==============================
  587. The `Dashboard Client Steps`_ may be configured by named
  588. settings as documented in the following sections.
  589. .. _`CTest Start Step`:
  590. CTest Start Step
  591. ----------------
  592. Start a new dashboard submission to be composed of results recorded
  593. by the following steps.
  594. In a `CTest Script`_, the :command:`ctest_start` command runs this step.
  595. Arguments to the command may specify some of the step settings.
  596. The command first runs the command-line specified by the
  597. ``CTEST_CHECKOUT_COMMAND`` variable, if set, to initialize the source
  598. directory.
  599. Configuration settings include:
  600. ``BuildDirectory``
  601. The full path to the project build tree.
  602. * `CTest Script`_ variable: :variable:`CTEST_BINARY_DIRECTORY`
  603. * :module:`CTest` module variable: :variable:`PROJECT_BINARY_DIR`
  604. ``SourceDirectory``
  605. The full path to the project source tree.
  606. * `CTest Script`_ variable: :variable:`CTEST_SOURCE_DIRECTORY`
  607. * :module:`CTest` module variable: :variable:`PROJECT_SOURCE_DIR`
  608. .. _`CTest Update Step`:
  609. CTest Update Step
  610. -----------------
  611. In a `CTest Script`_, the :command:`ctest_update` command runs this step.
  612. Arguments to the command may specify some of the step settings.
  613. Configuration settings to specify the version control tool include:
  614. ``BZRCommand``
  615. ``bzr`` command-line tool to use if source tree is managed by Bazaar.
  616. * `CTest Script`_ variable: :variable:`CTEST_BZR_COMMAND`
  617. * :module:`CTest` module variable: none
  618. ``BZRUpdateOptions``
  619. Command-line options to the ``BZRCommand`` when updating the source.
  620. * `CTest Script`_ variable: :variable:`CTEST_BZR_UPDATE_OPTIONS`
  621. * :module:`CTest` module variable: none
  622. ``CVSCommand``
  623. ``cvs`` command-line tool to use if source tree is managed by CVS.
  624. * `CTest Script`_ variable: :variable:`CTEST_CVS_COMMAND`
  625. * :module:`CTest` module variable: ``CVSCOMMAND``
  626. ``CVSUpdateOptions``
  627. Command-line options to the ``CVSCommand`` when updating the source.
  628. * `CTest Script`_ variable: :variable:`CTEST_CVS_UPDATE_OPTIONS`
  629. * :module:`CTest` module variable: ``CVS_UPDATE_OPTIONS``
  630. ``GITCommand``
  631. ``git`` command-line tool to use if source tree is managed by Git.
  632. * `CTest Script`_ variable: :variable:`CTEST_GIT_COMMAND`
  633. * :module:`CTest` module variable: ``GITCOMMAND``
  634. The source tree is updated by ``git fetch`` followed by
  635. ``git reset --hard`` to the ``FETCH_HEAD``. The result is the same
  636. as ``git pull`` except that any local modifications are overwritten.
  637. Use ``GITUpdateCustom`` to specify a different approach.
  638. ``GITInitSubmodules``
  639. If set, CTest will update the repository's submodules before updating.
  640. * `CTest Script`_ variable: :variable:`CTEST_GIT_INIT_SUBMODULES`
  641. * :module:`CTest` module variable: ``CTEST_GIT_INIT_SUBMODULES``
  642. ``GITUpdateCustom``
  643. Specify a custom command line (as a semicolon-separated list) to run
  644. in the source tree (Git work tree) to update it instead of running
  645. the ``GITCommand``.
  646. * `CTest Script`_ variable: :variable:`CTEST_GIT_UPDATE_CUSTOM`
  647. * :module:`CTest` module variable: ``CTEST_GIT_UPDATE_CUSTOM``
  648. ``GITUpdateOptions``
  649. Command-line options to the ``GITCommand`` when updating the source.
  650. * `CTest Script`_ variable: :variable:`CTEST_GIT_UPDATE_OPTIONS`
  651. * :module:`CTest` module variable: ``GIT_UPDATE_OPTIONS``
  652. ``HGCommand``
  653. ``hg`` command-line tool to use if source tree is managed by Mercurial.
  654. * `CTest Script`_ variable: :variable:`CTEST_HG_COMMAND`
  655. * :module:`CTest` module variable: none
  656. ``HGUpdateOptions``
  657. Command-line options to the ``HGCommand`` when updating the source.
  658. * `CTest Script`_ variable: :variable:`CTEST_HG_UPDATE_OPTIONS`
  659. * :module:`CTest` module variable: none
  660. ``P4Client``
  661. Value of the ``-c`` option to the ``P4Command``.
  662. * `CTest Script`_ variable: :variable:`CTEST_P4_CLIENT`
  663. * :module:`CTest` module variable: ``CTEST_P4_CLIENT``
  664. ``P4Command``
  665. ``p4`` command-line tool to use if source tree is managed by Perforce.
  666. * `CTest Script`_ variable: :variable:`CTEST_P4_COMMAND`
  667. * :module:`CTest` module variable: ``P4COMMAND``
  668. ``P4Options``
  669. Command-line options to the ``P4Command`` for all invocations.
  670. * `CTest Script`_ variable: :variable:`CTEST_P4_OPTIONS`
  671. * :module:`CTest` module variable: ``CTEST_P4_OPTIONS``
  672. ``P4UpdateCustom``
  673. Specify a custom command line (as a semicolon-separated list) to run
  674. in the source tree (Perforce tree) to update it instead of running
  675. the ``P4Command``.
  676. * `CTest Script`_ variable: none
  677. * :module:`CTest` module variable: ``CTEST_P4_UPDATE_CUSTOM``
  678. ``P4UpdateOptions``
  679. Command-line options to the ``P4Command`` when updating the source.
  680. * `CTest Script`_ variable: :variable:`CTEST_P4_UPDATE_OPTIONS`
  681. * :module:`CTest` module variable: ``CTEST_P4_UPDATE_OPTIONS``
  682. ``SVNCommand``
  683. ``svn`` command-line tool to use if source tree is managed by Subversion.
  684. * `CTest Script`_ variable: :variable:`CTEST_SVN_COMMAND`
  685. * :module:`CTest` module variable: ``SVNCOMMAND``
  686. ``SVNOptions``
  687. Command-line options to the ``SVNCommand`` for all invocations.
  688. * `CTest Script`_ variable: :variable:`CTEST_SVN_OPTIONS`
  689. * :module:`CTest` module variable: ``CTEST_SVN_OPTIONS``
  690. ``SVNUpdateOptions``
  691. Command-line options to the ``SVNCommand`` when updating the source.
  692. * `CTest Script`_ variable: :variable:`CTEST_SVN_UPDATE_OPTIONS`
  693. * :module:`CTest` module variable: ``SVN_UPDATE_OPTIONS``
  694. ``UpdateCommand``
  695. Specify the version-control command-line tool to use without
  696. detecting the VCS that manages the source tree.
  697. * `CTest Script`_ variable: :variable:`CTEST_UPDATE_COMMAND`
  698. * :module:`CTest` module variable: ``<VCS>COMMAND``
  699. when ``UPDATE_TYPE`` is ``<vcs>``, else ``UPDATE_COMMAND``
  700. ``UpdateOptions``
  701. Command-line options to the ``UpdateCommand``.
  702. * `CTest Script`_ variable: :variable:`CTEST_UPDATE_OPTIONS`
  703. * :module:`CTest` module variable: ``<VCS>_UPDATE_OPTIONS``
  704. when ``UPDATE_TYPE`` is ``<vcs>``, else ``UPDATE_OPTIONS``
  705. ``UpdateType``
  706. Specify the version-control system that manages the source
  707. tree if it cannot be detected automatically.
  708. The value may be ``bzr``, ``cvs``, ``git``, ``hg``,
  709. ``p4``, or ``svn``.
  710. * `CTest Script`_ variable: none, detected from source tree
  711. * :module:`CTest` module variable: ``UPDATE_TYPE`` if set,
  712. else ``CTEST_UPDATE_TYPE``
  713. .. _`UpdateVersionOnly`:
  714. ``UpdateVersionOnly``
  715. Specify that you want the version control update command to only
  716. discover the current version that is checked out, and not to update
  717. to a different version.
  718. * `CTest Script`_ variable: :variable:`CTEST_UPDATE_VERSION_ONLY`
  719. .. _`UpdateVersionOverride`:
  720. ``UpdateVersionOverride``
  721. Specify the current version of your source tree.
  722. When this variable is set to a non-empty string, CTest will report the value
  723. you specified rather than using the update command to discover the current
  724. version that is checked out. Use of this variable supersedes
  725. ``UpdateVersionOnly``. Like ``UpdateVersionOnly``, using this variable tells
  726. CTest not to update the source tree to a different version.
  727. * `CTest Script`_ variable: :variable:`CTEST_UPDATE_VERSION_OVERRIDE`
  728. Additional configuration settings include:
  729. ``NightlyStartTime``
  730. In the ``Nightly`` dashboard mode, specify the "nightly start time".
  731. With centralized version control systems (``cvs`` and ``svn``),
  732. the ``Update`` step checks out the version of the software as of
  733. this time so that multiple clients choose a common version to test.
  734. This is not well-defined in distributed version-control systems so
  735. the setting is ignored.
  736. * `CTest Script`_ variable: :variable:`CTEST_NIGHTLY_START_TIME`
  737. * :module:`CTest` module variable: ``NIGHTLY_START_TIME`` if set,
  738. else ``CTEST_NIGHTLY_START_TIME``
  739. .. _`CTest Configure Step`:
  740. CTest Configure Step
  741. --------------------
  742. In a `CTest Script`_, the :command:`ctest_configure` command runs this step.
  743. Arguments to the command may specify some of the step settings.
  744. Configuration settings include:
  745. ``ConfigureCommand``
  746. Command-line to launch the software configuration process.
  747. It will be executed in the location specified by the
  748. ``BuildDirectory`` setting.
  749. * `CTest Script`_ variable: :variable:`CTEST_CONFIGURE_COMMAND`
  750. * :module:`CTest` module variable: :variable:`CMAKE_COMMAND`
  751. followed by :variable:`PROJECT_SOURCE_DIR`
  752. ``LabelsForSubprojects``
  753. Specify a semicolon-separated list of labels that will be treated as
  754. subprojects. This mapping will be passed on to CDash when configure, test or
  755. build results are submitted.
  756. * `CTest Script`_ variable: :variable:`CTEST_LABELS_FOR_SUBPROJECTS`
  757. * :module:`CTest` module variable: ``CTEST_LABELS_FOR_SUBPROJECTS``
  758. See `Label and Subproject Summary`_.
  759. .. _`CTest Build Step`:
  760. CTest Build Step
  761. ----------------
  762. In a `CTest Script`_, the :command:`ctest_build` command runs this step.
  763. Arguments to the command may specify some of the step settings.
  764. Configuration settings include:
  765. ``DefaultCTestConfigurationType``
  766. When the build system to be launched allows build-time selection
  767. of the configuration (e.g. ``Debug``, ``Release``), this specifies
  768. the default configuration to be built when no :option:`-C <ctest -C>`
  769. option is given to the ``ctest`` command. The value will be substituted
  770. into the value of ``MakeCommand`` to replace the literal string
  771. ``${CTEST_CONFIGURATION_TYPE}`` if it appears.
  772. * `CTest Script`_ variable: :variable:`CTEST_CONFIGURATION_TYPE`
  773. * :module:`CTest` module variable: ``DEFAULT_CTEST_CONFIGURATION_TYPE``,
  774. initialized by the :envvar:`CMAKE_CONFIG_TYPE` environment variable
  775. ``LabelsForSubprojects``
  776. Specify a semicolon-separated list of labels that will be treated as
  777. subprojects. This mapping will be passed on to CDash when configure, test or
  778. build results are submitted.
  779. * `CTest Script`_ variable: :variable:`CTEST_LABELS_FOR_SUBPROJECTS`
  780. * :module:`CTest` module variable: ``CTEST_LABELS_FOR_SUBPROJECTS``
  781. See `Label and Subproject Summary`_.
  782. ``MakeCommand``
  783. Command-line to launch the software build process.
  784. It will be executed in the location specified by the
  785. ``BuildDirectory`` setting.
  786. * `CTest Script`_ variable: :variable:`CTEST_BUILD_COMMAND`
  787. * :module:`CTest` module variable: ``MAKECOMMAND``,
  788. initialized by the :command:`build_command` command
  789. ``UseLaunchers``
  790. For build trees generated by CMake using one of the
  791. :ref:`Makefile Generators` or the :generator:`Ninja`
  792. generator, specify whether the
  793. ``CTEST_USE_LAUNCHERS`` feature is enabled by the
  794. :module:`CTestUseLaunchers` module (also included by the
  795. :module:`CTest` module). When enabled, the generated build
  796. system wraps each invocation of the compiler, linker, or
  797. custom command line with a "launcher" that communicates
  798. with CTest via environment variables and files to report
  799. granular build warning and error information. Otherwise,
  800. CTest must "scrape" the build output log for diagnostics.
  801. * `CTest Script`_ variable: :variable:`CTEST_USE_LAUNCHERS`
  802. * :module:`CTest` module variable: ``CTEST_USE_LAUNCHERS``
  803. .. _`CTest Test Step`:
  804. CTest Test Step
  805. ---------------
  806. In a `CTest Script`_, the :command:`ctest_test` command runs this step.
  807. Arguments to the command may specify some of the step settings.
  808. Configuration settings include:
  809. ``ResourceSpecFile``
  810. Specify a
  811. :ref:`resource specification file <ctest-resource-specification-file>`.
  812. * `CTest Script`_ variable: :variable:`CTEST_RESOURCE_SPEC_FILE`
  813. * :module:`CTest` module variable: ``CTEST_RESOURCE_SPEC_FILE``
  814. See :ref:`ctest-resource-allocation` for more information.
  815. ``LabelsForSubprojects``
  816. Specify a semicolon-separated list of labels that will be treated as
  817. subprojects. This mapping will be passed on to CDash when configure, test or
  818. build results are submitted.
  819. * `CTest Script`_ variable: :variable:`CTEST_LABELS_FOR_SUBPROJECTS`
  820. * :module:`CTest` module variable: ``CTEST_LABELS_FOR_SUBPROJECTS``
  821. See `Label and Subproject Summary`_.
  822. ``TestLoad``
  823. While running tests in parallel (e.g. with :option:`-j <ctest -j>`),
  824. try not to start tests when they may cause the CPU load to pass above
  825. a given threshold.
  826. * `CTest Script`_ variable: :variable:`CTEST_TEST_LOAD`
  827. * :module:`CTest` module variable: ``CTEST_TEST_LOAD``
  828. ``TimeOut``
  829. The default timeout for each test if not specified by the
  830. :prop_test:`TIMEOUT` test property.
  831. * `CTest Script`_ variable: :variable:`CTEST_TEST_TIMEOUT`
  832. * :module:`CTest` module variable: ``DART_TESTING_TIMEOUT``
  833. To report extra test values to CDash, see :ref:`Additional Test Measurements`.
  834. .. _`CTest Coverage Step`:
  835. CTest Coverage Step
  836. -------------------
  837. In a `CTest Script`_, the :command:`ctest_coverage` command runs this step.
  838. Arguments to the command may specify some of the step settings.
  839. Configuration settings include:
  840. ``CoverageCommand``
  841. Command-line tool to perform software coverage analysis.
  842. It will be executed in the location specified by the
  843. ``BuildDirectory`` setting.
  844. * `CTest Script`_ variable: :variable:`CTEST_COVERAGE_COMMAND`
  845. * :module:`CTest` module variable: ``COVERAGE_COMMAND``
  846. ``CoverageExtraFlags``
  847. Specify command-line options to the ``CoverageCommand`` tool.
  848. * `CTest Script`_ variable: :variable:`CTEST_COVERAGE_EXTRA_FLAGS`
  849. * :module:`CTest` module variable: ``COVERAGE_EXTRA_FLAGS``
  850. These options are the first arguments passed to ``CoverageCommand``.
  851. .. _`CTest MemCheck Step`:
  852. CTest MemCheck Step
  853. -------------------
  854. In a `CTest Script`_, the :command:`ctest_memcheck` command runs this step.
  855. Arguments to the command may specify some of the step settings.
  856. Configuration settings include:
  857. ``MemoryCheckCommand``
  858. Command-line tool to perform dynamic analysis. Test command lines
  859. will be launched through this tool.
  860. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_COMMAND`
  861. * :module:`CTest` module variable: ``MEMORYCHECK_COMMAND``
  862. ``MemoryCheckCommandOptions``
  863. Specify command-line options to the ``MemoryCheckCommand`` tool.
  864. They will be placed prior to the test command line.
  865. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_COMMAND_OPTIONS`
  866. * :module:`CTest` module variable: ``MEMORYCHECK_COMMAND_OPTIONS``
  867. ``MemoryCheckType``
  868. Specify the type of memory checking to perform.
  869. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_TYPE`
  870. * :module:`CTest` module variable: ``MEMORYCHECK_TYPE``
  871. ``MemoryCheckSanitizerOptions``
  872. Specify options to sanitizers when running with a sanitize-enabled build.
  873. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_SANITIZER_OPTIONS`
  874. * :module:`CTest` module variable: ``MEMORYCHECK_SANITIZER_OPTIONS``
  875. ``MemoryCheckSuppressionFile``
  876. Specify a file containing suppression rules for the
  877. ``MemoryCheckCommand`` tool. It will be passed with options
  878. appropriate to the tool.
  879. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_SUPPRESSIONS_FILE`
  880. * :module:`CTest` module variable: ``MEMORYCHECK_SUPPRESSIONS_FILE``
  881. Additional configuration settings include:
  882. ``BoundsCheckerCommand``
  883. Specify a ``MemoryCheckCommand`` that is known to be command-line
  884. compatible with Bounds Checker.
  885. * `CTest Script`_ variable: none
  886. * :module:`CTest` module variable: none
  887. ``PurifyCommand``
  888. Specify a ``MemoryCheckCommand`` that is known to be command-line
  889. compatible with Purify.
  890. * `CTest Script`_ variable: none
  891. * :module:`CTest` module variable: ``PURIFYCOMMAND``
  892. ``ValgrindCommand``
  893. Specify a ``MemoryCheckCommand`` that is known to be command-line
  894. compatible with Valgrind.
  895. * `CTest Script`_ variable: none
  896. * :module:`CTest` module variable: ``VALGRIND_COMMAND``
  897. ``ValgrindCommandOptions``
  898. Specify command-line options to the ``ValgrindCommand`` tool.
  899. They will be placed prior to the test command line.
  900. * `CTest Script`_ variable: none
  901. * :module:`CTest` module variable: ``VALGRIND_COMMAND_OPTIONS``
  902. ``DrMemoryCommand``
  903. Specify a ``MemoryCheckCommand`` that is known to be a command-line
  904. compatible with DrMemory.
  905. * `CTest Script`_ variable: none
  906. * :module:`CTest` module variable: ``DRMEMORY_COMMAND``
  907. ``DrMemoryCommandOptions``
  908. Specify command-line options to the ``DrMemoryCommand`` tool.
  909. They will be placed prior to the test command line.
  910. * `CTest Script`_ variable: none
  911. * :module:`CTest` module variable: ``DRMEMORY_COMMAND_OPTIONS``
  912. ``CudaSanitizerCommand``
  913. Specify a ``MemoryCheckCommand`` that is known to be a command-line
  914. compatible with cuda-memcheck or compute-sanitizer.
  915. * `CTest Script`_ variable: none
  916. * :module:`CTest` module variable: ``CUDA_SANITIZER_COMMAND``
  917. ``CudaSanitizerCommandOptions``
  918. Specify command-line options to the ``CudaSanitizerCommand`` tool.
  919. They will be placed prior to the test command line.
  920. * `CTest Script`_ variable: none
  921. * :module:`CTest` module variable: ``CUDA_SANITIZER_COMMAND_OPTIONS``
  922. .. _`CTest Submit Step`:
  923. CTest Submit Step
  924. -----------------
  925. In a `CTest Script`_, the :command:`ctest_submit` command runs this step.
  926. Arguments to the command may specify some of the step settings.
  927. Configuration settings include:
  928. ``BuildName``
  929. Describe the dashboard client platform with a short string.
  930. (Operating system, compiler, etc.)
  931. * `CTest Script`_ variable: :variable:`CTEST_BUILD_NAME`
  932. * :module:`CTest` module variable: ``BUILDNAME``
  933. ``CDashVersion``
  934. Legacy option. Not used.
  935. * `CTest Script`_ variable: none, detected from server
  936. * :module:`CTest` module variable: ``CTEST_CDASH_VERSION``
  937. ``CTestSubmitRetryCount``
  938. Specify a number of attempts to retry submission on network failure.
  939. * `CTest Script`_ variable: none,
  940. use the :command:`ctest_submit` ``RETRY_COUNT`` option.
  941. * :module:`CTest` module variable: ``CTEST_SUBMIT_RETRY_COUNT``
  942. ``CTestSubmitRetryDelay``
  943. Specify a delay before retrying submission on network failure.
  944. * `CTest Script`_ variable: none,
  945. use the :command:`ctest_submit` ``RETRY_DELAY`` option.
  946. * :module:`CTest` module variable: ``CTEST_SUBMIT_RETRY_DELAY``
  947. ``CurlOptions``
  948. Specify a semicolon-separated list of options to control the
  949. Curl library that CTest uses internally to connect to the
  950. server. Possible options are ``CURLOPT_SSL_VERIFYPEER_OFF``
  951. and ``CURLOPT_SSL_VERIFYHOST_OFF``.
  952. * `CTest Script`_ variable: :variable:`CTEST_CURL_OPTIONS`
  953. * :module:`CTest` module variable: ``CTEST_CURL_OPTIONS``
  954. ``DropLocation``
  955. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  956. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  957. ``DropLocation``.
  958. * `CTest Script`_ variable: :variable:`CTEST_DROP_LOCATION`
  959. * :module:`CTest` module variable: ``DROP_LOCATION`` if set,
  960. else ``CTEST_DROP_LOCATION``
  961. ``DropMethod``
  962. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  963. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  964. ``DropLocation``.
  965. * `CTest Script`_ variable: :variable:`CTEST_DROP_METHOD`
  966. * :module:`CTest` module variable: ``DROP_METHOD`` if set,
  967. else ``CTEST_DROP_METHOD``
  968. ``DropSite``
  969. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  970. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  971. ``DropLocation``.
  972. * `CTest Script`_ variable: :variable:`CTEST_DROP_SITE`
  973. * :module:`CTest` module variable: ``DROP_SITE`` if set,
  974. else ``CTEST_DROP_SITE``
  975. ``DropSitePassword``
  976. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  977. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  978. ``DropLocation``.
  979. * `CTest Script`_ variable: :variable:`CTEST_DROP_SITE_PASSWORD`
  980. * :module:`CTest` module variable: ``DROP_SITE_PASSWORD`` if set,
  981. else ``CTEST_DROP_SITE_PASWORD``
  982. ``DropSiteUser``
  983. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  984. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  985. ``DropLocation``.
  986. * `CTest Script`_ variable: :variable:`CTEST_DROP_SITE_USER`
  987. * :module:`CTest` module variable: ``DROP_SITE_USER`` if set,
  988. else ``CTEST_DROP_SITE_USER``
  989. ``IsCDash``
  990. Legacy option. Not used.
  991. * `CTest Script`_ variable: :variable:`CTEST_DROP_SITE_CDASH`
  992. * :module:`CTest` module variable: ``CTEST_DROP_SITE_CDASH``
  993. ``ScpCommand``
  994. Legacy option. Not used.
  995. * `CTest Script`_ variable: :variable:`CTEST_SCP_COMMAND`
  996. * :module:`CTest` module variable: ``SCPCOMMAND``
  997. ``Site``
  998. Describe the dashboard client host site with a short string.
  999. (Hostname, domain, etc.)
  1000. * `CTest Script`_ variable: :variable:`CTEST_SITE`
  1001. * :module:`CTest` module variable: ``SITE``,
  1002. initialized by the :command:`site_name` command
  1003. ``SubmitURL``
  1004. The ``http`` or ``https`` URL of the dashboard server to send the submission
  1005. to.
  1006. * `CTest Script`_ variable: :variable:`CTEST_SUBMIT_URL`
  1007. * :module:`CTest` module variable: ``SUBMIT_URL`` if set,
  1008. else ``CTEST_SUBMIT_URL``
  1009. ``SubmitInactivityTimeout``
  1010. The time to wait for the submission after which it is canceled
  1011. if not completed. Specify a zero value to disable timeout.
  1012. * `CTest Script`_ variable: :variable:`CTEST_SUBMIT_INACTIVITY_TIMEOUT`
  1013. * :module:`CTest` module variable: ``CTEST_SUBMIT_INACTIVITY_TIMEOUT``
  1014. ``TriggerSite``
  1015. Legacy option. Not used.
  1016. * `CTest Script`_ variable: :variable:`CTEST_TRIGGER_SITE`
  1017. * :module:`CTest` module variable: ``TRIGGER_SITE`` if set,
  1018. else ``CTEST_TRIGGER_SITE``
  1019. .. _`Show as JSON Object Model`:
  1020. Show as JSON Object Model
  1021. =========================
  1022. When the ``--show-only=json-v1`` command line option is given, the test
  1023. information is output in JSON format. Version 1.0 of the JSON object
  1024. model is defined as follows:
  1025. ``kind``
  1026. The string "ctestInfo".
  1027. ``version``
  1028. A JSON object specifying the version components. Its members are
  1029. ``major``
  1030. A non-negative integer specifying the major version component.
  1031. ``minor``
  1032. A non-negative integer specifying the minor version component.
  1033. ``backtraceGraph``
  1034. JSON object representing backtrace information with the
  1035. following members:
  1036. ``commands``
  1037. List of command names.
  1038. ``files``
  1039. List of file names.
  1040. ``nodes``
  1041. List of node JSON objects with members:
  1042. ``command``
  1043. Index into the ``commands`` member of the ``backtraceGraph``.
  1044. ``file``
  1045. Index into the ``files`` member of the ``backtraceGraph``.
  1046. ``line``
  1047. Line number in the file where the backtrace was added.
  1048. ``parent``
  1049. Index into the ``nodes`` member of the ``backtraceGraph``
  1050. representing the parent in the graph.
  1051. ``tests``
  1052. A JSON array listing information about each test. Each entry
  1053. is a JSON object with members:
  1054. ``name``
  1055. Test name.
  1056. ``config``
  1057. Configuration that the test can run on.
  1058. Empty string means any config.
  1059. ``command``
  1060. List where the first element is the test command and the
  1061. remaining elements are the command arguments.
  1062. ``backtrace``
  1063. Index into the ``nodes`` member of the ``backtraceGraph``.
  1064. ``properties``
  1065. Test properties.
  1066. Can contain keys for each of the supported test properties.
  1067. .. _`ctest-resource-allocation`:
  1068. Resource Allocation
  1069. ===================
  1070. CTest provides a mechanism for tests to specify the resources that they need
  1071. in a fine-grained way, and for users to specify the resources available on
  1072. the running machine. This allows CTest to internally keep track of which
  1073. resources are in use and which are free, scheduling tests in a way that
  1074. prevents them from trying to claim resources that are not available.
  1075. When the resource allocation feature is used, CTest will not oversubscribe
  1076. resources. For example, if a resource has 8 slots, CTest will not run tests
  1077. that collectively use more than 8 slots at a time. This has the effect of
  1078. limiting how many tests can run at any given time, even if a high ``-j``
  1079. argument is used, if those tests all use some slots from the same resource.
  1080. In addition, it means that a single test that uses more of a resource than is
  1081. available on a machine will not run at all (and will be reported as
  1082. ``Not Run``).
  1083. A common use case for this feature is for tests that require the use of a GPU.
  1084. Multiple tests can simultaneously allocate memory from a GPU, but if too many
  1085. tests try to do this at once, some of them will fail to allocate, resulting in
  1086. a failed test, even though the test would have succeeded if it had the memory
  1087. it needed. By using the resource allocation feature, each test can specify how
  1088. much memory it requires from a GPU, allowing CTest to schedule tests in a way
  1089. that running several of these tests at once does not exhaust the GPU's memory
  1090. pool.
  1091. Please note that CTest has no concept of what a GPU is or how much memory it
  1092. has, nor does it have any way of communicating with a GPU to retrieve this
  1093. information or perform any memory management. CTest simply keeps track of a
  1094. list of abstract resource types, each of which has a certain number of slots
  1095. available for tests to use. Each test specifies the number of slots that it
  1096. requires from a certain resource, and CTest then schedules them in a way that
  1097. prevents the total number of slots in use from exceeding the listed capacity.
  1098. When a test is executed, and slots from a resource are allocated to that test,
  1099. tests may assume that they have exclusive use of those slots for the duration
  1100. of the test's process.
  1101. The CTest resource allocation feature consists of two inputs:
  1102. * The :ref:`resource specification file <ctest-resource-specification-file>`,
  1103. described below, which describes the resources available on the system.
  1104. * The :prop_test:`RESOURCE_GROUPS` property of tests, which describes the
  1105. resources required by the test.
  1106. When CTest runs a test, the resources allocated to that test are passed in the
  1107. form of a set of
  1108. :ref:`environment variables <ctest-resource-environment-variables>` as
  1109. described below. Using this information to decide which resource to connect to
  1110. is left to the test writer.
  1111. The ``RESOURCE_GROUPS`` property tells CTest what resources a test expects
  1112. to use grouped in a way meaningful to the test. The test itself must read
  1113. the :ref:`environment variables <ctest-resource-environment-variables>` to
  1114. determine which resources have been allocated to each group. For example,
  1115. each group may correspond to a process the test will spawn when executed.
  1116. Note that even if a test specifies a ``RESOURCE_GROUPS`` property, it is still
  1117. possible for that to test to run without any resource allocation (and without
  1118. the corresponding
  1119. :ref:`environment variables <ctest-resource-environment-variables>`)
  1120. if the user does not pass a resource specification file. Passing this file,
  1121. either through the ``--resource-spec-file`` command-line argument or the
  1122. ``RESOURCE_SPEC_FILE`` argument to :command:`ctest_test`, is what activates the
  1123. resource allocation feature. Tests should check the
  1124. ``CTEST_RESOURCE_GROUP_COUNT`` environment variable to find out whether or not
  1125. resource allocation is activated. This variable will always (and only) be
  1126. defined if resource allocation is activated. If resource allocation is not
  1127. activated, then the ``CTEST_RESOURCE_GROUP_COUNT`` variable will not exist,
  1128. even if it exists for the parent ``ctest`` process. If a test absolutely must
  1129. have resource allocation, then it can return a failing exit code or use the
  1130. :prop_test:`SKIP_RETURN_CODE` or :prop_test:`SKIP_REGULAR_EXPRESSION`
  1131. properties to indicate a skipped test.
  1132. .. _`ctest-resource-specification-file`:
  1133. Resource Specification File
  1134. ---------------------------
  1135. The resource specification file is a JSON file which is passed to CTest, either
  1136. on the command line as :option:`ctest --resource-spec-file`, or as the
  1137. ``RESOURCE_SPEC_FILE`` argument of :command:`ctest_test`. If a dashboard script
  1138. is used and ``RESOURCE_SPEC_FILE`` is not specified, the value of
  1139. :variable:`CTEST_RESOURCE_SPEC_FILE` in the dashboard script is used instead.
  1140. If :option:`--resource-spec-file <ctest --resource-spec-file>`, ``RESOURCE_SPEC_FILE``,
  1141. and :variable:`CTEST_RESOURCE_SPEC_FILE` in the dashboard script are not specified,
  1142. the value of :variable:`CTEST_RESOURCE_SPEC_FILE` in the CMake build is used
  1143. instead. If none of these are specified, no resource spec file is used.
  1144. The resource specification file must be a JSON object. All examples in this
  1145. document assume the following resource specification file:
  1146. .. code-block:: json
  1147. {
  1148. "version": {
  1149. "major": 1,
  1150. "minor": 0
  1151. },
  1152. "local": [
  1153. {
  1154. "gpus": [
  1155. {
  1156. "id": "0",
  1157. "slots": 2
  1158. },
  1159. {
  1160. "id": "1",
  1161. "slots": 4
  1162. },
  1163. {
  1164. "id": "2",
  1165. "slots": 2
  1166. },
  1167. {
  1168. "id": "3"
  1169. }
  1170. ],
  1171. "crypto_chips": [
  1172. {
  1173. "id": "card0",
  1174. "slots": 4
  1175. }
  1176. ]
  1177. }
  1178. ]
  1179. }
  1180. The members are:
  1181. ``version``
  1182. An object containing a ``major`` integer field and a ``minor`` integer field.
  1183. Currently, the only supported version is major ``1``, minor ``0``. Any other
  1184. value is an error.
  1185. ``local``
  1186. A JSON array of resource sets present on the system. Currently, this array
  1187. is restricted to being of size 1.
  1188. Each array element is a JSON object with members whose names are equal to the
  1189. desired resource types, such as ``gpus``. These names must start with a
  1190. lowercase letter or an underscore, and subsequent characters can be a
  1191. lowercase letter, a digit, or an underscore. Uppercase letters are not
  1192. allowed, because certain platforms have case-insensitive environment
  1193. variables. See the `Environment Variables`_ section below for
  1194. more information. It is recommended that the resource type name be the plural
  1195. of a noun, such as ``gpus`` or ``crypto_chips`` (and not ``gpu`` or
  1196. ``crypto_chip``.)
  1197. Please note that the names ``gpus`` and ``crypto_chips`` are just examples,
  1198. and CTest does not interpret them in any way. You are free to make up any
  1199. resource type you want to meet your own requirements.
  1200. The value for each resource type is a JSON array consisting of JSON objects,
  1201. each of which describe a specific instance of the specified resource. These
  1202. objects have the following members:
  1203. ``id``
  1204. A string consisting of an identifier for the resource. Each character in
  1205. the identifier can be a lowercase letter, a digit, or an underscore.
  1206. Uppercase letters are not allowed.
  1207. Identifiers must be unique within a resource type. However, they do not
  1208. have to be unique across resource types. For example, it is valid to have a
  1209. ``gpus`` resource named ``0`` and a ``crypto_chips`` resource named ``0``,
  1210. but not two ``gpus`` resources both named ``0``.
  1211. Please note that the IDs ``0``, ``1``, ``2``, ``3``, and ``card0`` are just
  1212. examples, and CTest does not interpret them in any way. You are free to
  1213. make up any IDs you want to meet your own requirements.
  1214. ``slots``
  1215. An optional unsigned number specifying the number of slots available on the
  1216. resource. For example, this could be megabytes of RAM on a GPU, or
  1217. cryptography units available on a cryptography chip. If ``slots`` is not
  1218. specified, a default value of ``1`` is assumed.
  1219. In the example file above, there are four GPUs with ID's 0 through 3. GPU 0 has
  1220. 2 slots, GPU 1 has 4, GPU 2 has 2, and GPU 3 has a default of 1 slot. There is
  1221. also one cryptography chip with 4 slots.
  1222. ``RESOURCE_GROUPS`` Property
  1223. ----------------------------
  1224. See :prop_test:`RESOURCE_GROUPS` for a description of this property.
  1225. .. _`ctest-resource-environment-variables`:
  1226. Environment Variables
  1227. ---------------------
  1228. Once CTest has decided which resources to allocate to a test, it passes this
  1229. information to the test executable as a series of environment variables. For
  1230. each example below, we will assume that the test in question has a
  1231. :prop_test:`RESOURCE_GROUPS` property of
  1232. ``2,gpus:2;gpus:4,gpus:1,crypto_chips:2``.
  1233. The following variables are passed to the test process:
  1234. .. envvar:: CTEST_RESOURCE_GROUP_COUNT
  1235. The total number of groups specified by the :prop_test:`RESOURCE_GROUPS`
  1236. property. For example:
  1237. * ``CTEST_RESOURCE_GROUP_COUNT=3``
  1238. This variable will only be defined if :manual:`ctest(1)` has been given a
  1239. ``--resource-spec-file``, or if :command:`ctest_test` has been given a
  1240. ``RESOURCE_SPEC_FILE``. If no resource specification file has been given,
  1241. this variable will not be defined.
  1242. .. envvar:: CTEST_RESOURCE_GROUP_<num>
  1243. The list of resource types allocated to each group, with each item
  1244. separated by a comma. ``<num>`` is a number from zero to
  1245. ``CTEST_RESOURCE_GROUP_COUNT`` minus one. ``CTEST_RESOURCE_GROUP_<num>``
  1246. is defined for each ``<num>`` in this range. For example:
  1247. * ``CTEST_RESOURCE_GROUP_0=gpus``
  1248. * ``CTEST_RESOURCE_GROUP_1=gpus``
  1249. * ``CTEST_RESOURCE_GROUP_2=crypto_chips,gpus``
  1250. .. envvar:: CTEST_RESOURCE_GROUP_<num>_<resource-type>
  1251. The list of resource IDs and number of slots from each ID allocated to each
  1252. group for a given resource type. This variable consists of a series of
  1253. pairs, each pair separated by a semicolon, and with the two items in the pair
  1254. separated by a comma. The first item in each pair is ``id:`` followed by the
  1255. ID of a resource of type ``<resource-type>``, and the second item is
  1256. ``slots:`` followed by the number of slots from that resource allocated to
  1257. the given group. For example:
  1258. * ``CTEST_RESOURCE_GROUP_0_GPUS=id:0,slots:2``
  1259. * ``CTEST_RESOURCE_GROUP_1_GPUS=id:2,slots:2``
  1260. * ``CTEST_RESOURCE_GROUP_2_GPUS=id:1,slots:4;id:3,slots:1``
  1261. * ``CTEST_RESOURCE_GROUP_2_CRYPTO_CHIPS=id:card0,slots:2``
  1262. In this example, group 0 gets 2 slots from GPU ``0``, group 1 gets 2 slots
  1263. from GPU ``2``, and group 2 gets 4 slots from GPU ``1``, 1 slot from GPU
  1264. ``3``, and 2 slots from cryptography chip ``card0``.
  1265. ``<num>`` is a number from zero to ``CTEST_RESOURCE_GROUP_COUNT`` minus one.
  1266. ``<resource-type>`` is the name of a resource type, converted to uppercase.
  1267. ``CTEST_RESOURCE_GROUP_<num>_<resource-type>`` is defined for the product
  1268. of each ``<num>`` in the range listed above and each resource type listed in
  1269. ``CTEST_RESOURCE_GROUP_<num>``.
  1270. Because some platforms have case-insensitive names for environment variables,
  1271. the names of resource types may not clash in a case-insensitive environment.
  1272. Because of this, for the sake of simplicity, all resource types must be
  1273. listed in all lowercase in the
  1274. :ref:`resource specification file <ctest-resource-specification-file>` and
  1275. in the :prop_test:`RESOURCE_GROUPS` property, and they are converted to all
  1276. uppercase in the ``CTEST_RESOURCE_GROUP_<num>_<resource-type>`` environment
  1277. variable.
  1278. See Also
  1279. ========
  1280. .. include:: LINKS.txt
  1281. _`CDash`: https://cdash.org