diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-08-06 15:04:38 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-08-06 15:04:38 (GMT) |
commit | 5e2d5978e48924c576745ae97e6ecc7203666bf3 (patch) | |
tree | 95f76b4441581a6d54727a090a45eba7545c3333 /tools/h5repack/h5repack.sh.in | |
parent | 0de252524dfec1028bdd9241dbd4cca46535b93a (diff) | |
download | hdf5-5e2d5978e48924c576745ae97e6ecc7203666bf3.zip hdf5-5e2d5978e48924c576745ae97e6ecc7203666bf3.tar.gz hdf5-5e2d5978e48924c576745ae97e6ecc7203666bf3.tar.bz2 |
[svn-r19181] Added new h5repack test for bug1797 to CMakeLists.txt. Added corrected changes to test script for verbose filters
Tested: local linux
Diffstat (limited to 'tools/h5repack/h5repack.sh.in')
-rwxr-xr-x | tools/h5repack/h5repack.sh.in | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/tools/h5repack/h5repack.sh.in b/tools/h5repack/h5repack.sh.in index 636a4cd..d889b55 100755 --- a/tools/h5repack/h5repack.sh.in +++ b/tools/h5repack/h5repack.sh.in @@ -188,19 +188,19 @@ TOOLTEST1() # TOOLTESTV() { - expect="$srcdir/../testfiles/$1" - actual="../testfiles/`basename $1 .ddl`.out" - actual_err="../testfiles/`basename $1 .ddl`.err" - shift - # Run test. TESTING $H5REPACK $@ + expect="$srcdir/../testfiles/$1.ddl" + actual="../testfiles/`basename $1 .ddl`.out" + actual_err="../testfiles/`basename $1 .ddl`.err" infile=$srcdir/testfiles/$1 path=`pwd` outfile=$path/out.$1 shift $RUNSERIAL $H5REPACK_BIN "$@" $infile $outfile >$actual 2>$actual_err + cp $actual $actual_sav + STDOUT_FILTER $actual cat $actual_err >> $actual if cmp -s $expect $actual; then @@ -212,7 +212,18 @@ TOOLTESTV() test yes = "$verbose" && diff -c $expect $actual |sed 's/^/ /' fi -# rm -f $actual $actual_err + rm -f $actual $actual_err $actual_sav +} + +STDOUT_FILTER() { + result_file=$1 + tmp_file=/tmp/h5test_tmp_$$ + # Filter name of files. + cp $result_file $tmp_file + sed -e '/^Opening file/d' -e '/^Making file/d' \ + < $tmp_file > $result_file + # cleanup + rm -f $tmp_file } # @@ -319,7 +330,7 @@ else fi # verbose gzip with individual object -arg="$FILE11 -v -f dset_deflate:GZIP=9" +arg="$FILE11 -v -f /dset_deflate:GZIP=9" if test $USE_FILTER_DEFLATE != "yes" ; then SKIP $arg else |