summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-05-21 14:57:30 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-05-21 14:57:30 (GMT)
commit74568cf5caa17cb13d79d6cd66dae69ea55791f0 (patch)
tree088254b79c3cdd6302c7dc91637b497c2f8b83dc /tools
parent831fd1712cf14ead50d9d42b1e5dcb014910b0d4 (diff)
downloadhdf5-74568cf5caa17cb13d79d6cd66dae69ea55791f0.zip
hdf5-74568cf5caa17cb13d79d6cd66dae69ea55791f0.tar.gz
hdf5-74568cf5caa17cb13d79d6cd66dae69ea55791f0.tar.bz2
[svn-r15053] Add a test for the 1.6.7 -i infile -o outifle for backward compability
Used the function TOOLTEST from 1.6.7 Tested: linux
Diffstat (limited to 'tools')
-rwxr-xr-xtools/h5repack/h5repack.sh.in37
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/h5repack/h5repack.sh.in b/tools/h5repack/h5repack.sh.in
index 6aeb4fb..77be575 100755
--- a/tools/h5repack/h5repack.sh.in
+++ b/tools/h5repack/h5repack.sh.in
@@ -137,6 +137,34 @@ TOOLTEST()
rm -f $outfile
}
+TOOLTEST0()
+{
+ # Run test.
+ # Tflops interprets "$@" as "" when no parameter is given (e.g., the
+ # case of missing file name). Changed it to use $@ till Tflops fixes it.
+ TESTING $H5REPACK $@
+
+ infile=$srcdir/../testfiles/$1
+ path=`pwd`
+ outfile=$path/out.$1
+ shift
+ if [ "`uname -s`" = "TFLOPS O/S" ]; then
+ $RUNSERIAL $H5REPACK_BIN -i $infile -o $outfile $@
+ else
+ $RUNSERIAL $H5REPACK_BIN -i $infile -o $outfile "$@"
+ fi
+
+ RET=$?
+ if [ $RET != 0 ] ; then
+ echo "*FAILED*"
+ nerrors="`expr $nerrors + 1`"
+ else
+ echo " PASSED"
+ DIFFTEST $infile $outfile
+ fi
+ rm -f $outfile
+}
+
#
# The tests
# We use the files generated by h5repacktst
@@ -453,6 +481,15 @@ else
TOOLTEST $arg
fi
+# syntax of -i infile -o outfile
+# latest file format with short switches. use FILE4=h5repack_layout.h5 (no filters)
+arg="$FILE4 -l CHUNK=20x10 -f GZIP=1 -m 10 -n -L -c 8 -d 6 -s 8[:dtype]"
+if test $USE_FILTER_DEFLATE != "yes" ; then
+ SKIP $arg
+else
+ TOOLTEST0 $arg
+fi
+
if test $nerrors -eq 0 ; then
echo "All $H5REPACK tests passed."