On 2026-09-12T12:44:46, Aristo Chen <[email protected]> wrote: > test: py: add tests for the FIT image-data property > > Cover mkimage's resolution of image-data references between images. The > positive tests check that an inline FIT carries identical data and hash > values on the sharer and the target while their own properties remain > independent, that external data mode points both nodes at a single copy > of the payload, that a resolved FIT can be re-processed with -F > including conversion to external data, and that two nodes with > identical cipher settings share the same ciphertext both inline and > external, whether the IV comes from an iv-name-hint or from an explicit > iv that is honored and retained in the FIT. > > The negative tests check that mkimage rejects references to undefined > images, chained references, data that disagrees with the target, > image-data combined with external data properties, a configuration > whose image-data sharers have overlapping load regions, sharing where > only one node is encrypted, and encrypted sharing where the nodes > disagree on the IV, through different iv-name-hints, different explicit > ivs or no shared IV source at all. > > Signed-off-by: Aristo Chen <[email protected]> > > test/py/tests/test_fit_image_data.py | 373 +++++++++++++++++++++++++++++++++++ > 1 file changed, 373 insertions(+)
Reviewed-by: Simon Glass <[email protected]>
