diff options
-rwxr-xr-x | tools/h5dump/testh5dump.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/h5dump/testh5dump.sh b/tools/h5dump/testh5dump.sh index 2a64fa7..3c532ef 100755 --- a/tools/h5dump/testh5dump.sh +++ b/tools/h5dump/testh5dump.sh @@ -40,18 +40,19 @@ TESTING() { TOOLTEST() { expect="$srcdir/../testfiles/$1" actual="../testfiles/`basename $1 .ddl`.out" + actual_err="../testfiles/`basename $1 .ddl`.err" shift # Run test. TESTING $DUMPER $@ - ( echo "#############################" echo "Expected output for '$DUMPER $@'" echo "#############################" cd $srcdir/../testfiles $RUNSERIAL $DUMPER_BIN "$@" - ) >$actual 2>&1 + ) >$actual 2>$actual_err + cat $actual_err >> $actual if $CMP $expect $actual; then echo " PASSED" @@ -64,7 +65,7 @@ TOOLTEST() { # Clean up output file if test -z "$HDF5_NOCLEANUP"; then - rm -f $actual + rm -f $actual $actual_err fi } |