test: Add test case for FIT image load address overlap detection
authorAristo Chen <jj251510319013@gmail.com>
Sun, 14 Sep 2025 10:59:31 +0000 (10:59 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 23 Sep 2025 19:35:22 +0000 (13:35 -0600)
commit8f3d3510e31ebc7b2057f431322a7174b6b60ea6
tree2cd511f8199efb2e75e5a3d1be169b72a0c13786
parent588094f2c8ec9a4f7d2dcda11ffae8db8462149c
test: Add test case for FIT image load address overlap detection

Add a new test case to verify that mkimage properly detects and reports
memory region overlaps in FIT image configurations.

The test creates a FIT image with kernel and FDT components that have
the same load address (0x40000), which should trigger the overlap
detection logic and cause mkimage to fail with an appropriate error
message.

Test verifies:
- mkimage returns non-zero exit code when overlap is detected
- Error message contains "Error: Overlap detected:"
- Error message identifies the specific overlapping components
  (kernel@1 and fdt@1)

This test ensures the overlap detection feature works correctly and
prevents deployment of FIT images with conflicting memory layouts
that could cause runtime failures.

Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
test/py/tests/test_fit_mkimage_validate.py