+ Kane,
On 2/9/26 07:50, Cédric Le Goater wrote:
Reorganize the monolithic Aspeed functional test files into separate
files based on firmware type (Buildroot vs SDK) and specific test
scenarios. This allows the test suite to run tests in parallel more
effectively and makes it easier to identify and run specific test
scenarios independently.
Signed-off-by: Cédric Le Goater <[email protected]>
---
tests/functional/arm/meson.build | 14 +++--
tests/functional/arm/test_aspeed_ast1060.py | 0
...00.py => test_aspeed_ast2500_buildroot.py} | 14 -----
.../functional/arm/test_aspeed_ast2500_sdk.py | 29 +++++++++
.../arm/test_aspeed_ast2600_buildroot.py | 41 +------------
.../arm/test_aspeed_ast2600_buildroot_tpm.py | 60 +++++++++++++++++++
.../functional/arm/test_aspeed_ast2600_sdk.py | 15 -----
.../arm/test_aspeed_ast2600_sdk_otp.py | 34 +++++++++++
8 files changed, 134 insertions(+), 73 deletions(-)
mode change 100644 => 100755 tests/functional/arm/test_aspeed_ast1060.py
rename tests/functional/arm/{test_aspeed_ast2500.py =>
test_aspeed_ast2500_buildroot.py} (74%)
create mode 100755 tests/functional/arm/test_aspeed_ast2500_sdk.py
create mode 100755 tests/functional/arm/test_aspeed_ast2600_buildroot_tpm.py
create mode 100755 tests/functional/arm/test_aspeed_ast2600_sdk_otp.py
[ ... ]
diff --git a/tests/functional/arm/test_aspeed_ast2600_sdk_otp.py
b/tests/functional/arm/test_aspeed_ast2600_sdk_otp.py
new file mode 100755
index 000000000000..4066532d5dec
--- /dev/null
+++ b/tests/functional/arm/test_aspeed_ast2600_sdk_otp.py
@@ -0,0 +1,34 @@
+#!/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 = Asset(
+
'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-obmc.tar.gz',
+ '64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93')
+
+ def test_arm_ast2600_otp_blockdev_device(self):
+ self.vm.set_machine("ast2600-evb")
+
+ image_path = self.archive_extract(self.ASSET_SDK_V1100_AST2600)
+ otp_img = self.generate_otpmem_image()
+
+ self.vm.set_console()
+ self.vm.add_args(
+ "-blockdev", f"driver=file,filename={otp_img},node-name=otp",
+ "-global", "aspeed-otp.drive=otp",
+ )
+ self.do_test_arm_aspeed_sdk_start(
+ self.scratch_file("ast2600-default", "image-bmc"))
+ self.wait_for_console_pattern("ast2600-default login:")
+
+
+if __name__ == '__main__':
+ AspeedTest.main()
Kane,
This test doesn't add much compared to the sdk boot. Is it possible
to extend to exercise the OTP feature ?
Thanks,
C.