[CMake] CTest: Any way around the "one test == one program invocation" assumption?

Biddiscombe, John A. biddisco at cscs.ch
Tue Jun 8 09:28:24 EDT 2010



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...



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.





cmCTestTestHandler::GenerateDartOutput

Looks like it may be a place to start?





Alternatively, how about making the custom test return a simple XML which had

<test 1>

  name

  pass/fail

  < full test text output>

/>

<test 2>

  name

  pass/fail

  <full test text output>

/>

... /etc/etc

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.



JB


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100608/3d9376fa/attachment.htm>


More information about the CMake mailing list