]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: cmd/bdinfo: consider PPC architecture specific info
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 23 Nov 2025 22:57:09 +0000 (23:57 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 5 Dec 2025 14:54:44 +0000 (08:54 -0600)
On the power architecture the bdinfo command prints architecture specific
information. The test needs to accept these output lines.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
test/cmd/bdinfo.c

index ba8a33922370ee078e78f695720d6442ae31a8ec..2b4866a172ec2154b6db938eff10dc6017138c49 100644 (file)
@@ -218,6 +218,15 @@ static int bdinfo_test_all(struct unit_test_state *uts)
        }
 
        /* Check arch_print_bdinfo() output */
+       if (IS_ENABLED(CONFIG_PPC)) {
+               ut_check_console_linen(uts, "busfreq");
+               if (IS_ENABLED(CONFIG_MPC8xx) || IS_ENABLED(CONFIG_E500))
+                       ut_check_console_linen(uts, "immr_base");
+               ut_check_console_linen(uts, "bootflags");
+               ut_check_console_linen(uts, "intfreq");
+               ut_check_console_linen(uts, "addressing");
+       }
+
        if (IS_ENABLED(CONFIG_X86)) {
                ut_check_console_linen(uts, "prev table");
                ut_check_console_linen(uts, "clock_rate");