From 5d91eb8a807ba5f24def56ad373dfa202fbf3b13 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 2 Apr 2004 09:34:01 -0500 Subject: [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. --- tools/h5repack/h5repack.sh | 14 +++++++++----- 1 file 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 -- cgit v0.12