]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional: Add SDK tests with Linux 5.15
authorCédric Le Goater <clg@redhat.com>
Mon, 9 Feb 2026 06:50:44 +0000 (07:50 +0100)
committerCédric Le Goater <clg@redhat.com>
Thu, 12 Feb 2026 15:06:55 +0000 (16:06 +0100)
Add functional tests for AST2500 and AST2600 machines using the
OpenBMC SDK v11.00 with Linux kernel 5.15. These tests complement the
existing SDK tests and verify that QEMU correctly boots older kernel
versions on these platforms.

Link: https://lore.kernel.org/qemu-devel/20260209065044.239378-3-clg@redhat.com
Reviewed-by: Kane Chen <kane_chen@aspeedtech.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
tests/functional/arm/meson.build
tests/functional/arm/test_aspeed_ast2500_sdk_515.py [new file with mode: 0755]
tests/functional/arm/test_aspeed_ast2600_sdk_515.py [new file with mode: 0755]

index 175a83a2acd7e145a807a5c33eac40424770d3a7..2f538f29a2decdd6c3b0906bb4e9bf93b340bc5a 100644 (file)
@@ -5,10 +5,12 @@ test_arm_timeouts = {
   'aspeed_romulus' : 120,
   'aspeed_witherspoon' : 120,
   'aspeed_ast2500_sdk' : 720,
+  'aspeed_ast2500_sdk_515' : 720,
   'aspeed_ast2500_buildroot' : 480,
   'aspeed_ast2600_buildroot' : 480,
   'aspeed_ast2600_buildroot_tpm' : 720,
   'aspeed_ast2600_sdk' : 720,
+  'aspeed_ast2600_sdk_515' : 720,
   'aspeed_ast2600_sdk_otp' : 720,
   'aspeed_bletchley' : 480,
   'aspeed_catalina' : 480,
@@ -36,10 +38,12 @@ tests_arm_system_thorough = [
   'aspeed_romulus',
   'aspeed_witherspoon',
   'aspeed_ast2500_sdk',
+  'aspeed_ast2500_sdk_515',
   'aspeed_ast2500_buildroot',
   'aspeed_ast2600_buildroot',
   'aspeed_ast2600_buildroot_tpm',
   'aspeed_ast2600_sdk',
+  'aspeed_ast2600_sdk_515',
   'aspeed_ast2600_sdk_otp',
   'aspeed_bletchley',
   'aspeed_catalina',
diff --git a/tests/functional/arm/test_aspeed_ast2500_sdk_515.py b/tests/functional/arm/test_aspeed_ast2500_sdk_515.py
new file mode 100755 (executable)
index 0000000..464a4e4
--- /dev/null
@@ -0,0 +1,29 @@
+#!/usr/bin/env python3
+#
+# Functional test that boots the ASPEED machines
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+from qemu_test import Asset
+from aspeed import AspeedTest
+
+
+class AST2500Machine(AspeedTest):
+
+    ASSET_SDK_V1100_AST2500_515 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2500-default-515-obmc.tar.gz',
+        '5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451')
+
+    def test_arm_ast2500_evb_sdk_515(self):
+        self.set_machine('ast2500-evb')
+
+        self.archive_extract(self.ASSET_SDK_V1100_AST2500_515)
+
+        self.do_test_arm_aspeed_sdk_start(
+            self.scratch_file("ast2500-default-515", "image-bmc"))
+
+        self.wait_for_console_pattern('ast2500-default-515 login:')
+
+
+if __name__ == '__main__':
+    AspeedTest.main()
diff --git a/tests/functional/arm/test_aspeed_ast2600_sdk_515.py b/tests/functional/arm/test_aspeed_ast2600_sdk_515.py
new file mode 100755 (executable)
index 0000000..f48da30
--- /dev/null
@@ -0,0 +1,29 @@
+#!/usr/bin/env python3
+#
+# Functional test that boots the ASPEED machines
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+from qemu_test import Asset
+from aspeed import AspeedTest
+
+
+class AST2600Machine(AspeedTest):
+
+    ASSET_SDK_V1100_AST2600_515 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-515-obmc.tar.gz',
+        'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6')
+
+    def test_arm_ast2600_evb_sdk_515(self):
+        self.set_machine('ast2600-evb')
+
+        self.archive_extract(self.ASSET_SDK_V1100_AST2600_515)
+
+        self.do_test_arm_aspeed_sdk_start(
+            self.scratch_file("ast2600-default-515", "image-bmc"))
+
+        self.wait_for_console_pattern('ast2600-default-515 login:')
+
+
+if __name__ == '__main__':
+    AspeedTest.main()