git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30880
0785d39b-7218-0410-832d-
ea1e28bc413d
CTEST_CONFIGURE(OPTIONS "${_options}")
-CTEST_BUILD(TARGET) # run all target
+CTEST_BUILD(TARGET RETURN_VALUE _res) # run all target
-# TODO: Run this during the BUILD stage...
-EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND}
- --build ${CTEST_BINARY_DIRECTORY} --target setup_test
- )
+IF("${_res}" STREQUAL "0")
+ # Only run tests if the build succeeded:
+
+ EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND}
+ --build ${CTEST_BINARY_DIRECTORY} --target setup_test
+ OUTPUT_QUIET
+ )
+
+ CTEST_TEST()
+ENDIF()
-CTEST_TEST()
CTEST_SUBMIT()
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams