ctest -R "test1|test2" ?<div><br></div><div>Using -R says "run only the tests that match this regex" -- it does not say "run the matching tests after running all the tests they depend on first"...<br>
<br></div><div><br><div class="gmail_quote">On Fri, Mar 12, 2010 at 12:37 PM, Alexandre Gramfort <span dir="ltr"><<a href="mailto:alexandre.gramfort@inria.fr">alexandre.gramfort@inria.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
here is a simple CMakeList to illustrate my problem:<br>
<br>
-----------<br>
<br>
PROJECT(Test)<br>
<br>
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)<br>
<br>
ENABLE_TESTING()<br>
<br>
ADD_TEST(test1 ${CMAKE_COMMAND} -E touch test1.txt)<br>
ADD_TEST(test2 ${CMAKE_COMMAND} -E touch test2.txt)<br>
SET_TESTS_PROPERTIES(test2 PROPERTIES DEPENDS test1)<br>
<br>
-----------<br>
<br>
now if I run : ctest -R test2<br>
<br>
only test2 is run although test2 depends on test1 and test1 should be run first.<br>
<br>
Is there a solution?<br>
<br>
I'm running cmake 2.8.0 on Mac<br>
<br>
Thanks<br>
Alexandre<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>