diff options
author | Peter Cao <xcao@hdfgroup.org> | 2007-07-13 18:18:48 (GMT) |
---|---|---|
committer | Peter Cao <xcao@hdfgroup.org> | 2007-07-13 18:18:48 (GMT) |
commit | 2b89d6d73c71d4bd7d90bb8b564992fd8f8b4628 (patch) | |
tree | b6dccd2f6eff0305f3f19a335347259d63bc17fc /tools/h5repack/h5repacktst.c | |
parent | b566d21649d3286ace6aed1eaf73d5e3ade24f6a (diff) | |
download | hdf5-2b89d6d73c71d4bd7d90bb8b564992fd8f8b4628.zip hdf5-2b89d6d73c71d4bd7d90bb8b564992fd8f8b4628.tar.gz hdf5-2b89d6d73c71d4bd7d90bb8b564992fd8f8b4628.tar.bz2 |
[svn-r13975] Add --latest, -compact=<size>, ... options to use the lastest file format.
Add test for the options to the daily test.
Diffstat (limited to 'tools/h5repack/h5repacktst.c')
-rw-r--r-- | tools/h5repack/h5repacktst.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/h5repack/h5repacktst.c b/tools/h5repack/h5repacktst.c index 6d1888c..93d9b23 100644 --- a/tools/h5repack/h5repacktst.c +++ b/tools/h5repack/h5repacktst.c @@ -1301,6 +1301,31 @@ if (szip_can_encode) { GOERROR; PASSED(); +/*------------------------------------------------------------------------- + * test --latest options + *------------------------------------------------------------------------- + */ + TESTING(" latest file format options"); + if (h5repack_init (&pack_options, 0)<0) + GOERROR; + pack_options.latest=1; + pack_options.grp_compact=10; + pack_options.grp_indexed=5; + pack_options.msg_size[0] = 10; + pack_options.msg_size[1] = 20; + pack_options.msg_size[2] = 30; + pack_options.msg_size[3] = 40; + pack_options.msg_size[4] = 50; + if (h5repack(FNAME1,FNAME1OUT,&pack_options) < 0) + GOERROR; + if (h5diff(FNAME1,FNAME1OUT,NULL,NULL,&diff_options) > 0) + GOERROR; + if (h5repack_verify(FNAME1OUT,&pack_options)<=0) + GOERROR; + if (h5repack_end (&pack_options)<0) + GOERROR; + PASSED(); + /*------------------------------------------------------------------------- * clean temporary test files |