[Cdash] Marking disabled CTest tests "Not Run" in CDash
Amitha Perera
amitha.perera at kitware.com
Tue Oct 15 13:22:05 UTC 2013
Mateju,
Perhaps a workaround is to have a different test with the same name?
Something like
if(flash_enabled)
add_test( NAME "flash test" COMMAND run_flash_test)
else()
add_test( NAME "flash test" COMMAND null_test)
endif()
or
if(flash_enabled)
add_test( NAME "flash test" COMMAND run_flash_test)
else()
add_test( NAME "flash test (not run)" COMMAND null_test)
endif()
Amitha.
On Tue, Oct 15, 2013 at 3:45 AM, Matějů Miroslav, Ing. <
Mateju.Miroslav at azd.cz> wrote:
> Hello there,
>
> I run some tests in CTest and send the results into CDash. There are some
> tests
> which shouldn't be run every time (writing to flash memory, for example).
> When these tests are disabled, it would be nice to see them as "Not Run"
> in CDash.
> I tried to attach labels to them in CMakeLists.txt and then run "ctest -LE
> flash"
> but CDash simply looks like those tests do not exist - just like before,
> when they
> were in an "if" statement in CMakeLists.txt. Is there any way to manually
> make tests
> "Not Run" in CDash?
>
> Thanks in advance!
>
> M. Mateju
> _______________________________________________
> Cdash mailing list
> Cdash at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/cdash
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cdash/attachments/20131015/2a5d6410/attachment-0003.htm>
More information about the CDash
mailing list