]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
optionally allow running the testsuite with numdiff
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Jan 2013 02:45:34 +0000 (02:45 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Jan 2013 02:45:34 +0000 (02:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@28013 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules

index 282d3dfc3fad0ebc334dce83d4ffdec09c73e3a4..ec4ba334786af26493f051bab5f4cb04e1b5c339 100644 (file)
@@ -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============' $@ ; \

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.