MantisBT - CMake
View Issue Details
0015082CMakeCTestpublic2014-08-13 10:312016-06-10 14:31
ycollet 
Kitware Robot 
normalminoralways
closedmoved 
CMake 2.8.12.2 
 
0015082: DartMeasurement tags must cover the whole line of a log to be taken into account
When performing tests, I printed the following lines into my log:

This is a test <DartMeasurement name="Measure" type="numeric/double">10.0</DartMeasurement> This is a test

Then, when the test results are submitted to cdash, no measurement appears in the dashboard.
For a custom measurement to be taken into account, you must put the tags at the beginning and at the end of the line:

<DartMeasurement name="Measure" type="numeric/double">10.0</DartMeasurement>

Then, when submitted, I can see my custom measurement in the dashboard.
Here is a patch against cmake-2.8.12.2 to allow a measurement to "live" in the middle of a line.
No tags attached.
diff dart_measurement.diff (954) 2014-08-13 10:31
https://public.kitware.com/Bug/file/5227/dart_measurement.diff
Issue History
2014-08-13 10:31ycolletNew Issue
2014-08-13 10:31ycolletFile Added: dart_measurement.diff
2014-08-13 10:48Brad KingNote Added: 0036609
2016-06-10 14:29Kitware RobotNote Added: 0042605
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0036609)
Brad King   
2014-08-13 10:48   
Thanks. However, allowing content within a line also opens the possibility of multiple measurements on a single line. The ".*" parts of the expression may consume too much and skip some measurements. It may be safer to re-write the extraction code to do explicit parsing rather than using a regex.

Also please read http://cmake.org/gitweb?p=cmake.git;a=blob_plain;f=CONTRIBUTING.rst;hb=master [^]
(0042605)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.