From 3a799a21ab597aad7586153d4e0a600228e9c612 Mon Sep 17 00:00:00 2001 From: maier Date: Sat, 21 Sep 2013 07:03:17 +0000 Subject: [PATCH] Bugfix git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30880 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/run_testsuite.cmake | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tests/run_testsuite.cmake b/tests/run_testsuite.cmake index a83d1f6bb7..aa5628ae61 100644 --- a/tests/run_testsuite.cmake +++ b/tests/run_testsuite.cmake @@ -357,12 +357,17 @@ CTEST_START(Experimental TRACK ${TRACK}) 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() -- 2.39.5