summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2021-07-01 18:52:00 (GMT)
committerZack Galbreath <zack.galbreath@kitware.com>2021-07-01 19:16:29 (GMT)
commit0962cbf21de45937c0109b953d569f6be1b7bf8f (patch)
tree0b7582b4bbd900d713484e22c7e963540de68759
parent5489ce74b349ed31d6abb6ee5a0aaa17b10b474d (diff)
downloadCMake-0962cbf21de45937c0109b953d569f6be1b7bf8f.zip
CMake-0962cbf21de45937c0109b953d569f6be1b7bf8f.tar.gz
CMake-0962cbf21de45937c0109b953d569f6be1b7bf8f.tar.bz2
help: update ctest attached file example
Clarify that multiple files can be attached to a given test at runtime
-rw-r--r--Help/command/ctest_test.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Help/command/ctest_test.rst b/Help/command/ctest_test.rst
index caac605..ede0c97 100644
--- a/Help/command/ctest_test.rst
+++ b/Help/command/ctest_test.rst
@@ -257,8 +257,10 @@ The following example demonstrates how to upload non-image files to CDash.
.. code-block:: c++
std::cout <<
- "<CTestMeasurementFile type=\"file\" name=\"MyTestInputData\">" <<
- "/dir/to/data.csv</CTestMeasurementFile>" << std::endl;
+ "<CTestMeasurementFile type=\"file\" name=\"TestInputData1\">" <<
+ "/dir/to/data1.csv</CTestMeasurementFile>\n" <<
+ "<CTestMeasurementFile type=\"file\" name=\"TestInputData2\">" <<
+ "/dir/to/data2.csv</CTestMeasurementFile>" << std::endl;
If the name of the file to upload is known at configure time, you can use the
:prop_test:`ATTACHED_FILES` or :prop_test:`ATTACHED_FILES_ON_FAIL` test