diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2009-06-17 18:42:23 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2009-06-17 18:42:23 (GMT) |
commit | 86fa22c385bb655afaed25e31dd8676b9f94024b (patch) | |
tree | 5c532ed79b4dcec84878c91ecdad79a746b8670e /tools/h5repack/h5repacktst.c | |
parent | 93a6cd92d7f2f6fd20bb22636a5c9245af01c7ef (diff) | |
download | hdf5-86fa22c385bb655afaed25e31dd8676b9f94024b.zip hdf5-86fa22c385bb655afaed25e31dd8676b9f94024b.tar.gz hdf5-86fa22c385bb655afaed25e31dd8676b9f94024b.tar.bz2 |
[svn-r17077] merge 17076 from trunk
bug fix: h5repack was not applying a requested contiguous layout for a dataset with filters
added a test to the C program test (not to the script), that verifies the layout and filters
tested: linux
Diffstat (limited to 'tools/h5repack/h5repacktst.c')
-rw-r--r-- | tools/h5repack/h5repacktst.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/h5repack/h5repacktst.c b/tools/h5repack/h5repacktst.c index af4d671..b36afde 100644 --- a/tools/h5repack/h5repacktst.c +++ b/tools/h5repack/h5repacktst.c @@ -659,6 +659,23 @@ int main (void) if (h5repack_end (&pack_options) < 0) GOERROR; + /*------------------------------------------------------------------------- + * do the same test for a file with filters (chunked) + *------------------------------------------------------------------------- + */ + if (h5repack_init (&pack_options, 0) < 0) + GOERROR; + if (h5repack_addlayout("CONTI",&pack_options) < 0) + GOERROR; + if (h5repack(FNAME8,FNAME8OUT,&pack_options) < 0) + GOERROR; + if (h5diff(FNAME8,FNAME8OUT,NULL,NULL,&diff_options) >0) + GOERROR; + if (h5repack_verify(FNAME8OUT,&pack_options)<=0) + GOERROR; + if (h5repack_end (&pack_options) < 0) + GOERROR; + PASSED(); TESTING(" adding layout compact"); |