From bcf98160c4ae23dd1ede2cc99b31c1591c08014c Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 11 Jan 2013 02:45:34 +0000 Subject: [PATCH] optionally allow running the testsuite with numdiff git-svn-id: https://svn.dealii.org/trunk@28013 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/Makefile.rules | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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============' $@ ; \ -- 2.39.5