[cig-commits] commit 2346 by bangerth to /var/svn/dealii/aspect
dealii.demon at gmail.com
dealii.demon at gmail.com
Wed Mar 26 04:39:03 PDT 2014
Revision 2346
Do not trip up our own logic by accidentally deleting files again
right away that we have just created.
U trunk/aspect/tests/CMakeLists.txt
http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=2346&peg=2346
Diff:
Modified: trunk/aspect/tests/CMakeLists.txt
===================================================================
--- trunk/aspect/tests/CMakeLists.txt 2014-03-26 01:14:38 UTC (rev 2345)
+++ trunk/aspect/tests/CMakeLists.txt 2014-03-26 11:39:01 UTC (rev 2346)
@@ -88,14 +88,21 @@
# 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 of Aspect which terminates the program when
- # a certain file appears)
+ # a certain file appears). we have to take care of not deleting those
+ # files that have been placed there on purpose, however, which are all
+ # of the .cmp.notime files.
#
# the actual run command is a bit complicated because we have to figure out
# whether we want the test to run in parallel using MPI or not
GET_MPI_COUNT(${CMAKE_CURRENT_SOURCE_DIR}/${_test}.prm)
IF("${_mpi_count}" STREQUAL "1")
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/output-${_test}/screen-output
- COMMAND rm -f ${CMAKE_CURRENT_BINARY_DIR}/output-${_test}/*
+ COMMAND
+ for i in ${CMAKE_CURRENT_BINARY_DIR}/output-${_test}/* \; do
+ if echo \$i | grep -q -v .cmp.notime \; then
+ rm -f \$i \;
+ fi \;
+ done
COMMAND aspect ${CMAKE_CURRENT_BINARY_DIR}/${_test}.x.prm
> ${CMAKE_CURRENT_BINARY_DIR}/output-${_test}/screen-output 2>&1
COMMAND ${PERL_EXECUTABLE} -pi
More information about the CIG-COMMITS
mailing list