From: wolf Date: Thu, 16 Oct 2003 14:18:35 +0000 (+0000) Subject: Remove output file if test failed. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d05347f354c1f14b7e1eea9c35864df3ade6afe;p=dealii-svn.git Remove output file if test failed. git-svn-id: https://svn.dealii.org/trunk@8094 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/Makefile.rules b/tests/Makefile.rules index add7c04845..413175082f 100644 --- a/tests/Makefile.rules +++ b/tests/Makefile.rules @@ -50,11 +50,19 @@ endif # Since the test suite is usually run automatically, we # impose a maximum run time of 30 CPU minutes for each # program. +# +# In the line after we execute the program, we make sure that +# the program terminated without error code; otherwise delete +# the output file and stop the make command. This is done so +# that when you run make for that output file again later +# then make would not say that the output file is up to +# date and does not need to be regenerated ############################################################ %.output : %.exe @echo =====Running======= $< - @ulimit -t 2400 ; ./$< + @ulimit -t 2400 ; ./$< ; \ + if test ! $$? == 0 ; then rm $@ ; false ; fi @perl -pi $(normalize) $@