Quantcast

cdash<->ctest, label property

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

cdash<->ctest, label property

Vladimir Chebotarev
Hello!

I've just realized, that following thing doesn't work:

CDash 1.4
New features
Support for labels on builds, tests, coverage files
    * use CVS CMake/CTest and set target, test or source file property LABELS

...because there is no CTest code, which provide that information to CDash.

I looked into CTest/cmCTestBuildHandler.cxx and didn't find any
code, that prints "<Label>...</Label>" into xml. Also, there is no "Label"
anywhere in the sources of CTest. And in documentation too.
But CDash wants to use "Label" element in build xml file.
By the way, <Label></Label> shouldn't be directly inside <Build></Build>,
you should insert "wrapper" element because xml_handlers/build_handler.php:

151     if($parent == 'BUILD')
152       {
...
174       }

// many "else if" were skipped

247     else if($element == 'LABEL')
248       {
249       $this->Label->SetText($data);
250       }

I think, this is a bug too.

Please, correct me if I make a mistake.

--
WBR,
  Vladimir.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: cdash<->ctest, label property

David Cole
There are plenty of hits on "Label" if you grep in CMake/Source/CTest in CVS HEAD of CMake...

There will be an article on adding labels and subproject support to your projects coming out in the next issue of the Kitware Source newsletter.

To see labels in build results, you need to set the variable CTEST_USE_LAUNCHERS to ON -- with that variable on, ctest produces a different style of error and warning output such that it does not have to scrape any logs for the error information. It simply passes the full stderr and stdout of the failed tool invocation on to CDash. And with that style of error output, it's easy to assign labels based on targets (executables and libraries) to the produced errors and warnings.

With the normal "log scraping technique" used in the past, it would be nearly impossible to tell which errors came from which targets....


HTH,
David



On Mon, Jul 13, 2009 at 6:47 AM, Vladimir Chebotarev <[hidden email]> wrote:
Hello!

I've just realized, that following thing doesn't work:

CDash 1.4
New features
Support for labels on builds, tests, coverage files
   * use CVS CMake/CTest and set target, test or source file property LABELS

...because there is no CTest code, which provide that information to CDash.

I looked into CTest/cmCTestBuildHandler.cxx and didn't find any
code, that prints "<Label>...</Label>" into xml. Also, there is no "Label"
anywhere in the sources of CTest. And in documentation too.
But CDash wants to use "Label" element in build xml file.
By the way, <Label></Label> shouldn't be directly inside <Build></Build>,
you should insert "wrapper" element because xml_handlers/build_handler.php:

151     if($parent == 'BUILD')
152       {
...
174       }

// many "else if" were skipped

247     else if($element == 'LABEL')
248       {
249       $this->Label->SetText($data);
250       }

I think, this is a bug too.

Please, correct me if I make a mistake.

--
WBR,
 Vladimir.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Loading...