<div dir="ltr">Mateju,<div><br></div><div>Perhaps a workaround is to have a different test with the same name? Something like</div><div><br></div><div>if(flash_enabled)</div><div> add_test( NAME "flash test" COMMAND run_flash_test)</div>
<div>else()</div><div> add_test( NAME "flash test" COMMAND null_test)</div><div>endif()</div><div><br></div><div class="gmail_extra">or</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>if(flash_enabled)</div>
<div> add_test( NAME "flash test" COMMAND run_flash_test)</div><div>else()</div><div> add_test( NAME "flash test (not run)" COMMAND null_test)</div><div>endif()</div><div><br></div></div><div class="gmail_extra">
<br></div><div class="gmail_extra">Amitha.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 15, 2013 at 3:45 AM, Matějů Miroslav, Ing. <span dir="ltr"><<a href="mailto:Mateju.Miroslav@azd.cz" target="_blank">Mateju.Miroslav@azd.cz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello there,<br>
<br>
I run some tests in CTest and send the results into CDash. There are some tests<br>
which shouldn't be run every time (writing to flash memory, for example).<br>
When these tests are disabled, it would be nice to see them as "Not Run" in CDash.<br>
I tried to attach labels to them in CMakeLists.txt and then run "ctest -LE flash"<br>
but CDash simply looks like those tests do not exist - just like before, when they<br>
were in an "if" statement in CMakeLists.txt. Is there any way to manually make tests<br>
"Not Run" in CDash?<br>
<br>
Thanks in advance!<br>
<br>
M. Mateju<br>
_______________________________________________<br>
Cdash mailing list<br>
<a href="mailto:Cdash@public.kitware.com">Cdash@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cdash" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cdash</a><br>
</blockquote></div><br></div></div>