From e91a67a04dd6533dfe485491760086814f6d5ee9 Mon Sep 17 00:00:00 2001 From: maier Date: Sun, 22 Sep 2013 15:30:07 +0000 Subject: [PATCH] Bugfix git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30889 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/run_testsuite.cmake | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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() -- 2.39.5