mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
[svn-r8123] Purpose:
added more tests for szip and more verbose output Description: Solution: Platforms tested: linux solaris AIX Misc. update:
This commit is contained in:
parent
796fe1c402
commit
203799486d
@ -198,6 +198,17 @@ int apply_filters(hid_t dcpl_id,
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* check if we have filters in the pipeline
|
||||
* we want to replace them with the input filters
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if (nfilters) {
|
||||
if (H5Pdelete_filter(dcpl_id,H5Z_FILTER_NONE)<0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* the type of filter and additional parameter
|
||||
* type can be one of the filters
|
||||
|
@ -183,6 +183,11 @@ int h5repack_verify(const char *fname,
|
||||
if ((dcpl_id=H5Dget_create_plist(dset_id))<0)
|
||||
goto error;
|
||||
|
||||
if (options->verbose) {
|
||||
printf(" %-10s %s\n", "dataset",name );
|
||||
print_filters(dcpl_id);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* filter check
|
||||
*-------------------------------------------------------------------------
|
||||
@ -251,6 +256,10 @@ int h5repack_verify(const char *fname,
|
||||
if ((dcpl_id=H5Dget_create_plist(dset_id))<0)
|
||||
goto error;
|
||||
|
||||
if (options->verbose) {
|
||||
printf(" %-10s %s\n", "dataset",name );
|
||||
print_filters(dcpl_id);
|
||||
}
|
||||
/*-------------------------------------------------------------------------
|
||||
* filter check
|
||||
*-------------------------------------------------------------------------
|
||||
|
@ -322,7 +322,24 @@ test_filter_szip(void)
|
||||
TEST_ERROR;
|
||||
if (h5repack_end (&pack_options)<0)
|
||||
TEST_ERROR;
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* test all objects option
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if (h5repack_init (&pack_options, 0)<0)
|
||||
TEST_ERROR;
|
||||
if (h5repack_addfilter("SZIP 8",&pack_options)<0)
|
||||
TEST_ERROR;
|
||||
if (h5repack(FNAME4,FNAME4OUT,&pack_options)<0)
|
||||
TEST_ERROR;
|
||||
if (h5diff(FNAME4,FNAME4OUT,NULL,NULL,&diff_options) == 1)
|
||||
TEST_ERROR;
|
||||
if (h5repack_verify(FNAME4OUT,&pack_options)<=0)
|
||||
TEST_ERROR;
|
||||
if (h5repack_end (&pack_options)<0)
|
||||
TEST_ERROR;
|
||||
|
||||
PASSED();
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user