summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2017-07-18 16:18:11 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2017-07-18 16:18:11 (GMT)
commit614921b4c916038fcb7bc8c899a7d1d8b772b143 (patch)
treec6f1e6434d2132e47c11a2ad335ba5d9086d52a2 /Source/CTest
parent2e47dee60a6c0bbc1eb08e9727c4c1d83dc02a3d (diff)
downloadCMake-614921b4c916038fcb7bc8c899a7d1d8b772b143.zip
CMake-614921b4c916038fcb7bc8c899a7d1d8b772b143.tar.gz
CMake-614921b4c916038fcb7bc8c899a7d1d8b772b143.tar.bz2
Add the test property PROCESSORS to the CDash xml as a NamedMeasurement.
This commit forwards the test property PROCESSORS to CDash in the xml produced by ctest. This is to allow CDash to know how much processor time was allocated to a test.
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 8797204..ef0fac8 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -1441,6 +1441,12 @@ void cmCTestTestHandler::GenerateDartOutput(cmXMLWriter& xml)
}
xml.StartElement("NamedMeasurement");
+ xml.Attribute("type", "numeric/double");
+ xml.Attribute("name", "Processors");
+ xml.Element("Value", result->Properties->Processors);
+ xml.EndElement(); // NamedMeasurement
+
+ xml.StartElement("NamedMeasurement");
xml.Attribute("type", "text/string");
xml.Attribute("name", "Completion Status");
xml.Element("Value", result->CompletionStatus);