diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-12-18 16:18:09 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-12-18 16:18:09 (GMT) |
commit | 8f65e4252d4f8eea059fcdbe5efc14546175c864 (patch) | |
tree | ade9d7df10060156d25aa6a5d0e5c6581eaf8cbc /tools/h5repack/testh5repack_main.c | |
parent | 1f0ca5b200c1e20050265d40d26f9bc29333fb74 (diff) | |
download | hdf5-8f65e4252d4f8eea059fcdbe5efc14546175c864.zip hdf5-8f65e4252d4f8eea059fcdbe5efc14546175c864.tar.gz hdf5-8f65e4252d4f8eea059fcdbe5efc14546175c864.tar.bz2 |
[svn-r7969] Purpose:
h5repack new features
Description:
addded the copy routines for hard links
changed the traversal structure to store information about the hard links
added tests
Solution:
Platforms tested:
linux
solaris
IRIX
Misc. update:
Diffstat (limited to 'tools/h5repack/testh5repack_main.c')
-rw-r--r-- | tools/h5repack/testh5repack_main.c | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/tools/h5repack/testh5repack_main.c b/tools/h5repack/testh5repack_main.c index 0acd632..83b9b77 100644 --- a/tools/h5repack/testh5repack_main.c +++ b/tools/h5repack/testh5repack_main.c @@ -42,7 +42,6 @@ test_copy(void) memset(&diff_options, 0, sizeof (diff_opt_t)); TESTING(" copy with no filters"); - if (h5repack_init (&pack_options, 0)<0) TEST_ERROR; if (h5repack(FNAME1,FNAME1OUT,&pack_options)<0) @@ -51,8 +50,30 @@ test_copy(void) TEST_ERROR; if (h5diff(FNAME1,FNAME1OUT,NULL,NULL,&diff_options) == 1) TEST_ERROR; + PASSED(); + + TESTING(" copy of attributes"); + if (h5repack_init (&pack_options, 0)<0) + TEST_ERROR; + if (h5repack(FNAME2,FNAME2OUT,&pack_options)<0) + TEST_ERROR; + if (h5repack_end (&pack_options)<0) + TEST_ERROR; + if (h5diff(FNAME2,FNAME2OUT,NULL,NULL,&diff_options) == 1) + TEST_ERROR; + PASSED(); + + TESTING(" copy of hardlinks"); + if (h5repack_init (&pack_options, 0)<0) + TEST_ERROR; + if (h5repack(FNAME3,FNAME3OUT,&pack_options)<0) + TEST_ERROR; + if (h5repack_end (&pack_options)<0) + TEST_ERROR; + if (h5diff(FNAME3,FNAME3OUT,NULL,NULL,&diff_options) == 1) + TEST_ERROR; + PASSED(); - PASSED(); return 0; error: @@ -97,11 +118,11 @@ test_filter_deflate(void) TEST_ERROR; if (h5repack_addchunk("dset_gzip:5x4",&pack_options)<0) TEST_ERROR; - if (h5repack(FNAME2,FNAME2OUT,&pack_options)<0) + if (h5repack(FNAME4,FNAME4OUT,&pack_options)<0) TEST_ERROR; if (h5repack_end (&pack_options)<0) TEST_ERROR; - if (h5diff(FNAME2,FNAME2OUT,NULL,NULL,&diff_options) == 1) + if (h5diff(FNAME4,FNAME4OUT,NULL,NULL,&diff_options) == 1) TEST_ERROR; PASSED(); |