diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2009-06-17 18:32:04 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2009-06-17 18:32:04 (GMT) |
commit | 98d6ce7de19232ee1742310bdde989c5471f37cc (patch) | |
tree | 9dfb1bbf147d6bd37b9d030afc3e84ba6ad7b05a /tools/h5repack/h5repacktst.c | |
parent | 2a876ea0867f15972d58720836c56dbdb4857619 (diff) | |
download | hdf5-98d6ce7de19232ee1742310bdde989c5471f37cc.zip hdf5-98d6ce7de19232ee1742310bdde989c5471f37cc.tar.gz hdf5-98d6ce7de19232ee1742310bdde989c5471f37cc.tar.bz2 |
[svn-r17076] 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: windows (development and tested manually) , linux, solaris
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"); |