[PATCH 0/4] test: py: add FIT image boot test
Ahmad Fatoum
a.fatoum at barebox.org
Thu Jun 12 01:55:59 PDT 2025
This series assembles a FIT image with a compressed barebox, an
uncompressed device tree and a small initramfs.
Then the newly introduced test_fit.py checks that it can be booted
and device tree is fixed up with command line, initrd location,
generic and custom fixups.
It already caught a regression in next that broke initrd loading on
ARM64 & RISC-V and it can also detect the FIT image compression
regression in v2025.05.0 that was fixed by Stefan recently.
Ahmad Fatoum (4):
ci: pytest: mount virtfs with signed FIT image into VMs
test: py: add FIT boot test
ci: pytest: multi_v8_defconfig: pass --runxfail
ci: container: add device-tree-compiler
.github/testfs/multi_v7_defconfig-gzipped.its | 57 +++++++++++++++++
.github/testfs/multi_v8_defconfig-gzipped.its | 57 +++++++++++++++++
.github/workflows/test-labgrid-pytest.yml | 22 ++++++-
scripts/generate_testfs.sh | 26 ++++++++
test/Containerfile | 1 +
test/arm/virt at multi_v7_defconfig.yaml | 1 +
test/arm/virt at multi_v8_defconfig.yaml | 1 +
test/py/helper.py | 15 +++++
test/py/test_fit.py | 63 +++++++++++++++++++
9 files changed, 242 insertions(+), 1 deletion(-)
create mode 100644 .github/testfs/multi_v7_defconfig-gzipped.its
create mode 100644 .github/testfs/multi_v8_defconfig-gzipped.its
create mode 100755 scripts/generate_testfs.sh
create mode 100644 test/py/test_fit.py
--
2.39.5
More information about the barebox
mailing list