mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-21 07:51:46 +08:00
89a2c4a783
HDFFV-5919 - GMQS: h5diff - The number of object difference is not consistent between dataset and group/type when attribute(s) have differences Description: Object differences are not consistent between dataset and group/datatype when their attribute(s) have differences. This is because attribute(s) differences is not accumulated to group or datatype object’s difference, but accumulated to dataset difference. To fix, do not accumulate attribute difference to dataset difference. This is referred to h5diff’s default behavior and also past report from users that users were confused by the accumulated behavior. (also can’t figure out only for dataset difference , also hard to spot dataset difference when it has lots of attributes or differences) This also lead to fix inconsistent format indicating difference between dataset and group/datatype object. Tested: jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Windows (32-LE cmake), cmake (jam)
109 lines
3.8 KiB
Plaintext
109 lines
3.8 KiB
Plaintext
|
|
file1 file2
|
|
---------------------------------------
|
|
x x /
|
|
x x /dset
|
|
x x /g
|
|
x x /g2
|
|
x x /g3
|
|
x x /g4
|
|
x x /ntype
|
|
|
|
|
|
group : </> and </>
|
|
0 differences found
|
|
obj1 obj2
|
|
--------------------------------------
|
|
Attributes status: 0 common, 0 only in obj1, 0 only in obj2
|
|
|
|
dataset: </dset> and </dset>
|
|
0 differences found
|
|
obj1 obj2
|
|
--------------------------------------
|
|
x float2
|
|
x float3
|
|
x x integer1
|
|
Attributes status: 1 common, 1 only in obj1, 1 only in obj2
|
|
attribute: <integer1 of </dset>> and <integer1 of </dset>>
|
|
size: [2] [2]
|
|
position integer1 of </dset> integer1 of </dset> difference
|
|
------------------------------------------------------------
|
|
[ 0 ] 1 2 1
|
|
[ 1 ] 2 3 1
|
|
2 differences found
|
|
|
|
group : </g> and </g>
|
|
0 differences found
|
|
obj1 obj2
|
|
--------------------------------------
|
|
x x float1
|
|
x x integer1
|
|
Attributes status: 2 common, 0 only in obj1, 0 only in obj2
|
|
attribute: <float1 of </g>> and <float1 of </g>>
|
|
size: [2] [2]
|
|
position float1 of </g> float1 of </g> difference
|
|
------------------------------------------------------------
|
|
[ 0 ] 1.1 2.1 1
|
|
[ 1 ] 2.2 3.2 1
|
|
2 differences found
|
|
attribute: <integer1 of </g>> and <integer1 of </g>>
|
|
size: [2] [2]
|
|
position integer1 of </g> integer1 of </g> difference
|
|
------------------------------------------------------------
|
|
[ 0 ] 1 2 1
|
|
[ 1 ] 2 3 1
|
|
2 differences found
|
|
|
|
group : </g2> and </g2>
|
|
0 differences found
|
|
obj1 obj2
|
|
--------------------------------------
|
|
x x float2
|
|
x float3
|
|
x x integer1
|
|
Attributes status: 2 common, 1 only in obj1, 0 only in obj2
|
|
attribute: <float2 of </g2>> and <float2 of </g2>>
|
|
size: [2] [2]
|
|
position float2 of </g2> float2 of </g2> difference
|
|
------------------------------------------------------------
|
|
[ 0 ] 1.1 2.1 1
|
|
[ 1 ] 2.2 3.2 1
|
|
2 differences found
|
|
attribute: <integer1 of </g2>> and <integer1 of </g2>>
|
|
size: [2] [2]
|
|
position integer1 of </g2> integer1 of </g2> difference
|
|
------------------------------------------------------------
|
|
[ 0 ] 1 2 1
|
|
[ 1 ] 2 3 1
|
|
2 differences found
|
|
|
|
group : </g3> and </g3>
|
|
0 differences found
|
|
obj1 obj2
|
|
--------------------------------------
|
|
x float11
|
|
x float12
|
|
x float4
|
|
x integer10
|
|
x integer3
|
|
Attributes status: 0 common, 3 only in obj1, 2 only in obj2
|
|
|
|
group : </g4> and </g4>
|
|
0 differences found
|
|
obj1 obj2
|
|
--------------------------------------
|
|
Attributes status: 0 common, 0 only in obj1, 0 only in obj2
|
|
|
|
datatype: </ntype> and </ntype>
|
|
0 differences found
|
|
obj1 obj2
|
|
--------------------------------------
|
|
x float2
|
|
x float3
|
|
x float5
|
|
x float6
|
|
x integer1
|
|
x integer4
|
|
Attributes status: 0 common, 3 only in obj1, 3 only in obj2
|
|
EXIT CODE: 1
|