On 2026-09-22T12:36:21, 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 in partial and in > complete form, 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 | 391 +++++++++++++++++++++++++++++++++++ > 1 file changed, 391 insertions(+)
Reviewed-by: Simon Glass <[email protected]>
