[PATCH 17/19] test: cmd/bdinfo: consider PPC architecture specific info

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Nov 23 23:57:09 CET 2025


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 at canonical.com>
---
 test/cmd/bdinfo.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/cmd/bdinfo.c b/test/cmd/bdinfo.c
index ba8a3392237..2b4866a172e 100644
--- a/test/cmd/bdinfo.c
+++ b/test/cmd/bdinfo.c
@@ -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");
-- 
2.51.0



More information about the U-Boot mailing list