Hi
Using CTest, it is possible to set a dependency on another test using:
add_test(test1 test1.sh this is test 1)
add_test(test2 test2.sh this is test 2)
set_tests_properties(test1 PROPERTIES DEPENDS test2)
Is it possible to:
a) only run a test (test1 in my example) if the test it depends on
(test2) is successful rather than always running the test
b) set an expected return code for the test. e.g. test1 is only
successful if it returns 1 and returning 0 or 2 is a fail.
I know I could handle these in my test scripts but was just wondering if
there was a more elegant solution using CTest.
Cheers
---
Neil
_______________________________________________
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