From: heister Date: Fri, 11 Jan 2013 02:45:34 +0000 (+0000) Subject: optionally allow running the testsuite with numdiff X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf98160c4ae23dd1ede2cc99b31c1591c08014c;p=dealii-svn.git optionally allow running the testsuite with numdiff git-svn-id: https://svn.dealii.org/trunk@28013 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/Makefile.rules b/tests/Makefile.rules index 282d3dfc3f..ec4ba33478 100644 --- a/tests/Makefile.rules +++ b/tests/Makefile.rules @@ -23,6 +23,11 @@ verbose = off # The contents of the mail will be provided on STDIN MAIL=mail +#this lets you overwrite the diff tool for comparisons. +#recommended environment setting: +#export DEALII_DIFF="numdiff -a 1e-6 -q" +DEALII_DIFF?=diff + PLATFORM = $(TARGET)+$(GXX-VERSION:intel_%=%) PLATFORM-HIERARCHY = $(shell $(PERL) ../hierarchy.pl $(PLATFORM)) @@ -123,9 +128,9 @@ endif if test -f $$testname/cmp/$$i ; then \ cmpfile_found=yes ; \ if test "x$(verbose)" = "xon" ; then \ - cmd="diff $(DIFFOPT) $< $$testname/cmp/$$i" ; \ + cmd="$(DEALII_DIFF) $(DIFFOPT) $< $$testname/cmp/$$i" ; \ else \ - cmd="diff $< $$testname/cmp/$$i > /dev/null" ; \ + cmd="$(DEALII_DIFF) $< $$testname/cmp/$$i > /dev/null" ; \ fi ; \ if eval $$cmd ; then \ echo '=====OK============' $@ ; \