]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Cleanup
authorMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 17 Oct 2013 18:15:29 +0000 (18:15 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 17 Oct 2013 18:15:29 +0000 (18:15 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31289 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/tests/all-headers/CMakeLists.txt
deal.II/tests/build_tests/CMakeLists.txt

index 607240037a8646350652dcaba00d362d2756591a..0018f68d465c54e91c2d36ce6b7e55b9c92be609 100644 (file)
@@ -24,7 +24,7 @@ INCLUDE(${DEAL_II_TARGET_CONFIG})
 #
 # Construct a list of all header files and build up a test that just tries
 # to compile a simple worker (test_header.cc) that only includes the given
-# header file. We omit linking to safe some time.
+# header file. We omit linking to save some time.
 #
 
 SET(_category all-headers)
index 08aed0907847f7a2f28c3f5511a9c1ad531ef7f3..e0beebfc1ede8031663fab054e6413fc00d32ba0 100644 (file)
@@ -86,6 +86,7 @@ FOREACH(_step_full ${_steps})
 
       # And a rule on how to configure the example step:
       ADD_CUSTOM_COMMAND(OUTPUT ${_step_dir}/configure_output
+        COMMAND rm -f ${_step_dir}/failing_configure_output
         COMMAND ${CMAKE_COMMAND}
           -DDEAL_II_DIR=${DEAL_II_BINARY_DIR} -DCMAKE_BUILD_TYPE=${_build} .
           > ${_step_dir}/configure_output 2>&1
@@ -101,8 +102,9 @@ FOREACH(_step_full ${_steps})
       # And a rule on how to build the example step:
       ADD_CUSTOM_COMMAND(OUTPUT ${_step_dir}/build_output
         COMMAND [ ! -f ${_step_dir}/configure_output ]
-          || ${CMAKE_COMMAND} --build ${_step_dir} --target all
-             > ${_step_dir}/build_output 2>&1
+          || (rm -f ${_step_dir}/failing_build_output
+              &&${CMAKE_COMMAND} --build ${_step_dir} --target all
+              > ${_step_dir}/build_output 2>&1)
           || (mv ${_step_dir}/build_output
                  ${_step_dir}/failing_build_output
               && echo "${_test}: CONFIGURE successful."
@@ -120,8 +122,9 @@ FOREACH(_step_full ${_steps})
       # And a rule on how to run the example step:
       ADD_CUSTOM_COMMAND(OUTPUT ${_step_dir}/run_output
         COMMAND [ ! -f ${_step_dir}/build_output ]
-          || ${CMAKE_COMMAND} --build ${_step_dir} --target run
-             > ${_step_dir}/run_output 2>&1
+          || (rm -f ${_step_dir}/failing_run_output
+             && ${CMAKE_COMMAND} --build ${_step_dir} --target run
+             > ${_step_dir}/run_output 2>&1)
           || (mv ${_step_dir}/run_output
                  ${_step_dir}/failing_run_output
               && echo "${_test}: CONFIGURE successful."

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.