mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user