Skip to content

Commit 3a34dad

Browse files
edtanouslegoater
authored andcommitted
tests/functional: Add gb200 tests
To support the newly added gb200 machine, add appropriate tests and extend do_test_arm_aspeed_openbmc() to support the hostname of this new system: "gb200nvl-obmc". Signed-off-by: Ed Tanous <etanous@nvidia.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250703144249.3348879-5-etanous@nvidia.com [ clg: Adjust commit log to document do_test_arm_aspeed_openbmc() change ] Signed-off-by: Cédric Le Goater <clg@redhat.com>
1 parent becfaa1 commit 3a34dad

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

tests/functional/aspeed.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
class AspeedTest(LinuxKernelTest):
99

1010
def do_test_arm_aspeed_openbmc(self, machine, image, uboot='2019.04',
11-
cpu_id='0x0', soc='AST2500 rev A1'):
12-
hostname = machine.removesuffix('-bmc')
11+
cpu_id='0x0', soc='AST2500 rev A1',
12+
image_hostname=None):
13+
# Allow for the image hostname to not end in "-bmc"
14+
if image_hostname is not None:
15+
hostname = image_hostname
16+
else:
17+
hostname = machine.removesuffix('-bmc')
1318

1419
self.set_machine(machine)
1520
self.vm.set_console()

tests/functional/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ test_timeouts = {
3333
'arm_aspeed_ast2600' : 1200,
3434
'arm_aspeed_bletchley' : 480,
3535
'arm_aspeed_catalina' : 480,
36+
'arm_aspeed_gb200nvl_bmc' : 480,
3637
'arm_aspeed_rainier' : 480,
3738
'arm_bpim2u' : 500,
3839
'arm_collie' : 180,
@@ -129,6 +130,7 @@ tests_arm_system_thorough = [
129130
'arm_aspeed_ast2600',
130131
'arm_aspeed_bletchley',
131132
'arm_aspeed_catalina',
133+
'arm_aspeed_gb200nvl_bmc',
132134
'arm_aspeed_rainier',
133135
'arm_bpim2u',
134136
'arm_canona1100',
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env python3
2+
#
3+
# Functional test that boots the ASPEED machines
4+
#
5+
# SPDX-License-Identifier: GPL-2.0-or-later
6+
7+
from qemu_test import Asset
8+
from aspeed import AspeedTest
9+
10+
11+
class GB200Machine(AspeedTest):
12+
13+
ASSET_GB200_FLASH = Asset(
14+
'https://github.com/legoater/qemu-aspeed-boot/raw/refs/heads/master/images/gb200nvl-obmc/obmc-phosphor-image-gb200nvl-obmc-20250702182348.static.mtd.xz',
15+
'b84819317cb3dc762895ad507705978ef000bfc77c50c33a63bdd37921db0dbc')
16+
17+
def test_arm_aspeed_gb200_openbmc(self):
18+
image_path = self.uncompress(self.ASSET_GB200_FLASH)
19+
20+
self.do_test_arm_aspeed_openbmc('gb200nvl-bmc', image=image_path,
21+
uboot='2019.04', cpu_id='0xf00',
22+
soc='AST2600 rev A3',
23+
image_hostname='gb200nvl-obmc')
24+
25+
if __name__ == '__main__':
26+
AspeedTest.main()

0 commit comments

Comments
 (0)