[cig-commits] [commit] inversion, master, validate_MT_params: nicer test output (47f6e09)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri Dec 12 18:28:26 PST 2014


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

On branches: inversion,master,validate_MT_params
Link       : https://github.com/geodynamics/burnman/compare/80c2a295c42dfdb38f83f6c1334bf7d8f97a8463...409647ff05dfad6a686198cac1481bd46b5e2e62

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

commit 47f6e092fb643f47630f7bb7dadf7d42dc0624a1
Author: Timo Heister <timo.heister at gmail.com>
Date:   Fri Dec 12 14:01:14 2014 -0800

    nicer test output


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

47f6e092fb643f47630f7bb7dadf7d42dc0624a1
 test.sh | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/test.sh b/test.sh
index 30ff3d2..bfca4d4 100755
--- a/test.sh
+++ b/test.sh
@@ -16,7 +16,7 @@ EOF
 ret=$?
 if [ "$ret" -ne 0 ]
 then
-  echo "$t ... FAIL";
+  echo "!  $t ... FAIL";
   cat $t.tmp;
 else
 
@@ -31,7 +31,7 @@ else
 
   (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 "!  $t ... FAIL";
   echo "Check: `readlink -f $t.tmp` `readlink -f ../misc/ref/$t.out`";
   numdiff -r 1e-6 -s ' \t\n[]' -a 1e-6 $t.tmp ../misc/ref/$t.out | head
   }
@@ -61,10 +61,10 @@ echo "checking examples/ ..."
 cd examples
 for test in `ls example*.py`
 do
-    [ $test == "example_inv_murakami.py" ] && echo "*** skipping $test !" && continue
-    [ $test == "example_premite_isothermal.py" ] && echo "*** skipping $test !" && continue
-    [ $test == "example_compare_enstpyro.py" ] && echo "*** skipping $test !" && continue
-    [ $test == "example_partition_coef.py" ] && echo "*** skipping $test !" && continue
+    [ $test == "example_inv_murakami.py" ] && echo "  *** skipping $test !" && continue
+    [ $test == "example_premite_isothermal.py" ] && echo "  *** skipping $test !" && continue
+    [ $test == "example_compare_enstpyro.py" ] && echo "  *** skipping $test !" && continue
+    [ $test == "example_partition_coef.py" ] && echo "  *** skipping $test !" && continue
 
     testit $test
 done
@@ -75,7 +75,7 @@ echo "checking misc/ ..."
 cd misc
 for test in `ls paper*.py`
 do
-    [ $test == "paper_opt_pv_old.py" ] && echo "*** skipping $test !" && continue
+    [ $test == "paper_opt_pv_old.py" ] && echo "  *** skipping $test !" && continue
 
     testit $test
 done



More information about the CIG-COMMITS mailing list