diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-08-23 18:42:04 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-08-23 18:42:04 (GMT) |
commit | 31a5595bd580903e8424bcbba64270a7fa2f6dd3 (patch) | |
tree | c0e53d9054846b6961db4d7e1f25b3d06af20f7b /tools/h5repack/testh5repack_main.c | |
parent | 03c1156cd959a625b42312ce720912825efac39c (diff) | |
download | hdf5-31a5595bd580903e8424bcbba64270a7fa2f6dd3.zip hdf5-31a5595bd580903e8424bcbba64270a7fa2f6dd3.tar.gz hdf5-31a5595bd580903e8424bcbba64270a7fa2f6dd3.tar.bz2 |
[svn-r9136] Purpose:
new test for h5repack
Description:
added a test that generates and copies a file with a dataset with fill value
(this is to test the property list function H5Pequal)
Solution:
Platforms tested:
linux
solaris
aix
Misc. update:
Diffstat (limited to 'tools/h5repack/testh5repack_main.c')
-rw-r--r-- | tools/h5repack/testh5repack_main.c | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/tools/h5repack/testh5repack_main.c b/tools/h5repack/testh5repack_main.c index dabc1aa..e99c1fd 100644 --- a/tools/h5repack/testh5repack_main.c +++ b/tools/h5repack/testh5repack_main.c @@ -60,10 +60,29 @@ int main (void) */ /*------------------------------------------------------------------------- + * file with fill values + *------------------------------------------------------------------------- + */ + TESTING(" copy of datasets (fill values)"); + if (h5repack_init (&pack_options, 0)<0) + TEST_ERROR; + if (h5repack(FNAME0,FNAME0OUT,&pack_options)<0) + TEST_ERROR; + if (h5diff(FNAME0,FNAME0OUT,NULL,NULL,&diff_options) == 1) + TEST_ERROR; + if (h5repack_verify(FNAME0OUT,&pack_options)<=0) + TEST_ERROR; + if (h5repack_cmpdcpl(FNAME0,FNAME0OUT)<=0) + TEST_ERROR; + if (h5repack_end (&pack_options)<0) + TEST_ERROR; + PASSED(); + +/*------------------------------------------------------------------------- * file with all kinds of dataset datatypes *------------------------------------------------------------------------- */ - TESTING(" copy of datasets"); + TESTING(" copy of datasets (all datatypes)"); if (h5repack_init (&pack_options, 0)<0) TEST_ERROR; if (h5repack(FNAME1,FNAME1OUT,&pack_options)<0) @@ -72,6 +91,8 @@ int main (void) TEST_ERROR; if (h5repack_verify(FNAME1OUT,&pack_options)<=0) TEST_ERROR; + if (h5repack_cmpdcpl(FNAME1,FNAME1OUT)<=0) + TEST_ERROR; if (h5repack_end (&pack_options)<0) TEST_ERROR; PASSED(); @@ -80,7 +101,7 @@ int main (void) * file with attributes *------------------------------------------------------------------------- */ - TESTING(" copy of attributes"); + TESTING(" copy of datasets (attributes)"); if (h5repack_init (&pack_options, 0)<0) TEST_ERROR; if (h5repack(FNAME2,FNAME2OUT,&pack_options)<0) @@ -89,7 +110,9 @@ int main (void) TEST_ERROR; if (h5repack_verify(FNAME2OUT,&pack_options)<=0) TEST_ERROR; - if (h5repack_end (&pack_options)<0) + if (h5repack_cmpdcpl(FNAME2,FNAME2OUT)<=0) + TEST_ERROR; + if (h5repack_end (&pack_options)<0) TEST_ERROR; PASSED(); @@ -98,7 +121,7 @@ int main (void) * file with hardlinks *------------------------------------------------------------------------- */ - TESTING(" copy of hardlinks"); + TESTING(" copy of datasets (hardlinks)"); if (h5repack_init (&pack_options, 0)<0) TEST_ERROR; if (h5repack(FNAME3,FNAME3OUT,&pack_options)<0) @@ -107,6 +130,8 @@ int main (void) TEST_ERROR; if (h5repack_verify(FNAME3OUT,&pack_options)<=0) TEST_ERROR; + if (h5repack_cmpdcpl(FNAME3,FNAME3OUT)<=0) + TEST_ERROR; if (h5repack_end (&pack_options)<0) TEST_ERROR; @@ -130,6 +155,11 @@ int main (void) PASSED(); /*------------------------------------------------------------------------- + * the remaining files differ in the dcpl's + *------------------------------------------------------------------------- + */ + +/*------------------------------------------------------------------------- * deflate *------------------------------------------------------------------------- */ |