summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/testh5repack_main.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-04-09 14:20:49 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-04-09 14:20:49 (GMT)
commit00235dba7e54a387783b2a2abb680ac32d7d8985 (patch)
treea14c84ff963a8281337d75b1fafc46c3d8ad9b9a /tools/h5repack/testh5repack_main.c
parent8c0626ff5b52571a237e4890262f258d68545cc3 (diff)
downloadhdf5-00235dba7e54a387783b2a2abb680ac32d7d8985.zip
hdf5-00235dba7e54a387783b2a2abb680ac32d7d8985.tar.gz
hdf5-00235dba7e54a387783b2a2abb680ac32d7d8985.tar.bz2
[svn-r8333] Purpose:
new test Description: add a test that generates a file with "holes" and then uses h5repack to clean the empty space. it works Solution: Platforms tested: linux Misc. update:
Diffstat (limited to 'tools/h5repack/testh5repack_main.c')
-rw-r--r--tools/h5repack/testh5repack_main.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/tools/h5repack/testh5repack_main.c b/tools/h5repack/testh5repack_main.c
index 2faf20a..ddecd98 100644
--- a/tools/h5repack/testh5repack_main.c
+++ b/tools/h5repack/testh5repack_main.c
@@ -139,6 +139,24 @@ int main (void)
PASSED();
+ TESTING(" copy of allocation early file");
+
+/*-------------------------------------------------------------------------
+ * alloc early test
+ *-------------------------------------------------------------------------
+ */
+ if (h5repack_init (&pack_options, 0)<0)
+ TEST_ERROR;
+ if (h5repack(FNAME5,FNAME5OUT,&pack_options)<0)
+ TEST_ERROR;
+ if (h5diff(FNAME5,FNAME5OUT,NULL,NULL,&diff_options) == 1)
+ TEST_ERROR;
+ if (h5repack_verify(FNAME5OUT,&pack_options)<=0)
+ TEST_ERROR;
+ if (h5repack_end (&pack_options)<0)
+ TEST_ERROR;
+ PASSED();
+
TESTING(" removing all filters");
/*-------------------------------------------------------------------------
@@ -893,8 +911,13 @@ TESTING(" addding shuffle filter to all");
TEST_ERROR;
PASSED();
+
-
+
+/*-------------------------------------------------------------------------
+ * end
+ *-------------------------------------------------------------------------
+ */
puts("All h5repack tests passed.");