aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2025-01-29 08:18:16 +0100
committerCédric Le Goater <clg@redhat.com>2025-03-09 14:36:52 +0100
commitae139d6e9248526dcfe5d522061910509809a778 (patch)
tree0eb2db1c830f54d2522f105846040b5eb0639f7b /tests
parentd9a4282c4b690e45d25c2b933f318bb41eeb271d (diff)
downloadqemu-ae139d6e9248526dcfe5d522061910509809a778.zip
qemu-ae139d6e9248526dcfe5d522061910509809a778.tar.gz
qemu-ae139d6e9248526dcfe5d522061910509809a778.tar.bz2
tests/functional: Introduce a new test routine for OpenBMC images
The OpenBMC images currently used by QEMU to test the Aspeed machines are rather old. To prepare an update to the latest builds, we need to adjust the console patterns. Introduce a new routine to preserve the current tests. Reviewed-by: Thomas Huth <thuth@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250129071820.1258133-2-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/aspeed.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/functional/aspeed.py b/tests/functional/aspeed.py
index b52358b..ea75939 100644
--- a/tests/functional/aspeed.py
+++ b/tests/functional/aspeed.py
@@ -23,6 +23,24 @@ class AspeedTest(LinuxKernelTest):
self.wait_for_console_pattern("ftgmac100 1e660000.ethernet eth0: irq ")
self.wait_for_console_pattern("systemd[1]: Set hostname to")
+ def do_test_arm_aspeed_openbmc(self, machine, image, uboot='2019.04',
+ cpu_id='0x0', soc='AST2500 rev A1'):
+ hostname = machine.removesuffix('-bmc')
+
+ self.set_machine(machine)
+ self.vm.set_console()
+ self.vm.add_args('-drive', f'file={image},if=mtd,format=raw',
+ '-snapshot')
+ self.vm.launch()
+
+ self.wait_for_console_pattern(f'U-Boot {uboot}')
+ self.wait_for_console_pattern('## Loading kernel from FIT Image')
+ self.wait_for_console_pattern('Starting kernel ...')
+ self.wait_for_console_pattern(f'Booting Linux on physical CPU {cpu_id}')
+ self.wait_for_console_pattern(f'ASPEED {soc}')
+ self.wait_for_console_pattern('/init as init process')
+ self.wait_for_console_pattern(f'systemd[1]: Hostname set to <{hostname}>.')
+
def do_test_arm_aspeed_buildroot_start(self, image, cpu_id, pattern='Aspeed EVB'):
self.require_netdev('user')
self.vm.set_console()