I have a test code (think compiler regression test) that want to compile as
a test, and if it compiles and links successfully, to go on to run as a
subsequent test.  I found a thread from Sept that pointed to a method used
in boost-cmake for the first compile test.  It moves execution of the
compile/link from the make step to the ctest step, and works great.  I'm
now using the FIXTURES_REQUIRED and FIXTURES_SETUP test properties to make
the run test depend on the successful completion of the compile test, but
this doesn't seem to be working properly.  It does order the tests so that
the compile test is done first, However if it fails, ctest spews a long
message for the run test detailing all the places it looked for the
executable (not created because the compile/link test failed) but could not
find.  It's as if ctest tries to set up the test before checking to see
whether it should be run at all.  Am I doing something incorrect here?
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to