From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Subject: [PATCH 0/4] test: py: add FIT image boot test
Date: Thu, 12 Jun 2025 10:55:59 +0200 [thread overview]
Message-ID: <20250612085603.4190573-1-a.fatoum@barebox.org> (raw)
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@multi_v7_defconfig.yaml | 1 +
test/arm/virt@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
next reply other threads:[~2025-06-12 10:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-12 8:55 Ahmad Fatoum [this message]
2025-06-12 8:56 ` [PATCH 1/4] ci: pytest: mount virtfs with signed FIT image into VMs Ahmad Fatoum
2025-06-12 8:56 ` [PATCH 2/4] test: py: add FIT boot test Ahmad Fatoum
2025-06-12 8:56 ` [PATCH 3/4] ci: pytest: multi_v8_defconfig: pass --runxfail Ahmad Fatoum
2025-06-12 8:56 ` [PATCH 4/4] ci: container: add device-tree-compiler Ahmad Fatoum
2025-06-17 7:29 ` [PATCH 0/4] test: py: add FIT image boot test Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250612085603.4190573-1-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox