summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/testh5repack_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5repack/testh5repack_main.c')
-rw-r--r--tools/h5repack/testh5repack_main.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/tools/h5repack/testh5repack_main.c b/tools/h5repack/testh5repack_main.c
index 3692b3e..7a5b46d 100644
--- a/tools/h5repack/testh5repack_main.c
+++ b/tools/h5repack/testh5repack_main.c
@@ -18,6 +18,23 @@
#include "testh5repack.h"
#include "h5diff.h"
+const char *FILENAME[] = {
+ FNAME1OUT,
+ FNAME2OUT,
+ FNAME3OUT,
+ FNAME4OUT,
+ FNAME5OUT,
+ FNAME7OUT,
+ FNAME8OUT,
+ FNAME9OUT,
+ FNAME10OUT,
+ FNAME11OUT,
+ FNAME12OUT,
+ FNAME13OUT,
+ FNAME14OUT,
+ NULL
+};
+
/*-------------------------------------------------------------------------
* Function: main
@@ -43,12 +60,19 @@ int main (int argc, const char *argv[])
#if defined (H5_HAVE_FILTER_SZIP)
int szip_can_encode = 0;
#endif
+ hid_t fapl;
+
+ /* initialize */
memset(&diff_options, 0, sizeof (diff_opt_t));
memset(&pack_options, 0, sizeof (pack_opt_t));
/* run tests */
puts("Testing h5repack:");
+ /* setup */
+ fapl = h5_fileaccess();
+
+
/* make the test files */
if (make_testfiles()<0)
goto error;
@@ -1174,7 +1198,6 @@ if (szip_can_encode) {
* test a big file
*-------------------------------------------------------------------------
*/
-
TESTING(" big file");
if (h5repack_init (&pack_options, 0)<0)
TEST_ERROR;
@@ -1196,6 +1219,8 @@ if (szip_can_encode) {
puts("All h5repack tests passed.");
+ h5_cleanup(FILENAME, fapl);
+
return 0;
error: