From: bangerth Date: Fri, 10 Dec 2010 13:16:44 +0000 (+0000) Subject: Also set the time limit as an environment variable that programs can query. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c87070e923a45375315ac6df2190ecc60bcf35dd;p=dealii-svn.git Also set the time limit as an environment variable that programs can query. git-svn-id: https://svn.dealii.org/trunk@22957 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/Makefile.rules b/tests/Makefile.rules index a21b6f2bbd..e597c11d28 100644 --- a/tests/Makefile.rules +++ b/tests/Makefile.rules @@ -83,7 +83,9 @@ endif %/output : %/exe @echo =====Running======= $< @echo Running > $(dir $@)/status - @$(ULIMIT) -t $(if $(ULIMIT_LIMIT),$(ULIMIT_LIMIT),300) ; ./$< ; \ + @$(ULIMIT) -t $(if $(ULIMIT_LIMIT),$(ULIMIT_LIMIT),300) ; \ + export WALLTIME=$(if $(ULIMIT_LIMIT),$(ULIMIT_LIMIT),300) ; \ + ./$< ; \ if test ! $$? = 0 ; then rm $@ ; false ; fi @perl -pi $(normalize) $@