]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 22 Sep 2013 15:30:07 +0000 (15:30 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 22 Sep 2013 15:30:07 +0000 (15:30 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30889 0785d39b-7218-0410-832d-ea1e28bc413d

tests/run_testsuite.cmake

index aa5628ae613f875d1e24828da174744eef5989c7..89f146bc6e4bd4131f08cc785641a3054027970e 100644 (file)
@@ -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()

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


Typeset in Trocchi and Trocchi Bold Sans Serif.