Summary: when using h5diff to compare the results of h5repack (or other tools that copy one HDF5 file to another), a new option is needed to allow h5diff to make an "absolute" comparison of the 2 files. This is the "contents" mode explained in the usage below.


If this mode is present, objects in both files must match (must be exactly the same). If this does not happen, the tool returns an error code of 1 (instead of the success code of 0)


Changes to the h5repack test script: the call to h5diff was changed to include -c (maintaining the previous -q). 


tested: windows, linux
This commit is contained in:
Pedro Vicente Nunes
2008-08-05 14:35:46 -05:00
parent d364dc74a4
commit e46107ca75
26 changed files with 570 additions and 294 deletions

View File

@@ -89,6 +89,10 @@ int main(int argc, const char *argv[])
*/
ret = (nfound == 0 ? 0 : 1 );
if ( options.m_contents && options.contents == 0 )
ret = 1;
if(options.err_stat)
ret = -1;
return ret;