[cig-commits] commit 2037 by bangerth to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Fri Nov 22 13:04:54 PST 2013


Revision 2037

Remove stale files before running aspect on a test.

U   trunk/aspect/tests/CMakeLists.txt


http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=2037&peg=2037

Diff:
Modified: trunk/aspect/tests/CMakeLists.txt
===================================================================
--- trunk/aspect/tests/CMakeLists.txt	2013-11-22 20:10:17 UTC (rev 2036)
+++ trunk/aspect/tests/CMakeLists.txt	2013-11-22 21:04:20 UTC (rev 2037)
@@ -34,8 +34,14 @@
     SET(_testdepends)
   ENDIF()
 
+  # Create the output directory, then generate a rule that runs aspect and normalizes
+  # the output files. Before running aspect, delete prior content of the directory
+  # to make sure no dead files are left there (this is one way to trip up the
+  # 'terminate_user_request' test which terminates the program when a certain
+  # file appears)
   FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/output-${_test})
   ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/output-${_test}/screen-output
+    COMMAND rm ${CMAKE_CURRENT_BINARY_DIR}/output-${_test}/*
     COMMAND aspect ${CMAKE_CURRENT_SOURCE_DIR}/${_test}.prm
             > ${CMAKE_CURRENT_BINARY_DIR}/output-${_test}/screen-output 2>&1
     COMMAND ${PERL_EXECUTABLE} -pi


More information about the CIG-COMMITS mailing list