<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText style='margin-left:36.0pt'>All in all it'd be much nicer
if there was some kind of hook in ctest which could be used to inform it that a
number of tests had been run, and let it populate and submit the XML report
based on that information. But, if there's any way to do that, it's highly
undocumented...<o:p></o:p></p>
<p class=MsoPlainText style='margin-left:36.0pt'><o:p> </o:p></p>
<p class=MsoPlainText style='margin-left:36.0pt'>It doesn't appear like there
is a class for storing the test results before serializing the XML document to
a file. Sounds like that's what would have to be written.<o:p></o:p></p>
<p class=MsoPlainText style='margin-left:36.0pt'><o:p> </o:p></p>
<p class=MsoPlainText style='margin-left:36.0pt'><o:p> </o:p></p>
<p class=MsoPlainText style='margin-left:36.0pt'>cmCTestTestHandler::GenerateDartOutput<o:p></o:p></p>
<p class=MsoPlainText style='margin-left:36.0pt'>Looks like it may be a place
to start?<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Alternatively, how about making the custom test return a
simple XML which had<o:p></o:p></p>
<p class=MsoPlainText><test 1><o:p></o:p></p>
<p class=MsoPlainText> name<o:p></o:p></p>
<p class=MsoPlainText> pass/fail<o:p></o:p></p>
<p class=MsoPlainText> < full test text output><o:p></o:p></p>
<p class=MsoPlainText>/><o:p></o:p></p>
<p class=MsoPlainText><test 2><o:p></o:p></p>
<p class=MsoPlainText> name<o:p></o:p></p>
<p class=MsoPlainText> pass/fail<o:p></o:p></p>
<p class=MsoPlainText> <full test text output><o:p></o:p></p>
<p class=MsoPlainText>/><o:p></o:p></p>
<p class=MsoPlainText>... /etc/etc<o:p></o:p></p>
<p class=MsoPlainText>and then add a function into cmCtestHandler to parse the
result – in the fixed form you define – back into a standard Dart compatible form
which it then submits as usual. A slight modification of ADD_TEST to trigger
the new form of output would probably be enough.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>JB<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
</div>
</body>
</html>