]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Unify output and behaviour
authorMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 7 Sep 2013 03:36:48 +0000 (03:36 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 7 Sep 2013 03:36:48 +0000 (03:36 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30642 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_deal_ii_add_test.cmake

index 5bd819908a79cbd98957363f92c9c0d4133f7ee7..bc62d9f1f604a42f3e9dd52526540f5cd95bb16e 100644 (file)
@@ -108,9 +108,10 @@ MACRO(DEAL_II_ADD_TEST _category _test_name _comparison_file _n_cpu)
           ${CMAKE_COMMAND} -E echo "${_full_test}: BUILD successful"
         COMMAND
           ${_run_command}
-          || (echo "${_full_test}: RUN failed. Output:"
-              && cat output
-              && rm output
+          || (mv ${CMAKE_CURRENT_BINARY_DIR}/${_test}/output
+                 ${CMAKE_CURRENT_BINARY_DIR}/${_test}/failing_output
+              && echo "${_full_test}: RUN failed. Output:"
+              && cat ${CMAKE_CURRENT_BINARY_DIR}/${_test}/failing_output
               && exit 1)
         COMMAND
           ${PERL_EXECUTABLE} -pi

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.