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 <[email protected]> --- 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
