diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-12-26 07:43:50 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-12-26 07:43:50 (GMT) |
commit | 8de1f3aab3c40a81402759d8416d5e71b66b4919 (patch) | |
tree | 0e222109f002762b653900ba9239872e74aea0cf /tools/h5diff/testh5diff.sh | |
parent | b6a36494bc0593e25ce78a807c1ad2121a139a7f (diff) | |
download | hdf5-8de1f3aab3c40a81402759d8416d5e71b66b4919.zip hdf5-8de1f3aab3c40a81402759d8416d5e71b66b4919.tar.gz hdf5-8de1f3aab3c40a81402759d8416d5e71b66b4919.tar.bz2 |
[svn-r18053] Bug fix: 1192
Description:
Fixed exit code (sometimes return code in Main) to follow the HDF5 standards.
Tested:
H5committested plus serial test in Jam.
Diffstat (limited to 'tools/h5diff/testh5diff.sh')
-rwxr-xr-x | tools/h5diff/testh5diff.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/h5diff/testh5diff.sh b/tools/h5diff/testh5diff.sh index dec91d3..f95e260 100755 --- a/tools/h5diff/testh5diff.sh +++ b/tools/h5diff/testh5diff.sh @@ -56,6 +56,10 @@ FILE10="$INDIR/$SRCFILE10" FILE11="$INDIR/$SRCFILE11" +TESTNAME=h5diff +EXIT_SUCCESS=0 +EXIT_FAILURE=1 + H5DIFF=h5diff # The tool name H5DIFF_BIN=`pwd`/$H5DIFF # The path of the tool binary @@ -80,6 +84,7 @@ test -d ./testfiles || mkdir ./testfiles while [ $# -gt 0 ]; do case "$1" in -p) # reset the tool name and bin to run ph5diff tests + TESTNAME=ph5diff H5DIFF=ph5diff # The tool name H5DIFF_BIN=`pwd`/$H5DIFF pmode=yes @@ -201,7 +206,6 @@ TOOLTEST() { fi # Run test. - #TESTING $H5DIFF $@ ( #echo "#############################" #echo "Expected output for '$H5DIFF $@'" @@ -617,7 +621,9 @@ TOOLTEST h5diff_207.txt -c $FILE2 $FILE2 g2/dset8 g2/dset9 # ############################################################################## if test $nerrors -eq 0 ; then - echo "All $H5DIFF tests passed." + echo "All $TESTNAME tests passed." + exit $EXIT_SUCCESS +else + echo "$TESTNAME tests failed with $nerrors errors." + exit $EXIT_FAILURE fi - -exit $nerrors |