[cig-commits] [commit] master: use numdiff (7b0e5a7)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Tue Dec 9 09:24:02 PST 2014


Repository : https://github.com/geodynamics/burnman

On branch  : master
Link       : https://github.com/geodynamics/burnman/compare/2e2f4397422a6bb0384190ea8064f8b8b0be0e97...d4a00047c3fa7097111958d0b97cb77140ee94e3

>---------------------------------------------------------------

commit 7b0e5a797590c4313f7079c0637d1f3496d092c3
Author: Timo Heister <timo.heister at gmail.com>
Date:   Mon Dec 8 16:10:45 2014 -0500

    use numdiff


>---------------------------------------------------------------

7b0e5a797590c4313f7079c0637d1f3496d092c3
 test.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test.sh b/test.sh
index cdee6d5..2409ef6 100755
--- a/test.sh
+++ b/test.sh
@@ -28,11 +28,11 @@ else
   sed -i '/tight_layout : falling back to Agg renderer/d' $t.tmp #remove font warning crap
   sed -i '/cannot be converted with the encoding. Glyph may be wrong/d' $t.tmp #remove font warning crap
 
-  (diff $t.tmp ../misc/ref/$t.out >/dev/null && rm $t.tmp && echo "$t ... ok"
+  (numdiff -r 1e-6 -s ' \t\n[]' -a 1e-6 -q $t.tmp ../misc/ref/$t.out >/dev/null && rm $t.tmp && echo "$t ... ok"
   ) || { 
   echo "$t ... FAIL"; 
   echo "Check: `readlink -f $t.tmp` `readlink -f ../misc/ref/$t.out`";  
-  diff $t.tmp ../misc/ref/$t.out | head
+  numdiff -r 1e-6 -s ' \t\n[]' -a 1e-6 $t.tmp ../misc/ref/$t.out | head
   }
 
 fi



More information about the CIG-COMMITS mailing list