From f11e9639a81e3a7709688b468400c6a1ba61c79b Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 22 Apr 2014 10:31:02 +0000 Subject: [PATCH] Testsuite: Invert order of files to diff so that the output shows the changes with respect to the expected output git-svn-id: https://svn.dealii.org/trunk@32802 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/macros/macro_add_test.cmake | 2 +- deal.II/tests/mesh_converter/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/cmake/macros/macro_add_test.cmake b/deal.II/cmake/macros/macro_add_test.cmake index 96c677b5c1..ecbf75ec95 100644 --- a/deal.II/cmake/macros/macro_add_test.cmake +++ b/deal.II/cmake/macros/macro_add_test.cmake @@ -206,8 +206,8 @@ MACRO(DEAL_II_ADD_TEST _category _test_name _comparison_file) COMMAND touch ${_test_directory}/diff COMMAND ${${_test_diff_variable}} # see comment in line 72 - ${_test_directory}/output ${_comparison_file} + ${_test_directory}/output > ${_test_directory}/diff || (mv ${_test_directory}/diff ${_test_directory}/failing_diff diff --git a/deal.II/tests/mesh_converter/CMakeLists.txt b/deal.II/tests/mesh_converter/CMakeLists.txt index 0bac004ae8..76db4e634d 100644 --- a/deal.II/tests/mesh_converter/CMakeLists.txt +++ b/deal.II/tests/mesh_converter/CMakeLists.txt @@ -67,7 +67,7 @@ FOREACH(_full_file ${_meshes}) COMMAND rm -f ${_test_directory}/failing_diff COMMAND touch ${_test_directory}/diff COMMAND - ${TEST_DIFF} ${_test_directory}/output ${_comparison_file} > ${_test_directory}/diff + ${TEST_DIFF} ${_comparison_file} ${_test_directory}/output > ${_test_directory}/diff || (mv ${_test_directory}/diff ${_test_directory}/failing_diff && echo "${_test_full}: RUN successful." -- 2.39.5