summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2021-06-08 18:48:57 (GMT)
committerZack Galbreath <zack.galbreath@kitware.com>2021-06-09 12:31:32 (GMT)
commit02f1271bdf810107ad5d3c0cffb74b472d706054 (patch)
tree64c61a8d698537524000ff115ffdfffd823c09d7 /Help/command
parent5e26887c35be116a83ba049098f5780309ced073 (diff)
downloadCMake-02f1271bdf810107ad5d3c0cffb74b472d706054.zip
CMake-02f1271bdf810107ad5d3c0cffb74b472d706054.tar.gz
CMake-02f1271bdf810107ad5d3c0cffb74b472d706054.tar.bz2
ctest: allow test output to override the 'details' field
Parse test output for <CTestDetails>...</CTestDetails>. If found, use this value to override the default 'Details' string reported to CDash.
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/ctest_test.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Help/command/ctest_test.rst b/Help/command/ctest_test.rst
index 65555a6..2153c90 100644
--- a/Help/command/ctest_test.rst
+++ b/Help/command/ctest_test.rst
@@ -259,3 +259,14 @@ The following example demonstrates how to upload non-image files to CDash.
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.
+
+Custom Details
+""""""""""""""
+
+The following example demonstrates how to specify a custom value for the
+``Test Details`` field displayed on CDash.
+
+.. code-block:: c++
+
+ std::cout <<
+ "<CTestDetails>My Custom Details Value</CTestDetails>" << std::endl;