summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-07-02 14:11:55 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-07-02 14:11:55 (GMT)
commit364c193744a84058038b54f4ae08317aee081b55 (patch)
treed1b51c6378ca607a98e0e83e7460cd2fdf0267f8
parent02d0de0452330598b0709cea595ff7dcd8f4588a (diff)
downloadhdf5-364c193744a84058038b54f4ae08317aee081b55.zip
hdf5-364c193744a84058038b54f4ae08317aee081b55.tar.gz
hdf5-364c193744a84058038b54f4ae08317aee081b55.tar.bz2
[svn-r27321] Fixed VDS test framework to check for zlib,
and fix file copy list paths
-rw-r--r--tools/h5diff/testh5diff.sh.in6
-rw-r--r--tools/h5dump/CMakeTestsVDS.cmake41
-rw-r--r--tools/h5dump/testh5dumpvds.sh.in28
-rw-r--r--tools/h5repack/h5repack.sh.in6
4 files changed, 51 insertions, 30 deletions
diff --git a/tools/h5diff/testh5diff.sh.in b/tools/h5diff/testh5diff.sh.in
index 66185ed..07fa7ba 100644
--- a/tools/h5diff/testh5diff.sh.in
+++ b/tools/h5diff/testh5diff.sh.in
@@ -122,9 +122,9 @@ $SRC_H5DIFF_TESTFILES/non_comparables1.h5
$SRC_H5DIFF_TESTFILES/non_comparables2.h5
$SRC_TOOLS_TESTFILES/vds/1_a.h5
$SRC_TOOLS_TESTFILES/vds/1_b.h5
-$SRC_TOOLS_TESTFILES/1_c.h5
-$SRC_TOOLS_TESTFILES/1_d.h5
-$SRC_TOOLS_TESTFILES/1_e.h5
+$SRC_TOOLS_TESTFILES/vds/1_c.h5
+$SRC_TOOLS_TESTFILES/vds/1_d.h5
+$SRC_TOOLS_TESTFILES/vds/1_e.h5
$SRC_TOOLS_TESTFILES/vds/1_f.h5
$SRC_TOOLS_TESTFILES/vds/1_vds.h5
$SRC_TOOLS_TESTFILES/vds/2_a.h5
diff --git a/tools/h5dump/CMakeTestsVDS.cmake b/tools/h5dump/CMakeTestsVDS.cmake
index 17d923e..58287fa 100644
--- a/tools/h5dump/CMakeTestsVDS.cmake
+++ b/tools/h5dump/CMakeTestsVDS.cmake
@@ -204,18 +204,35 @@
set (last_VDS_test "H5DUMP_VDS-clearall-objects")
endif (HDF5_ENABLE_USING_MEMCHECKER)
+# See which filters are usable (and skip tests for filters we
+# don't have). Do this by searching H5pubconf.h to see which
+# filters are defined.
+
+# detect whether the encoder is present.
+ if (H5_HAVE_FILTER_DEFLATE)
+ set (USE_FILTER_DEFLATE "true")
+ endif (H5_HAVE_FILTER_DEFLATE)
+
+ if (H5_HAVE_FILTER_SZIP)
+ set (USE_FILTER_SZIP "true")
+ endif (H5_HAVE_FILTER_SZIP)
+
# Data read
- ADD_H5_VDS_TEST (tvds-1 0 --enable-error-stack 1_vds.h5)
- ADD_H5_VDS_TEST (tvds-2 0 --enable-error-stack 2_vds.h5)
- ADD_H5_VDS_TEST (tvds-3_1 0 --enable-error-stack 3_1_vds.h5)
- ADD_H5_VDS_TEST (tvds-3_2 0 --enable-error-stack 3_2_vds.h5)
- ADD_H5_VDS_TEST (tvds-4 0 --enable-error-stack 4_vds.h5)
- ADD_H5_VDS_TEST (tvds-5 0 --enable-error-stack 5_vds.h5)
+ if (USE_FILTER_DEFLATE)
+ ADD_H5_VDS_TEST (tvds-1 0 --enable-error-stack 1_vds.h5)
+ ADD_H5_VDS_TEST (tvds-2 0 --enable-error-stack 2_vds.h5)
+ ADD_H5_VDS_TEST (tvds-3_1 0 --enable-error-stack 3_1_vds.h5)
+ ADD_H5_VDS_TEST (tvds-3_2 0 --enable-error-stack 3_2_vds.h5)
+ ADD_H5_VDS_TEST (tvds-4 0 --enable-error-stack 4_vds.h5)
+ ADD_H5_VDS_TEST (tvds-5 0 --enable-error-stack 5_vds.h5)
+ endif (USE_FILTER_DEFLATE)
# Layout read
- ADD_H5_VDS_LAYOUT (tvds_layout-1 0 --enable-error-stack 1_vds.h5)
- ADD_H5_VDS_LAYOUT (tvds_layout-2 0 --enable-error-stack 2_vds.h5)
- ADD_H5_VDS_LAYOUT (tvds_layout-3_1 0 --enable-error-stack 3_1_vds.h5)
- ADD_H5_VDS_LAYOUT (tvds_layout-3_2 0 --enable-error-stack 3_2_vds.h5)
- ADD_H5_VDS_LAYOUT (tvds_layout-4 0 --enable-error-stack 4_vds.h5)
- ADD_H5_VDS_LAYOUT (tvds_layout-5 0 --enable-error-stack 5_vds.h5)
+ if (USE_FILTER_DEFLATE)
+ ADD_H5_VDS_LAYOUT (tvds_layout-1 0 --enable-error-stack 1_vds.h5)
+ ADD_H5_VDS_LAYOUT (tvds_layout-2 0 --enable-error-stack 2_vds.h5)
+ ADD_H5_VDS_LAYOUT (tvds_layout-3_1 0 --enable-error-stack 3_1_vds.h5)
+ ADD_H5_VDS_LAYOUT (tvds_layout-3_2 0 --enable-error-stack 3_2_vds.h5)
+ ADD_H5_VDS_LAYOUT (tvds_layout-4 0 --enable-error-stack 4_vds.h5)
+ ADD_H5_VDS_LAYOUT (tvds_layout-5 0 --enable-error-stack 5_vds.h5)
+ endif (USE_FILTER_DEFLATE)
diff --git a/tools/h5dump/testh5dumpvds.sh.in b/tools/h5dump/testh5dumpvds.sh.in
index 7a2032e..b15606f 100644
--- a/tools/h5dump/testh5dumpvds.sh.in
+++ b/tools/h5dump/testh5dumpvds.sh.in
@@ -473,20 +473,24 @@ COPY_TESTFILES_TO_TESTDIR
####### test for dataset vds ######
# Data read
-TOOLTEST tvds-1.ddl --enable-error-stack 1_vds.h5
-TOOLTEST tvds-2.ddl --enable-error-stack 2_vds.h5
-TOOLTEST tvds-3_1.ddl --enable-error-stack 3_1_vds.h5
-TOOLTEST tvds-3_2.ddl --enable-error-stack 3_2_vds.h5
-TOOLTEST tvds-4.ddl --enable-error-stack 4_vds.h5
-TOOLTEST tvds-5.ddl --enable-error-stack 5_vds.h5
+if test $USE_FILTER_DEFLATE = "yes" ; then
+ TOOLTEST tvds-1.ddl --enable-error-stack 1_vds.h5
+ TOOLTEST tvds-2.ddl --enable-error-stack 2_vds.h5
+ TOOLTEST tvds-3_1.ddl --enable-error-stack 3_1_vds.h5
+ TOOLTEST tvds-3_2.ddl --enable-error-stack 3_2_vds.h5
+ TOOLTEST tvds-4.ddl --enable-error-stack 4_vds.h5
+ TOOLTEST tvds-5.ddl --enable-error-stack 5_vds.h5
+fi
# Layout read
-TOOLTEST tvds_layout-1.ddl -p --enable-error-stack 1_vds.h5
-TOOLTEST tvds_layout-2.ddl -p --enable-error-stack 2_vds.h5
-TOOLTEST tvds_layout-3_1.ddl -p --enable-error-stack 3_1_vds.h5
-TOOLTEST tvds_layout-3_2.ddl -p --enable-error-stack 3_2_vds.h5
-TOOLTEST tvds_layout-4.ddl -p --enable-error-stack 4_vds.h5
-TOOLTEST tvds_layout-5.ddl -p --enable-error-stack 5_vds.h5
+if test $USE_FILTER_DEFLATE = "yes" ; then
+ TOOLTEST tvds_layout-1.ddl -p --enable-error-stack 1_vds.h5
+ TOOLTEST tvds_layout-2.ddl -p --enable-error-stack 2_vds.h5
+ TOOLTEST tvds_layout-3_1.ddl -p --enable-error-stack 3_1_vds.h5
+ TOOLTEST tvds_layout-3_2.ddl -p --enable-error-stack 3_2_vds.h5
+ TOOLTEST tvds_layout-4.ddl -p --enable-error-stack 4_vds.h5
+ TOOLTEST tvds_layout-5.ddl -p --enable-error-stack 5_vds.h5
+fi
# Clean up temporary files/directories
CLEAN_TESTFILES_AND_TESTDIR
diff --git a/tools/h5repack/h5repack.sh.in b/tools/h5repack/h5repack.sh.in
index e91883b..ea2e74f 100644
--- a/tools/h5repack/h5repack.sh.in
+++ b/tools/h5repack/h5repack.sh.in
@@ -115,9 +115,9 @@ $SRC_TOOLS_TESTFILES/tfamily00009.h5
$SRC_TOOLS_TESTFILES/tfamily00010.h5
$SRC_TOOLS_TESTFILES/vds/1_a.h5
$SRC_TOOLS_TESTFILES/vds/1_b.h5
-$SRC_TOOLS_TESTFILES/1_c.h5
-$SRC_TOOLS_TESTFILES/1_d.h5
-$SRC_TOOLS_TESTFILES/1_e.h5
+$SRC_TOOLS_TESTFILES/vds/1_c.h5
+$SRC_TOOLS_TESTFILES/vds/1_d.h5
+$SRC_TOOLS_TESTFILES/vds/1_e.h5
$SRC_TOOLS_TESTFILES/vds/1_f.h5
$SRC_TOOLS_TESTFILES/vds/1_vds.h5
$SRC_TOOLS_TESTFILES/vds/2_a.h5