From: maier Date: Sun, 22 Sep 2013 15:30:07 +0000 (+0000) Subject: Bugfix X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e91a67a04dd6533dfe485491760086814f6d5ee9;p=dealii-svn.git Bugfix git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30889 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/run_testsuite.cmake b/tests/run_testsuite.cmake index aa5628ae61..89f146bc6e 100644 --- a/tests/run_testsuite.cmake +++ b/tests/run_testsuite.cmake @@ -355,19 +355,23 @@ ENDIF() CTEST_START(Experimental TRACK ${TRACK}) -CTEST_CONFIGURE(OPTIONS "${_options}") +CTEST_CONFIGURE(OPTIONS "${_options}" RETURN_VALUE _res) -CTEST_BUILD(TARGET RETURN_VALUE _res) # run all target +IF("${_res}" STEQUAL "0") + # Only run the build stage if configure was successful: -IF("${_res}" STREQUAL "0") - # Only run tests if the build succeeded: + CTEST_BUILD(TARGET RETURN_VALUE _res) - EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} - --build ${CTEST_BINARY_DIRECTORY} --target setup_test - OUTPUT_QUIET - ) + IF("${_res}" STREQUAL "0") + # Only run tests if the build was successful: + + EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} + --build ${CTEST_BINARY_DIRECTORY} --target setup_test + OUTPUT_QUIET + ) - CTEST_TEST() + CTEST_TEST() + ENDIF() ENDIF() CTEST_SUBMIT()