ctest.1.rst 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257
  1. .. cmake-manual-description: CTest Command-Line Reference
  2. ctest(1)
  3. ********
  4. .. contents::
  5. Synopsis
  6. ========
  7. .. parsed-literal::
  8. ctest [<options>]
  9. ctest --build-and-test <path-to-source> <path-to-build>
  10. --build-generator <generator> [<options>...]
  11. [--build-options <opts>...] [--test-command <command> [<args>...]]
  12. ctest {-D <dashboard> | -M <model> -T <action> | -S <script> | -SP <script>}
  13. [-- <dashboard-options>...]
  14. Description
  15. ===========
  16. The **ctest** executable is the CMake test driver program.
  17. CMake-generated build trees created for projects that use the
  18. :command:`enable_testing` and :command:`add_test` commands have testing support.
  19. This program will run the tests and report results.
  20. Options
  21. =======
  22. ``-C <cfg>, --build-config <cfg>``
  23. Choose configuration to test.
  24. Some CMake-generated build trees can have multiple build
  25. configurations in the same tree. This option can be used to specify
  26. which one should be tested. Example configurations are ``Debug`` and
  27. ``Release``.
  28. ``--progress``
  29. Enable short progress output from tests.
  30. When the output of **ctest** is being sent directly to a terminal, the
  31. progress through the set of tests is reported by updating the same line
  32. rather than printing start and end messages for each test on new lines.
  33. This can significantly reduce the verbosity of the test output.
  34. Test completion messages are still output on their own line for failed
  35. tests and the final test summary will also still be logged.
  36. This option can also be enabled by setting the environment variable
  37. :envvar:`CTEST_PROGRESS_OUTPUT`.
  38. ``-V,--verbose``
  39. Enable verbose output from tests.
  40. Test output is normally suppressed and only summary information is
  41. displayed. This option will show all test output.
  42. ``-VV,--extra-verbose``
  43. Enable more verbose output from tests.
  44. Test output is normally suppressed and only summary information is
  45. displayed. This option will show even more test output.
  46. ``--debug``
  47. Displaying more verbose internals of CTest.
  48. This feature will result in a large number of output that is mostly
  49. useful for debugging dashboard problems.
  50. ``--output-on-failure``
  51. Output anything outputted by the test program if the test should fail.
  52. This option can also be enabled by setting the
  53. :envvar:`CTEST_OUTPUT_ON_FAILURE` environment variable
  54. ``-F``
  55. Enable failover.
  56. This option allows CTest to resume a test set execution that was
  57. previously interrupted. If no interruption occurred, the ``-F`` option
  58. will have no effect.
  59. ``-j <jobs>, --parallel <jobs>``
  60. Run the tests in parallel using the given number of jobs.
  61. This option tells CTest to run the tests in parallel using given
  62. number of jobs. This option can also be set by setting the
  63. :envvar:`CTEST_PARALLEL_LEVEL` environment variable.
  64. This option can be used with the :prop_test:`PROCESSORS` test property.
  65. See `Label and Subproject Summary`_.
  66. ``--test-load <level>``
  67. While running tests in parallel (e.g. with ``-j``), try not to start
  68. tests when they may cause the CPU load to pass above a given threshold.
  69. When ``ctest`` is run as a `Dashboard Client`_ this sets the
  70. ``TestLoad`` option of the `CTest Test Step`_.
  71. ``-Q,--quiet``
  72. Make CTest quiet.
  73. This option will suppress all the output. The output log file will
  74. still be generated if the ``--output-log`` is specified. Options such
  75. as ``--verbose``, ``--extra-verbose``, and ``--debug`` are ignored
  76. if ``--quiet`` is specified.
  77. ``-O <file>, --output-log <file>``
  78. Output to log file.
  79. This option tells CTest to write all its output to a ``<file>`` log file.
  80. ``-N,--show-only[=<format>]``
  81. Disable actual execution of tests.
  82. This option tells CTest to list the tests that would be run but not
  83. actually run them. Useful in conjunction with the ``-R`` and ``-E``
  84. options.
  85. ``<format>`` can be one of the following values.
  86. ``human``
  87. Human-friendly output. This is not guaranteed to be stable.
  88. This is the default.
  89. ``json-v1``
  90. Dump the test information in JSON format.
  91. See `Show as JSON Object Model`_.
  92. ``-L <regex>, --label-regex <regex>``
  93. Run tests with labels matching regular expression.
  94. This option tells CTest to run only the tests whose labels match the
  95. given regular expression.
  96. ``-R <regex>, --tests-regex <regex>``
  97. Run tests matching regular expression.
  98. This option tells CTest to run only the tests whose names match the
  99. given regular expression.
  100. ``-E <regex>, --exclude-regex <regex>``
  101. Exclude tests matching regular expression.
  102. This option tells CTest to NOT run the tests whose names match the
  103. given regular expression.
  104. ``-LE <regex>, --label-exclude <regex>``
  105. Exclude tests with labels matching regular expression.
  106. This option tells CTest to NOT run the tests whose labels match the
  107. given regular expression.
  108. ``-FA <regex>, --fixture-exclude-any <regex>``
  109. Exclude fixtures matching ``<regex>`` from automatically adding any tests to
  110. the test set.
  111. If a test in the set of tests to be executed requires a particular fixture,
  112. that fixture's setup and cleanup tests would normally be added to the test set
  113. automatically. This option prevents adding setup or cleanup tests for fixtures
  114. matching the ``<regex>``. Note that all other fixture behavior is retained,
  115. including test dependencies and skipping tests that have fixture setup tests
  116. that fail.
  117. ``-FS <regex>, --fixture-exclude-setup <regex>``
  118. Same as ``-FA`` except only matching setup tests are excluded.
  119. ``-FC <regex>, --fixture-exclude-cleanup <regex>``
  120. Same as ``-FA`` except only matching cleanup tests are excluded.
  121. ``-D <dashboard>, --dashboard <dashboard>``
  122. Execute dashboard test.
  123. This option tells CTest to act as a CDash client and perform a
  124. dashboard test. All tests are ``<Mode><Test>``, where ``<Mode>`` can be
  125. ``Experimental``, ``Nightly``, and ``Continuous``, and ``<Test>`` can be
  126. ``Start``, ``Update``, ``Configure``, ``Build``, ``Test``,
  127. ``Coverage``, and ``Submit``.
  128. See `Dashboard Client`_.
  129. ``-D <var>:<type>=<value>``
  130. Define a variable for script mode.
  131. Pass in variable values on the command line. Use in conjunction
  132. with ``-S`` to pass variable values to a dashboard script. Parsing ``-D``
  133. arguments as variable values is only attempted if the value
  134. following ``-D`` does not match any of the known dashboard types.
  135. ``-M <model>, --test-model <model>``
  136. Sets the model for a dashboard.
  137. This option tells CTest to act as a CDash client where the ``<model>``
  138. can be ``Experimental``, ``Nightly``, and ``Continuous``.
  139. Combining ``-M`` and ``-T`` is similar to ``-D``.
  140. See `Dashboard Client`_.
  141. ``-T <action>, --test-action <action>``
  142. Sets the dashboard action to perform.
  143. This option tells CTest to act as a CDash client and perform some
  144. action such as ``start``, ``build``, ``test`` etc. See
  145. `Dashboard Client Steps`_ for the full list of actions.
  146. Combining ``-M`` and ``-T`` is similar to ``-D``.
  147. See `Dashboard Client`_.
  148. ``-S <script>, --script <script>``
  149. Execute a dashboard for a configuration.
  150. This option tells CTest to load in a configuration script which sets
  151. a number of parameters such as the binary and source directories.
  152. Then CTest will do what is required to create and run a dashboard.
  153. This option basically sets up a dashboard and then runs ``ctest -D``
  154. with the appropriate options.
  155. See `Dashboard Client`_.
  156. ``-SP <script>, --script-new-process <script>``
  157. Execute a dashboard for a configuration.
  158. This option does the same operations as ``-S`` but it will do them in a
  159. separate process. This is primarily useful in cases where the
  160. script may modify the environment and you do not want the modified
  161. environment to impact other ``-S`` scripts.
  162. See `Dashboard Client`_.
  163. ``-I [Start,End,Stride,test#,test#|Test file], --tests-information``
  164. Run a specific number of tests by number.
  165. This option causes CTest to run tests starting at number ``Start``,
  166. ending at number ``End``, and incrementing by ``Stride``. Any additional
  167. numbers after ``Stride`` are considered individual test numbers. ``Start``,
  168. ``End``, or ``Stride`` can be empty. Optionally a file can be given that
  169. contains the same syntax as the command line.
  170. ``-U, --union``
  171. Take the Union of ``-I`` and ``-R``.
  172. When both ``-R`` and ``-I`` are specified by default the intersection of
  173. tests are run. By specifying ``-U`` the union of tests is run instead.
  174. ``--rerun-failed``
  175. Run only the tests that failed previously.
  176. This option tells CTest to perform only the tests that failed during
  177. its previous run. When this option is specified, CTest ignores all
  178. other options intended to modify the list of tests to run (``-L``, ``-R``,
  179. ``-E``, ``-LE``, ``-I``, etc). In the event that CTest runs and no tests
  180. fail, subsequent calls to CTest with the ``--rerun-failed`` option will run
  181. the set of tests that most recently failed (if any).
  182. ``--repeat-until-fail <n>``
  183. Require each test to run ``<n>`` times without failing in order to pass.
  184. This is useful in finding sporadic failures in test cases.
  185. ``--max-width <width>``
  186. Set the max width for a test name to output.
  187. Set the maximum width for each test name to show in the output.
  188. This allows the user to widen the output to avoid clipping the test
  189. name which can be very annoying.
  190. ``--interactive-debug-mode [0|1]``
  191. Set the interactive mode to ``0`` or ``1``.
  192. This option causes CTest to run tests in either an interactive mode
  193. or a non-interactive mode. On Windows this means that in
  194. non-interactive mode, all system debug pop up windows are blocked.
  195. In dashboard mode (``Experimental``, ``Nightly``, ``Continuous``), the default
  196. is non-interactive. When just running tests not for a dashboard the
  197. default is to allow popups and interactive debugging.
  198. ``--no-label-summary``
  199. Disable timing summary information for labels.
  200. This option tells CTest not to print summary information for each
  201. label associated with the tests run. If there are no labels on the
  202. tests, nothing extra is printed.
  203. See `Label and Subproject Summary`_.
  204. ``--no-subproject-summary``
  205. Disable timing summary information for subprojects.
  206. This option tells CTest not to print summary information for each
  207. subproject associated with the tests run. If there are no subprojects on the
  208. tests, nothing extra is printed.
  209. See `Label and Subproject Summary`_.
  210. ``--build-and-test``
  211. See `Build and Test Mode`_.
  212. ``--test-output-size-passed <size>``
  213. Limit the output for passed tests to ``<size>`` bytes.
  214. ``--test-output-size-failed <size>``
  215. Limit the output for failed tests to ``<size>`` bytes.
  216. ``--overwrite``
  217. Overwrite CTest configuration option.
  218. By default CTest uses configuration options from configuration file.
  219. This option will overwrite the configuration option.
  220. ``--force-new-ctest-process``
  221. Run child CTest instances as new processes.
  222. By default CTest will run child CTest instances within the same
  223. process. If this behavior is not desired, this argument will
  224. enforce new processes for child CTest processes.
  225. ``--schedule-random``
  226. Use a random order for scheduling tests.
  227. This option will run the tests in a random order. It is commonly
  228. used to detect implicit dependencies in a test suite.
  229. ``--submit-index``
  230. Legacy option for old Dart2 dashboard server feature.
  231. Do not use.
  232. ``--timeout <seconds>``
  233. Set the default test timeout.
  234. This option effectively sets a timeout on all tests that do not
  235. already have a timeout set on them via the :prop_test:`TIMEOUT`
  236. property.
  237. ``--stop-time <time>``
  238. Set a time at which all tests should stop running.
  239. Set a real time of day at which all tests should timeout. Example:
  240. ``7:00:00 -0400``. Any time format understood by the curl date parser
  241. is accepted. Local time is assumed if no timezone is specified.
  242. ``--print-labels``
  243. Print all available test labels.
  244. This option will not run any tests, it will simply print the list of
  245. all labels associated with the test set.
  246. .. include:: OPTIONS_HELP.txt
  247. .. _`Label and Subproject Summary`:
  248. Label and Subproject Summary
  249. ============================
  250. CTest prints timing summary information for each ``LABEL`` and subproject
  251. associated with the tests run. The label time summary will not include labels
  252. that are mapped to subprojects.
  253. When the :prop_test:`PROCESSORS` test property is set, CTest will display a
  254. weighted test timing result in label and subproject summaries. The time is
  255. reported with `sec*proc` instead of just `sec`.
  256. The weighted time summary reported for each label or subproject ``j``
  257. is computed as::
  258. Weighted Time Summary for Label/Subproject j =
  259. sum(raw_test_time[j,i] * num_processors[j,i], i=1...num_tests[j])
  260. for labels/subprojects j=1...total
  261. where:
  262. * ``raw_test_time[j,i]``: Wall-clock time for the ``i``th test
  263. for the ``j``th label or subproject
  264. * ``num_processors[j,i]``: Value of the CTest :prop_test:`PROCESSORS` property
  265. for the ``i``th test for the ``j``th label or subproject
  266. * ``num_tests[j]``: Number of tests associated with the ``j``th label or subproject
  267. * ``total``: Total number of labels or subprojects that have at least one test run
  268. Therefore, the weighted time summary for each label or subproject represents
  269. the amount of time that CTest gave to run the tests for each label or
  270. subproject and gives a good representation of the total expense of the tests
  271. for each label or subproject when compared to other labels or subprojects.
  272. For example, if ``SubprojectA`` showed ``100 sec*proc`` and ``SubprojectB`` showed
  273. ``10 sec*proc``, then CTest allocated approximately 10 times the CPU/core time
  274. to run the tests for ``SubprojectA`` than for ``SubprojectB`` (e.g. so if effort
  275. is going to be expended to reduce the cost of the test suite for the whole
  276. project, then reducing the cost of the test suite for ``SubprojectA`` would
  277. likely have a larger impact than effort to reduce the cost of the test suite
  278. for ``SubprojectB``).
  279. .. _`Build and Test Mode`:
  280. Build and Test Mode
  281. ===================
  282. CTest provides a command-line signature to configure (i.e. run cmake on),
  283. build, and/or execute a test::
  284. ctest --build-and-test <path-to-source> <path-to-build>
  285. --build-generator <generator>
  286. [<options>...]
  287. [--build-options <opts>...]
  288. [--test-command <command> [<args>...]]
  289. The configure and test steps are optional. The arguments to this command line
  290. are the source and binary directories. The ``--build-generator`` option *must*
  291. be provided to use ``--build-and-test``. If ``--test-command`` is specified
  292. then that will be run after the build is complete. Other options that affect
  293. this mode include:
  294. ``--build-target``
  295. Specify a specific target to build.
  296. If left out the ``all`` target is built.
  297. ``--build-nocmake``
  298. Run the build without running cmake first.
  299. Skip the cmake step.
  300. ``--build-run-dir``
  301. Specify directory to run programs from.
  302. Directory where programs will be after it has been compiled.
  303. ``--build-two-config``
  304. Run CMake twice.
  305. ``--build-exe-dir``
  306. Specify the directory for the executable.
  307. ``--build-generator``
  308. Specify the generator to use. See the :manual:`cmake-generators(7)` manual.
  309. ``--build-generator-platform``
  310. Specify the generator-specific platform.
  311. ``--build-generator-toolset``
  312. Specify the generator-specific toolset.
  313. ``--build-project``
  314. Specify the name of the project to build.
  315. ``--build-makeprogram``
  316. Override the make program chosen by CTest with a given one.
  317. ``--build-noclean``
  318. Skip the make clean step.
  319. ``--build-config-sample``
  320. A sample executable to use to determine the configuration that
  321. should be used. e.g. ``Debug``, ``Release`` etc.
  322. ``--build-options``
  323. Additional options for configuring the build (i.e. for CMake, not for
  324. the build tool). Note that if this is specified, the ``--build-options``
  325. keyword and its arguments must be the last option given on the command
  326. line, with the possible exception of ``--test-command``.
  327. ``--test-command``
  328. The command to run as the test step with the ``--build-and-test`` option.
  329. All arguments following this keyword will be assumed to be part of the
  330. test command line, so it must be the last option given.
  331. ``--test-timeout``
  332. The time limit in seconds
  333. .. _`Dashboard Client`:
  334. Dashboard Client
  335. ================
  336. CTest can operate as a client for the `CDash`_ software quality dashboard
  337. application. As a dashboard client, CTest performs a sequence of steps
  338. to configure, build, and test software, and then submits the results to
  339. a `CDash`_ server. The command-line signature used to submit to `CDash`_ is::
  340. ctest (-D <dashboard> | -M <model> -T <action> | -S <script> | -SP <script>)
  341. [-- <dashboard-options>...]
  342. Options for Dashboard Client include:
  343. ``--track <track>``
  344. Specify the track to submit dashboard to
  345. Submit dashboard to specified track instead of default one. By
  346. default, the dashboard is submitted to Nightly, Experimental, or
  347. Continuous track, but by specifying this option, the track can be
  348. arbitrary.
  349. ``-A <file>, --add-notes <file>``
  350. Add a notes file with submission.
  351. This option tells CTest to include a notes file when submitting
  352. dashboard.
  353. ``--tomorrow-tag``
  354. ``Nightly`` or ``Experimental`` starts with next day tag.
  355. This is useful if the build will not finish in one day.
  356. ``--extra-submit <file>[;<file>]``
  357. Submit extra files to the dashboard.
  358. This option will submit extra files to the dashboard.
  359. ``--http1.0``
  360. Submit using `HTTP 1.0`.
  361. This option will force CTest to use `HTTP 1.0` to submit files to the
  362. dashboard, instead of `HTTP 1.1`.
  363. ``--no-compress-output``
  364. Do not compress test output when submitting.
  365. This flag will turn off automatic compression of test output. Use
  366. this to maintain compatibility with an older version of CDash which
  367. doesn't support compressed test output.
  368. Dashboard Client Steps
  369. ----------------------
  370. CTest defines an ordered list of testing steps of which some or all may
  371. be run as a dashboard client:
  372. ``Start``
  373. Start a new dashboard submission to be composed of results recorded
  374. by the following steps.
  375. See the `CTest Start Step`_ section below.
  376. ``Update``
  377. Update the source tree from its version control repository.
  378. Record the old and new versions and the list of updated source files.
  379. See the `CTest Update Step`_ section below.
  380. ``Configure``
  381. Configure the software by running a command in the build tree.
  382. Record the configuration output log.
  383. See the `CTest Configure Step`_ section below.
  384. ``Build``
  385. Build the software by running a command in the build tree.
  386. Record the build output log and detect warnings and errors.
  387. See the `CTest Build Step`_ section below.
  388. ``Test``
  389. Test the software by loading a ``CTestTestfile.cmake``
  390. from the build tree and executing the defined tests.
  391. Record the output and result of each test.
  392. See the `CTest Test Step`_ section below.
  393. ``Coverage``
  394. Compute coverage of the source code by running a coverage
  395. analysis tool and recording its output.
  396. See the `CTest Coverage Step`_ section below.
  397. ``MemCheck``
  398. Run the software test suite through a memory check tool.
  399. Record the test output, results, and issues reported by the tool.
  400. See the `CTest MemCheck Step`_ section below.
  401. ``Submit``
  402. Submit results recorded from other testing steps to the
  403. software quality dashboard server.
  404. See the `CTest Submit Step`_ section below.
  405. Dashboard Client Modes
  406. ----------------------
  407. CTest defines three modes of operation as a dashboard client:
  408. ``Nightly``
  409. This mode is intended to be invoked once per day, typically at night.
  410. It enables the ``Start``, ``Update``, ``Configure``, ``Build``, ``Test``,
  411. ``Coverage``, and ``Submit`` steps by default. Selected steps run even
  412. if the ``Update`` step reports no changes to the source tree.
  413. ``Continuous``
  414. This mode is intended to be invoked repeatedly throughout the day.
  415. It enables the ``Start``, ``Update``, ``Configure``, ``Build``, ``Test``,
  416. ``Coverage``, and ``Submit`` steps by default, but exits after the
  417. ``Update`` step if it reports no changes to the source tree.
  418. ``Experimental``
  419. This mode is intended to be invoked by a developer to test local changes.
  420. It enables the ``Start``, ``Configure``, ``Build``, ``Test``, ``Coverage``,
  421. and ``Submit`` steps by default.
  422. Dashboard Client via CTest Command-Line
  423. ---------------------------------------
  424. CTest can perform testing on an already-generated build tree.
  425. Run the ``ctest`` command with the current working directory set
  426. to the build tree and use one of these signatures::
  427. ctest -D <mode>[<step>]
  428. ctest -M <mode> [ -T <step> ]...
  429. The ``<mode>`` must be one of the above `Dashboard Client Modes`_,
  430. and each ``<step>`` must be one of the above `Dashboard Client Steps`_.
  431. CTest reads the `Dashboard Client Configuration`_ settings from
  432. a file in the build tree called either ``CTestConfiguration.ini``
  433. or ``DartConfiguration.tcl`` (the names are historical). The format
  434. of the file is::
  435. # Lines starting in '#' are comments.
  436. # Other non-blank lines are key-value pairs.
  437. <setting>: <value>
  438. where ``<setting>`` is the setting name and ``<value>`` is the
  439. setting value.
  440. In build trees generated by CMake, this configuration file is
  441. generated by the :module:`CTest` module if included by the project.
  442. The module uses variables to obtain a value for each setting
  443. as documented with the settings below.
  444. .. _`CTest Script`:
  445. Dashboard Client via CTest Script
  446. ---------------------------------
  447. CTest can perform testing driven by a :manual:`cmake-language(7)`
  448. script that creates and maintains the source and build tree as
  449. well as performing the testing steps. Run the ``ctest`` command
  450. with the current working directory set outside of any build tree
  451. and use one of these signatures::
  452. ctest -S <script>
  453. ctest -SP <script>
  454. The ``<script>`` file must call :ref:`CTest Commands` commands
  455. to run testing steps explicitly as documented below. The commands
  456. obtain `Dashboard Client Configuration`_ settings from their
  457. arguments or from variables set in the script.
  458. Dashboard Client Configuration
  459. ==============================
  460. The `Dashboard Client Steps`_ may be configured by named
  461. settings as documented in the following sections.
  462. .. _`CTest Start Step`:
  463. CTest Start Step
  464. ----------------
  465. Start a new dashboard submission to be composed of results recorded
  466. by the following steps.
  467. In a `CTest Script`_, the :command:`ctest_start` command runs this step.
  468. Arguments to the command may specify some of the step settings.
  469. The command first runs the command-line specified by the
  470. ``CTEST_CHECKOUT_COMMAND`` variable, if set, to initialize the source
  471. directory.
  472. Configuration settings include:
  473. ``BuildDirectory``
  474. The full path to the project build tree.
  475. * `CTest Script`_ variable: :variable:`CTEST_BINARY_DIRECTORY`
  476. * :module:`CTest` module variable: :variable:`PROJECT_BINARY_DIR`
  477. ``SourceDirectory``
  478. The full path to the project source tree.
  479. * `CTest Script`_ variable: :variable:`CTEST_SOURCE_DIRECTORY`
  480. * :module:`CTest` module variable: :variable:`PROJECT_SOURCE_DIR`
  481. .. _`CTest Update Step`:
  482. CTest Update Step
  483. -----------------
  484. In a `CTest Script`_, the :command:`ctest_update` command runs this step.
  485. Arguments to the command may specify some of the step settings.
  486. Configuration settings to specify the version control tool include:
  487. ``BZRCommand``
  488. ``bzr`` command-line tool to use if source tree is managed by Bazaar.
  489. * `CTest Script`_ variable: :variable:`CTEST_BZR_COMMAND`
  490. * :module:`CTest` module variable: none
  491. ``BZRUpdateOptions``
  492. Command-line options to the ``BZRCommand`` when updating the source.
  493. * `CTest Script`_ variable: :variable:`CTEST_BZR_UPDATE_OPTIONS`
  494. * :module:`CTest` module variable: none
  495. ``CVSCommand``
  496. ``cvs`` command-line tool to use if source tree is managed by CVS.
  497. * `CTest Script`_ variable: :variable:`CTEST_CVS_COMMAND`
  498. * :module:`CTest` module variable: ``CVSCOMMAND``
  499. ``CVSUpdateOptions``
  500. Command-line options to the ``CVSCommand`` when updating the source.
  501. * `CTest Script`_ variable: :variable:`CTEST_CVS_UPDATE_OPTIONS`
  502. * :module:`CTest` module variable: ``CVS_UPDATE_OPTIONS``
  503. ``GITCommand``
  504. ``git`` command-line tool to use if source tree is managed by Git.
  505. * `CTest Script`_ variable: :variable:`CTEST_GIT_COMMAND`
  506. * :module:`CTest` module variable: ``GITCOMMAND``
  507. The source tree is updated by ``git fetch`` followed by
  508. ``git reset --hard`` to the ``FETCH_HEAD``. The result is the same
  509. as ``git pull`` except that any local modifications are overwritten.
  510. Use ``GITUpdateCustom`` to specify a different approach.
  511. ``GITInitSubmodules``
  512. If set, CTest will update the repository's submodules before updating.
  513. * `CTest Script`_ variable: :variable:`CTEST_GIT_INIT_SUBMODULES`
  514. * :module:`CTest` module variable: ``CTEST_GIT_INIT_SUBMODULES``
  515. ``GITUpdateCustom``
  516. Specify a custom command line (as a semicolon-separated list) to run
  517. in the source tree (Git work tree) to update it instead of running
  518. the ``GITCommand``.
  519. * `CTest Script`_ variable: :variable:`CTEST_GIT_UPDATE_CUSTOM`
  520. * :module:`CTest` module variable: ``CTEST_GIT_UPDATE_CUSTOM``
  521. ``GITUpdateOptions``
  522. Command-line options to the ``GITCommand`` when updating the source.
  523. * `CTest Script`_ variable: :variable:`CTEST_GIT_UPDATE_OPTIONS`
  524. * :module:`CTest` module variable: ``GIT_UPDATE_OPTIONS``
  525. ``HGCommand``
  526. ``hg`` command-line tool to use if source tree is managed by Mercurial.
  527. * `CTest Script`_ variable: :variable:`CTEST_HG_COMMAND`
  528. * :module:`CTest` module variable: none
  529. ``HGUpdateOptions``
  530. Command-line options to the ``HGCommand`` when updating the source.
  531. * `CTest Script`_ variable: :variable:`CTEST_HG_UPDATE_OPTIONS`
  532. * :module:`CTest` module variable: none
  533. ``P4Client``
  534. Value of the ``-c`` option to the ``P4Command``.
  535. * `CTest Script`_ variable: :variable:`CTEST_P4_CLIENT`
  536. * :module:`CTest` module variable: ``CTEST_P4_CLIENT``
  537. ``P4Command``
  538. ``p4`` command-line tool to use if source tree is managed by Perforce.
  539. * `CTest Script`_ variable: :variable:`CTEST_P4_COMMAND`
  540. * :module:`CTest` module variable: ``P4COMMAND``
  541. ``P4Options``
  542. Command-line options to the ``P4Command`` for all invocations.
  543. * `CTest Script`_ variable: :variable:`CTEST_P4_OPTIONS`
  544. * :module:`CTest` module variable: ``CTEST_P4_OPTIONS``
  545. ``P4UpdateCustom``
  546. Specify a custom command line (as a semicolon-separated list) to run
  547. in the source tree (Perforce tree) to update it instead of running
  548. the ``P4Command``.
  549. * `CTest Script`_ variable: none
  550. * :module:`CTest` module variable: ``CTEST_P4_UPDATE_CUSTOM``
  551. ``P4UpdateOptions``
  552. Command-line options to the ``P4Command`` when updating the source.
  553. * `CTest Script`_ variable: :variable:`CTEST_P4_UPDATE_OPTIONS`
  554. * :module:`CTest` module variable: ``CTEST_P4_UPDATE_OPTIONS``
  555. ``SVNCommand``
  556. ``svn`` command-line tool to use if source tree is managed by Subversion.
  557. * `CTest Script`_ variable: :variable:`CTEST_SVN_COMMAND`
  558. * :module:`CTest` module variable: ``SVNCOMMAND``
  559. ``SVNOptions``
  560. Command-line options to the ``SVNCommand`` for all invocations.
  561. * `CTest Script`_ variable: :variable:`CTEST_SVN_OPTIONS`
  562. * :module:`CTest` module variable: ``CTEST_SVN_OPTIONS``
  563. ``SVNUpdateOptions``
  564. Command-line options to the ``SVNCommand`` when updating the source.
  565. * `CTest Script`_ variable: :variable:`CTEST_SVN_UPDATE_OPTIONS`
  566. * :module:`CTest` module variable: ``SVN_UPDATE_OPTIONS``
  567. ``UpdateCommand``
  568. Specify the version-control command-line tool to use without
  569. detecting the VCS that manages the source tree.
  570. * `CTest Script`_ variable: :variable:`CTEST_UPDATE_COMMAND`
  571. * :module:`CTest` module variable: ``<VCS>COMMAND``
  572. when ``UPDATE_TYPE`` is ``<vcs>``, else ``UPDATE_COMMAND``
  573. ``UpdateOptions``
  574. Command-line options to the ``UpdateCommand``.
  575. * `CTest Script`_ variable: :variable:`CTEST_UPDATE_OPTIONS`
  576. * :module:`CTest` module variable: ``<VCS>_UPDATE_OPTIONS``
  577. when ``UPDATE_TYPE`` is ``<vcs>``, else ``UPDATE_OPTIONS``
  578. ``UpdateType``
  579. Specify the version-control system that manages the source
  580. tree if it cannot be detected automatically.
  581. The value may be ``bzr``, ``cvs``, ``git``, ``hg``,
  582. ``p4``, or ``svn``.
  583. * `CTest Script`_ variable: none, detected from source tree
  584. * :module:`CTest` module variable: ``UPDATE_TYPE`` if set,
  585. else ``CTEST_UPDATE_TYPE``
  586. ``UpdateVersionOnly``
  587. Specify that you want the version control update command to only
  588. discover the current version that is checked out, and not to update
  589. to a different version.
  590. * `CTest Script`_ variable: :variable:`CTEST_UPDATE_VERSION_ONLY`
  591. Additional configuration settings include:
  592. ``NightlyStartTime``
  593. In the ``Nightly`` dashboard mode, specify the "nightly start time".
  594. With centralized version control systems (``cvs`` and ``svn``),
  595. the ``Update`` step checks out the version of the software as of
  596. this time so that multiple clients choose a common version to test.
  597. This is not well-defined in distributed version-control systems so
  598. the setting is ignored.
  599. * `CTest Script`_ variable: :variable:`CTEST_NIGHTLY_START_TIME`
  600. * :module:`CTest` module variable: ``NIGHTLY_START_TIME`` if set,
  601. else ``CTEST_NIGHTLY_START_TIME``
  602. .. _`CTest Configure Step`:
  603. CTest Configure Step
  604. --------------------
  605. In a `CTest Script`_, the :command:`ctest_configure` command runs this step.
  606. Arguments to the command may specify some of the step settings.
  607. Configuration settings include:
  608. ``ConfigureCommand``
  609. Command-line to launch the software configuration process.
  610. It will be executed in the location specified by the
  611. ``BuildDirectory`` setting.
  612. * `CTest Script`_ variable: :variable:`CTEST_CONFIGURE_COMMAND`
  613. * :module:`CTest` module variable: :variable:`CMAKE_COMMAND`
  614. followed by :variable:`PROJECT_SOURCE_DIR`
  615. ``LabelsForSubprojects``
  616. Specify a semicolon-separated list of labels that will be treated as
  617. subprojects. This mapping will be passed on to CDash when configure, test or
  618. build results are submitted.
  619. * `CTest Script`_ variable: :variable:`CTEST_LABELS_FOR_SUBPROJECTS`
  620. * :module:`CTest` module variable: ``CTEST_LABELS_FOR_SUBPROJECTS``
  621. See `Label and Subproject Summary`_.
  622. .. _`CTest Build Step`:
  623. CTest Build Step
  624. ----------------
  625. In a `CTest Script`_, the :command:`ctest_build` command runs this step.
  626. Arguments to the command may specify some of the step settings.
  627. Configuration settings include:
  628. ``DefaultCTestConfigurationType``
  629. When the build system to be launched allows build-time selection
  630. of the configuration (e.g. ``Debug``, ``Release``), this specifies
  631. the default configuration to be built when no ``-C`` option is
  632. given to the ``ctest`` command. The value will be substituted into
  633. the value of ``MakeCommand`` to replace the literal string
  634. ``${CTEST_CONFIGURATION_TYPE}`` if it appears.
  635. * `CTest Script`_ variable: :variable:`CTEST_CONFIGURATION_TYPE`
  636. * :module:`CTest` module variable: ``DEFAULT_CTEST_CONFIGURATION_TYPE``,
  637. initialized by the :envvar:`CMAKE_CONFIG_TYPE` environment variable
  638. ``LabelsForSubprojects``
  639. Specify a semicolon-separated list of labels that will be treated as
  640. subprojects. This mapping will be passed on to CDash when configure, test or
  641. build results are submitted.
  642. * `CTest Script`_ variable: :variable:`CTEST_LABELS_FOR_SUBPROJECTS`
  643. * :module:`CTest` module variable: ``CTEST_LABELS_FOR_SUBPROJECTS``
  644. See `Label and Subproject Summary`_.
  645. ``MakeCommand``
  646. Command-line to launch the software build process.
  647. It will be executed in the location specified by the
  648. ``BuildDirectory`` setting.
  649. * `CTest Script`_ variable: :variable:`CTEST_BUILD_COMMAND`
  650. * :module:`CTest` module variable: ``MAKECOMMAND``,
  651. initialized by the :command:`build_command` command
  652. ``UseLaunchers``
  653. For build trees generated by CMake using one of the
  654. :ref:`Makefile Generators` or the :generator:`Ninja`
  655. generator, specify whether the
  656. ``CTEST_USE_LAUNCHERS`` feature is enabled by the
  657. :module:`CTestUseLaunchers` module (also included by the
  658. :module:`CTest` module). When enabled, the generated build
  659. system wraps each invocation of the compiler, linker, or
  660. custom command line with a "launcher" that communicates
  661. with CTest via environment variables and files to report
  662. granular build warning and error information. Otherwise,
  663. CTest must "scrape" the build output log for diagnostics.
  664. * `CTest Script`_ variable: :variable:`CTEST_USE_LAUNCHERS`
  665. * :module:`CTest` module variable: ``CTEST_USE_LAUNCHERS``
  666. .. _`CTest Test Step`:
  667. CTest Test Step
  668. ---------------
  669. In a `CTest Script`_, the :command:`ctest_test` command runs this step.
  670. Arguments to the command may specify some of the step settings.
  671. Configuration settings include:
  672. ``LabelsForSubprojects``
  673. Specify a semicolon-separated list of labels that will be treated as
  674. subprojects. This mapping will be passed on to CDash when configure, test or
  675. build results are submitted.
  676. * `CTest Script`_ variable: :variable:`CTEST_LABELS_FOR_SUBPROJECTS`
  677. * :module:`CTest` module variable: ``CTEST_LABELS_FOR_SUBPROJECTS``
  678. See `Label and Subproject Summary`_.
  679. ``TestLoad``
  680. While running tests in parallel (e.g. with ``-j``), try not to start
  681. tests when they may cause the CPU load to pass above a given threshold.
  682. * `CTest Script`_ variable: :variable:`CTEST_TEST_LOAD`
  683. * :module:`CTest` module variable: ``CTEST_TEST_LOAD``
  684. ``TimeOut``
  685. The default timeout for each test if not specified by the
  686. :prop_test:`TIMEOUT` test property.
  687. * `CTest Script`_ variable: :variable:`CTEST_TEST_TIMEOUT`
  688. * :module:`CTest` module variable: ``DART_TESTING_TIMEOUT``
  689. .. _`CTest Coverage Step`:
  690. CTest Coverage Step
  691. -------------------
  692. In a `CTest Script`_, the :command:`ctest_coverage` command runs this step.
  693. Arguments to the command may specify some of the step settings.
  694. Configuration settings include:
  695. ``CoverageCommand``
  696. Command-line tool to perform software coverage analysis.
  697. It will be executed in the location specified by the
  698. ``BuildDirectory`` setting.
  699. * `CTest Script`_ variable: :variable:`CTEST_COVERAGE_COMMAND`
  700. * :module:`CTest` module variable: ``COVERAGE_COMMAND``
  701. ``CoverageExtraFlags``
  702. Specify command-line options to the ``CoverageCommand`` tool.
  703. * `CTest Script`_ variable: :variable:`CTEST_COVERAGE_EXTRA_FLAGS`
  704. * :module:`CTest` module variable: ``COVERAGE_EXTRA_FLAGS``
  705. These options are the first arguments passed to ``CoverageCommand``.
  706. .. _`CTest MemCheck Step`:
  707. CTest MemCheck Step
  708. -------------------
  709. In a `CTest Script`_, the :command:`ctest_memcheck` command runs this step.
  710. Arguments to the command may specify some of the step settings.
  711. Configuration settings include:
  712. ``MemoryCheckCommand``
  713. Command-line tool to perform dynamic analysis. Test command lines
  714. will be launched through this tool.
  715. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_COMMAND`
  716. * :module:`CTest` module variable: ``MEMORYCHECK_COMMAND``
  717. ``MemoryCheckCommandOptions``
  718. Specify command-line options to the ``MemoryCheckCommand`` tool.
  719. They will be placed prior to the test command line.
  720. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_COMMAND_OPTIONS`
  721. * :module:`CTest` module variable: ``MEMORYCHECK_COMMAND_OPTIONS``
  722. ``MemoryCheckType``
  723. Specify the type of memory checking to perform.
  724. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_TYPE`
  725. * :module:`CTest` module variable: ``MEMORYCHECK_TYPE``
  726. ``MemoryCheckSanitizerOptions``
  727. Specify options to sanitizers when running with a sanitize-enabled build.
  728. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_SANITIZER_OPTIONS`
  729. * :module:`CTest` module variable: ``MEMORYCHECK_SANITIZER_OPTIONS``
  730. ``MemoryCheckSuppressionFile``
  731. Specify a file containing suppression rules for the
  732. ``MemoryCheckCommand`` tool. It will be passed with options
  733. appropriate to the tool.
  734. * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_SUPPRESSIONS_FILE`
  735. * :module:`CTest` module variable: ``MEMORYCHECK_SUPPRESSIONS_FILE``
  736. Additional configuration settings include:
  737. ``BoundsCheckerCommand``
  738. Specify a ``MemoryCheckCommand`` that is known to be command-line
  739. compatible with Bounds Checker.
  740. * `CTest Script`_ variable: none
  741. * :module:`CTest` module variable: none
  742. ``PurifyCommand``
  743. Specify a ``MemoryCheckCommand`` that is known to be command-line
  744. compatible with Purify.
  745. * `CTest Script`_ variable: none
  746. * :module:`CTest` module variable: ``PURIFYCOMMAND``
  747. ``ValgrindCommand``
  748. Specify a ``MemoryCheckCommand`` that is known to be command-line
  749. compatible with Valgrind.
  750. * `CTest Script`_ variable: none
  751. * :module:`CTest` module variable: ``VALGRIND_COMMAND``
  752. ``ValgrindCommandOptions``
  753. Specify command-line options to the ``ValgrindCommand`` tool.
  754. They will be placed prior to the test command line.
  755. * `CTest Script`_ variable: none
  756. * :module:`CTest` module variable: ``VALGRIND_COMMAND_OPTIONS``
  757. .. _`CTest Submit Step`:
  758. CTest Submit Step
  759. -----------------
  760. In a `CTest Script`_, the :command:`ctest_submit` command runs this step.
  761. Arguments to the command may specify some of the step settings.
  762. Configuration settings include:
  763. ``BuildName``
  764. Describe the dashboard client platform with a short string.
  765. (Operating system, compiler, etc.)
  766. * `CTest Script`_ variable: :variable:`CTEST_BUILD_NAME`
  767. * :module:`CTest` module variable: ``BUILDNAME``
  768. ``CDashVersion``
  769. Legacy option. Not used.
  770. * `CTest Script`_ variable: none, detected from server
  771. * :module:`CTest` module variable: ``CTEST_CDASH_VERSION``
  772. ``CTestSubmitRetryCount``
  773. Specify a number of attempts to retry submission on network failure.
  774. * `CTest Script`_ variable: none,
  775. use the :command:`ctest_submit` ``RETRY_COUNT`` option.
  776. * :module:`CTest` module variable: ``CTEST_SUBMIT_RETRY_COUNT``
  777. ``CTestSubmitRetryDelay``
  778. Specify a delay before retrying submission on network failure.
  779. * `CTest Script`_ variable: none,
  780. use the :command:`ctest_submit` ``RETRY_DELAY`` option.
  781. * :module:`CTest` module variable: ``CTEST_SUBMIT_RETRY_DELAY``
  782. ``CurlOptions``
  783. Specify a semicolon-separated list of options to control the
  784. Curl library that CTest uses internally to connect to the
  785. server. Possible options are ``CURLOPT_SSL_VERIFYPEER_OFF``
  786. and ``CURLOPT_SSL_VERIFYHOST_OFF``.
  787. * `CTest Script`_ variable: :variable:`CTEST_CURL_OPTIONS`
  788. * :module:`CTest` module variable: ``CTEST_CURL_OPTIONS``
  789. ``DropLocation``
  790. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  791. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  792. ``DropLocation``.
  793. * `CTest Script`_ variable: :variable:`CTEST_DROP_LOCATION`
  794. * :module:`CTest` module variable: ``DROP_LOCATION`` if set,
  795. else ``CTEST_DROP_LOCATION``
  796. ``DropMethod``
  797. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  798. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  799. ``DropLocation``.
  800. * `CTest Script`_ variable: :variable:`CTEST_DROP_METHOD`
  801. * :module:`CTest` module variable: ``DROP_METHOD`` if set,
  802. else ``CTEST_DROP_METHOD``
  803. ``DropSite``
  804. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  805. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  806. ``DropLocation``.
  807. * `CTest Script`_ variable: :variable:`CTEST_DROP_SITE`
  808. * :module:`CTest` module variable: ``DROP_SITE`` if set,
  809. else ``CTEST_DROP_SITE``
  810. ``DropSitePassword``
  811. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  812. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  813. ``DropLocation``.
  814. * `CTest Script`_ variable: :variable:`CTEST_DROP_SITE_PASSWORD`
  815. * :module:`CTest` module variable: ``DROP_SITE_PASSWORD`` if set,
  816. else ``CTEST_DROP_SITE_PASWORD``
  817. ``DropSiteUser``
  818. Legacy option. When ``SubmitURL`` is not set, it is constructed from
  819. ``DropMethod``, ``DropSiteUser``, ``DropSitePassword``, ``DropSite``, and
  820. ``DropLocation``.
  821. * `CTest Script`_ variable: :variable:`CTEST_DROP_SITE_USER`
  822. * :module:`CTest` module variable: ``DROP_SITE_USER`` if set,
  823. else ``CTEST_DROP_SITE_USER``
  824. ``IsCDash``
  825. Legacy option. Not used.
  826. * `CTest Script`_ variable: :variable:`CTEST_DROP_SITE_CDASH`
  827. * :module:`CTest` module variable: ``CTEST_DROP_SITE_CDASH``
  828. ``ScpCommand``
  829. Legacy option. Not used.
  830. * `CTest Script`_ variable: :variable:`CTEST_SCP_COMMAND`
  831. * :module:`CTest` module variable: ``SCPCOMMAND``
  832. ``Site``
  833. Describe the dashboard client host site with a short string.
  834. (Hostname, domain, etc.)
  835. * `CTest Script`_ variable: :variable:`CTEST_SITE`
  836. * :module:`CTest` module variable: ``SITE``,
  837. initialized by the :command:`site_name` command
  838. ``SubmitURL``
  839. The ``http`` or ``https`` URL of the dashboard server to send the submission
  840. to.
  841. * `CTest Script`_ variable: :variable:`CTEST_SUBMIT_URL`
  842. * :module:`CTest` module variable: ``SUBMIT_URL`` if set,
  843. else ``CTEST_SUBMIT_URL``
  844. ``TriggerSite``
  845. Legacy option. Not used.
  846. * `CTest Script`_ variable: :variable:`CTEST_TRIGGER_SITE`
  847. * :module:`CTest` module variable: ``TRIGGER_SITE`` if set,
  848. else ``CTEST_TRIGGER_SITE``
  849. .. _`Show as JSON Object Model`:
  850. Show as JSON Object Model
  851. =========================
  852. When the ``--show-only=json-v1`` command line option is given, the test
  853. information is output in JSON format. Version 1.0 of the JSON object
  854. model is defined as follows:
  855. ``kind``
  856. The string "ctestInfo".
  857. ``version``
  858. A JSON object specifying the version components. Its members are
  859. ``major``
  860. A non-negative integer specifying the major version component.
  861. ``minor``
  862. A non-negative integer specifying the minor version component.
  863. ``backtraceGraph``
  864. JSON object representing backtrace information with the
  865. following members:
  866. ``commands``
  867. List of command names.
  868. ``files``
  869. List of file names.
  870. ``nodes``
  871. List of node JSON objects with members:
  872. ``command``
  873. Index into the ``commands`` member of the ``backtraceGraph``.
  874. ``file``
  875. Index into the ``files`` member of the ``backtraceGraph``.
  876. ``line``
  877. Line number in the file where the backtrace was added.
  878. ``parent``
  879. Index into the ``nodes`` member of the ``backtraceGraph``
  880. representing the parent in the graph.
  881. ``tests``
  882. A JSON array listing information about each test. Each entry
  883. is a JSON object with members:
  884. ``name``
  885. Test name.
  886. ``config``
  887. Configuration that the test can run on.
  888. Empty string means any config.
  889. ``command``
  890. List where the first element is the test command and the
  891. remaining elements are the command arguments.
  892. ``backtrace``
  893. Index into the ``nodes`` member of the ``backtraceGraph``.
  894. ``properties``
  895. Test properties.
  896. Can contain keys for each of the supported test properties.
  897. See Also
  898. ========
  899. .. include:: LINKS.txt
  900. .. _`CDash`: http://cdash.org/