summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-04-02 14:34:01 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-04-02 14:34:01 (GMT)
commit5d91eb8a807ba5f24def56ad373dfa202fbf3b13 (patch)
treedadc0f60d526e60b633006f4888bc9916b5fabcc /tools
parent3756af13c77b27656f1213870f9ecc146bd85e61 (diff)
downloadhdf5-5d91eb8a807ba5f24def56ad373dfa202fbf3b13.zip
hdf5-5d91eb8a807ba5f24def56ad373dfa202fbf3b13.tar.gz
hdf5-5d91eb8a807ba5f24def56ad373dfa202fbf3b13.tar.bz2
[svn-r8295] Purpose:
Bug fix. Description: nerror was not updated when errors were detected. Added the nerror update and print a message at the end if all is well. Platforms tested: Tested in copper, both parallel and serial.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5repack/h5repack.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/h5repack/h5repack.sh b/tools/h5repack/h5repack.sh
index f7b6526..df55359 100644
--- a/tools/h5repack/h5repack.sh
+++ b/tools/h5repack/h5repack.sh
@@ -66,9 +66,10 @@ TOOLTEST()
)
RET=$?
if [ $RET != 0 ] ; then
- echo "*FAILED*"
+ echo "*FAILED*"
+ nerrors="`expr $nerrors + 1`"
else
- echo " PASSED"
+ echo " PASSED"
fi
}
@@ -87,11 +88,11 @@ DIFFTEST()
fi
)
RET=$?
-# echo $RET
if [ $RET != 0 ] ; then
- echo "*FAILED*"
+ echo "*FAILED*"
+ nerrors="`expr $nerrors + 1`"
else
- echo " PASSED"
+ echo " PASSED"
fi
}
@@ -130,5 +131,8 @@ DIFFTEST test4.h5 test4.out.h5
TOOLTEST -i test4.h5 -o test4.out.h5 -e "h5repack_info.txt"
DIFFTEST test4.h5 test4.out.h5
+if test $nerrors -eq 0 ; then
+ echo "All $H5REPACK tests passed."
+fi
exit $nerrors