summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-09 12:04:18 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-06-09 12:04:23 (GMT)
commit5c18c8a178c2504975760d6c52d71a2a32774159 (patch)
tree619ebc01eaa1adeec58a0f7c1eb816af3b6c1022 /Help/command
parent1d225c5c0ca86592e835b626c55aa6bf4faa2f3d (diff)
parentcbcb92d1cb4230426761fb7d08f9135546c98881 (diff)
downloadCMake-5c18c8a178c2504975760d6c52d71a2a32774159.zip
CMake-5c18c8a178c2504975760d6c52d71a2a32774159.tar.gz
CMake-5c18c8a178c2504975760d6c52d71a2a32774159.tar.bz2
Merge topic 'ctest_measurement_file'
cbcb92d1cb ctest: add support for attaching files to tests at run time Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6192
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/ctest_test.rst13
1 files changed, 11 insertions, 2 deletions
diff --git a/Help/command/ctest_test.rst b/Help/command/ctest_test.rst
index c61d01e..65555a6 100644
--- a/Help/command/ctest_test.rst
+++ b/Help/command/ctest_test.rst
@@ -248,5 +248,14 @@ separate from the interactive comparison UI.
Attached Files
""""""""""""""
-To associate other types of files with a test, use the
-:prop_test:`ATTACHED_FILES` or :prop_test:`ATTACHED_FILES_ON_FAIL` test properties.
+The following example demonstrates how to upload non-image files to CDash.
+
+.. code-block:: c++
+
+ std::cout <<
+ "<DartMeasurementFile type=\"file\" name=\"MyTestInputData\">" <<
+ "/dir/to/data.csv</DartMeasurementFile>" << 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
+properties instead.