[cig-commits] [commit] master: nicer test output (47f6e09)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri Dec 12 14:05:20 PST 2014
Repository : https://github.com/geodynamics/burnman
On branch : master
Link : https://github.com/geodynamics/burnman/compare/53964ef9adcc1f8b89f9e48ae774c2ecb51f216a...6f75d3766c3c8e3bf6599b894e7bbe2993f57419
>---------------------------------------------------------------
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