summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5repack/h5repack.sh')
-rw-r--r--tools/h5repack/h5repack.sh113
1 files changed, 105 insertions, 8 deletions
diff --git a/tools/h5repack/h5repack.sh b/tools/h5repack/h5repack.sh
index bac641a..a471ba9 100644
--- a/tools/h5repack/h5repack.sh
+++ b/tools/h5repack/h5repack.sh
@@ -99,35 +99,132 @@ DIFFTEST()
#
-#The tests
-#We use the file "test4.h5" generated by h5repacktst
-#Each run generates "file4.out.h5" and the tool h5diff is used to
+# The tests
+# We use the files generated by h5repacktst
+# Each run generates "file4.out.h5" and the tool h5diff is used to
# compare the input and output files
#
+
+# copy files
+TOOLTEST -i test1.h5 -o test1.out.h5
+DIFFTEST test1.h5 test1.out.h5
+
+TOOLTEST -i test3.h5 -o test3.out.h5
+DIFFTEST test3.h5 test3.out.h5
+
TOOLTEST -i test4.h5 -o test4.out.h5
DIFFTEST test4.h5 test4.out.h5
+
+#TOOLTEST -i test5.h5 -o test5.out.h5
+#DIFFTEST test5.h5 test5.out.h5
+
+# remove all filters
+TOOLTEST -i test4.h5 -o test4.out.h5 -f NONE
+DIFFTEST test4.h5 test4.out.h5
+
+# remove one filter
+TOOLTEST -i test4.h5 -o test4.out.h5 -f dset_gzip:NONE
+DIFFTEST test4.h5 test4.out.h5
+
+# gzip
+TOOLTEST -i test4.h5 -o test4.out.h5 -f dset1:GZIP=9
+DIFFTEST test4.h5 test4.out.h5
+
TOOLTEST -i test4.h5 -o test4.out.h5 -f GZIP=1
DIFFTEST test4.h5 test4.out.h5
+
+# szip
+TOOLTEST -i test4.h5 -o test4.out.h5 -f dset1:SZIP=8
+DIFFTEST test4.h5 test4.out.h5
+
TOOLTEST -i test4.h5 -o test4.out.h5 -f SZIP=8
DIFFTEST test4.h5 test4.out.h5
+
+# shuffle
+TOOLTEST -i test4.h5 -o test4.out.h5 -f dset1:SHUF
+DIFFTEST test4.h5 test4.out.h5
+
TOOLTEST -i test4.h5 -o test4.out.h5 -f SHUF
DIFFTEST test4.h5 test4.out.h5
-TOOLTEST -i test4.h5 -o test4.out.h5 -f FLET
+
+# fletcher
+TOOLTEST -i test4.h5 -o test4.out.h5 -f dset1:FLET
DIFFTEST test4.h5 test4.out.h5
-TOOLTEST -i test4.h5 -o test4.out.h5 -f dset1:SHUF -f dset1,dset2:GZIP=6
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -f FLET
DIFFTEST test4.h5 test4.out.h5
-TOOLTEST -i test4.h5 -o test4.out.h5 -l dset1:CHUNK=20x10 -f dset1,dset2:SZIP=8
+
+#layout chunk
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset1:CHUNK=20x10
DIFFTEST test4.h5 test4.out.h5
+
TOOLTEST -i test4.h5 -o test4.out.h5 -l CHUNK=20x10
DIFFTEST test4.h5 test4.out.h5
+
+#layout compact
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset1:COMPA
+DIFFTEST test4.h5 test4.out.h5
+
TOOLTEST -i test4.h5 -o test4.out.h5 -l COMPA
DIFFTEST test4.h5 test4.out.h5
+
+#layout contiguous
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset1:CONTI
+DIFFTEST test4.h5 test4.out.h5
+
TOOLTEST -i test4.h5 -o test4.out.h5 -l CONTI
DIFFTEST test4.h5 test4.out.h5
-TOOLTEST -i test4.h5 -o test4.out.h5 -f GZIP=1 -m 1024
+
+#conversions
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset_compact:CONTI
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset_compact:CHUNK=2x5
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset_compact:COMPA
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset_contiguous:COMPA
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset_contiguous:CHUNK=3x6
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset_contiguous:CONTI
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset_chunk:COMPA
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset_chunk:CONTI
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset_chunk:CHUNK=18x13
+DIFFTEST test4.h5 test4.out.h5
+
+#filters
+TOOLTEST -i test4.h5 -o test4.out.h5 -f dset1:SHUF -f dset1,dset2:GZIP=6
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -l dset1:CHUNK=20x10 -f dset1,dset2:SZIP=8
+DIFFTEST test4.h5 test4.out.h5
+
+#filter conversions
+TOOLTEST -i test4.h5 -o test4.out.h5 -f dset_gzip:SZIP=8
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -f dset_szip:GZIP=1
+DIFFTEST test4.h5 test4.out.h5
+
+TOOLTEST -i test4.h5 -o test4.out.h5 -f dset_all:GZIP=1
DIFFTEST test4.h5 test4.out.h5
-TOOLTEST -i test4.h5 -o test4.out.h5 -f NONE
+
+#limit
+TOOLTEST -i test4.h5 -o test4.out.h5 -f GZIP=1 -m 1024
DIFFTEST test4.h5 test4.out.h5
+
+#file
#TOOLTEST -i test4.h5 -o test4.out.h5 -e h5repack_info.txt
#DIFFTEST test4.h5 test4.out.h5