[CMake] ctest and label time summary

Craig Scott craig.scott at crascit.com
Wed Nov 1 16:31:03 EDT 2017


On Thu, Nov 2, 2017 at 5:09 AM, Anthony Zukaitis <azukaitis at gmail.com>
wrote:

> Is there a way to turn off the label timing information after ctest is run
> with
>
> ctest -L mytest
>
> I have appoximately 100 tests that depend on a SETUP test.  The setup test
> has 100s of labels and this screws up the print out of the label timing
> summary at the end of the ctest run. This is due to the want of having
> dependencies of tests being run automatically.  All of my tests depend on a
> SETUP test.  Using the label method:
>
> https://stackoverflow.com/questions/30808963/cmake-and-
> ctest-automatically-run-tests-dependencies
>
> my SETUP test now has 100s of labels
>
> Thanks, Tony
>


I added an answer to that stackoverflow link. The test fixtures feature
added in CMake 3.7 provides the behaviour you want. It doesn't rely on
using test labels, so you'd be able to avoid the label clutter in your test
report.



-- 
Craig Scott
Melbourne, Australia
https://crascit.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171102/98ce90d5/attachment.html>


More information about the CMake mailing list