test: py: add mkimage test for undefined image references in FIT configs
authorAristo Chen <jj251510319013@gmail.com>
Tue, 10 Jun 2025 07:41:20 +0000 (07:41 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 26 Jun 2025 14:12:54 +0000 (08:12 -0600)
commit21f75eb7af40cd22ecee94554b2a226760fe9814
treef9274f28ee3a900421a2fd05f5b20edd3a8fe805
parent3071e264c9baba4d55aa6d1a07a60c969d57eccf
test: py: add mkimage test for undefined image references in FIT configs

Add a test case to verify that mkimage correctly rejects a FIT source
that references a non-existent image from a configuration node.

This test introduces a minimal ITS that defines a valid kernel image
but references a missing "fdt" image under the /configurations section.
The test asserts that mkimage fails with a clear error message, as
introduced in the new validation logic.

This helps ensure the validation logic behaves correctly and prevents
regressions in future FIT enhancements.

Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
test/py/tests/test_fit_mkimage_validate.py [new file with mode: 0644]