]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix
authorMatthias Maier <tamiko@kyomu.43-1.org>
Sun, 20 Oct 2013 14:13:58 +0000 (14:13 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Sun, 20 Oct 2013 14:13:58 +0000 (14:13 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31334 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/scripts/run_test.cmake

index 68f3a964f00b311ccf0edbf5d9cb4a0e5c56e5ce..8ffb2eabf8d5c4cb49642ae50102ba8da7f31efc 100644 (file)
@@ -44,26 +44,24 @@ ELSE()
   # Determine whether the CONFIGURE, BUILD or RUN stages were run successfully:
   #
 
-  # CONFIGURE is special because it only exists in build tests:
-  STRING(REGEX MATCH "${TEST}: CONFIGURE successful\\." _configure_regex ${_output})
-  STRING(REGEX MATCH "${TEST}: CONFIGURE failed\\." _configure_regex_fail ${_output})
-  STRING(REGEX MATCH "${TEST}: BUILD successful\\." _build_regex ${_output})
-  STRING(REGEX MATCH "${TEST}: RUN failed\\." _run_regex_fail ${_output})
-  STRING(REGEX MATCH "${TEST}: RUN successful\\." _run_regex ${_output})
-  IF(NOT "${_configure_regex_fail}" STREQUAL "")
+  STRING(REGEX MATCH "${TEST}: CONFIGURE failed\\." _configure_regex ${_output})
+  STRING(REGEX MATCH "${TEST}: BUILD failed\\." _build_regex ${_output})
+  STRING(REGEX MATCH "${TEST}: RUN failed\\." _run_regex ${_output})
+  STRING(REGEX MATCH "${TEST}: DIFF failed\\." _diff_regex ${_output})
+
+  IF(NOT "${_configure_regex}" STREQUAL "")
     SET(_stage CONFIGURE)
-  ELSEIF("${_build_regex}" STREQUAL "" AND "${_run_regex_fail}" STREQUAL "")
-    SET(_stage BUILD)
-  ELSEIF("${_run_regex}" STREQUAL "")
+  ELSEIF(NOT "${_run_regex}" STREQUAL "")
     SET(_stage RUN)
-  ELSE()
+  ELSEIF(NOT "${_diff_regex}" STREQUAL "")
     SET(_stage DIFF)
+  ELSE() # unconditionally, because "BUILD failed." doesn't have to be printed...
+    SET(_stage BUILD)
   ENDIF()
 
   MESSAGE("Test ${TEST}: ${_stage}")
   MESSAGE("===============================   OUTPUT BEGIN  ===============================")
-  IF( "${_build_regex}" STREQUAL "" AND
-      "${_configure_regex}" STREQUAL "" )
+  IF( "${_stage}" STREQUAL "BUILD" AND "${_build_regex}" STREQUAL "" )
     # Some special output in case the BUILD stage failed in a regression test:
     MESSAGE("${TEST}: BUILD failed. Output:")
   ENDIF()

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.