summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/testh5repack_main.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-10-20 18:45:17 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-10-20 18:45:17 (GMT)
commitdf803f78d045963ca024111fc27ba5dc225d2b08 (patch)
treea545ef065874b2fcecfa5164f281972c460ceafc /tools/h5repack/testh5repack_main.c
parent14c697f7e4bd9548eddbe64b17930e69817f98cd (diff)
downloadhdf5-df803f78d045963ca024111fc27ba5dc225d2b08.zip
hdf5-df803f78d045963ca024111fc27ba5dc225d2b08.tar.gz
hdf5-df803f78d045963ca024111fc27ba5dc225d2b08.tar.bz2
[svn-r12793] 1. fix a compiling error in atlantia
2. added the test library delete framework to delete output .h5 files 3. cleaned warnings
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: