mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
To: Sascha Hauer <s.hauer@pengutronix.de>,
	 Ahmad Fatoum <a.fatoum@pengutronix.de>,
	 "open list:BAREBOX" <barebox@lists.infradead.org>
Cc: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
	"Miquèl Raynal" <miquel.raynal@bootlin.com>,
	"Hervé Codina" <herve.codina@bootlin.com>,
	"Thomas Bonnefille" <thomas.bonnefille@bootlin.com>
Subject: [PATCH v2 2/3] test: py: add test for fit cmdline parameter
Date: Thu, 24 Sep 2026 19:59:32 +0200	[thread overview]
Message-ID: <20260924-add-cmdline-fitimage-v2-2-4a665e165002@bootlin.com> (raw)
In-Reply-To: <20260924-add-cmdline-fitimage-v2-0-4a665e165002@bootlin.com>

Now that the FIT boot logic supports getting new command line arguments
from the FIT image, add a test to ensure this doesn't regress.

Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
---
 test/py/test_fit.py                          | 1 +
 test/testdata/multi_v7_defconfig-gzipped.its | 1 +
 test/testdata/multi_v8_defconfig-gzipped.its | 1 +
 3 files changed, 3 insertions(+)

diff --git a/test/py/test_fit.py b/test/py/test_fit.py
index 51afbba876..b4c0145992 100644
--- a/test/py/test_fit.py
+++ b/test/py/test_fit.py
@@ -123,6 +123,7 @@ def test_fit(barebox, strategy, fitimage):
         # Check that command line arguments were fixed up
         bootargs = of_get_property(barebox, "/chosen/bootargs")
         assert "barebox.chainloaded" in bootargs
+        assert "fit.param" in bootargs
 
         initrd_start = of_get_property(barebox, "/chosen/linux,initrd-start", ncells=0)
         initrd_end = of_get_property(barebox, "/chosen/linux,initrd-end", ncells=0)
diff --git a/test/testdata/multi_v7_defconfig-gzipped.its b/test/testdata/multi_v7_defconfig-gzipped.its
index 1cb84fd415..0ae0e5b609 100644
--- a/test/testdata/multi_v7_defconfig-gzipped.its
+++ b/test/testdata/multi_v7_defconfig-gzipped.its
@@ -68,6 +68,7 @@
             fdt = "fdt-qemu-virt32.dtb";
             ramdisk = "ramdisk-1", "ramdisk-2", "ramdisk-3";
             compatible = "linux,dummy-virt";
+            cmdline = "fit.param";
             signature-1 {
                 algo = "sha256,rsa2048";
                 sign-images = "kernel", "fdt", "ramdisk";
diff --git a/test/testdata/multi_v8_defconfig-gzipped.its b/test/testdata/multi_v8_defconfig-gzipped.its
index 3786d0f121..2728c545d1 100644
--- a/test/testdata/multi_v8_defconfig-gzipped.its
+++ b/test/testdata/multi_v8_defconfig-gzipped.its
@@ -68,6 +68,7 @@
             fdt = "fdt-qemu-virt64.dtb";
             ramdisk = "ramdisk-1", "ramdisk-2", "ramdisk-3";
             compatible = "linux,dummy-virt";
+            cmdline = "fit.param";
             signature-1 {
                 algo = "sha256,rsa2048";
                 sign-images = "kernel", "fdt", "ramdisk";

-- 
2.55.0




  parent reply	other threads:[~2026-09-24 18:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24 17:59 [PATCH v2 0/3] FIT: parse and use the cmdline property of FIT images Thomas Bonnefille
2026-09-24 17:59 ` [PATCH v2 1/3] bootm: add fitimage command line to bootargs Thomas Bonnefille
2026-09-24 17:59 ` Thomas Bonnefille [this message]
2026-09-24 17:59 ` [PATCH v2 3/3] FIT: add cmdline to whitelist of non-hashed properties Thomas Bonnefille

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=20260924-add-cmdline-fitimage-v2-2-4a665e165002@bootlin.com \
    --to=thomas.bonnefille@bootlin.com \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=herve.codina@bootlin.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=s.hauer@pengutronix.de \
    --cc=thomas.petazzoni@bootlin.com \
    /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