From nobody Tue Feb 10 23:53:12 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770619905; cv=none; d=zohomail.com; s=zohoarc; b=NA2HDg6wMQ9C1nXi00PCsOMhIJjhWhDE1po6DWW9/ZyNZfMPBzNPzCDweIIeSVNKBppaGcdy/BSw52R+OPI+2PPgxeu4D7kTirDlL/+ZEYFbVvpuRyZPIPw7PHrxqf+1VlAftVIDD0dBfFWj3PJxB/G4IUJN0yjs3Kh5OpJcIVs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770619905; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=7F52/TWqPcU0bnghy6HMfsqTcH1NrXFJpSGb9WW08rs=; b=fN0ipV0I9G6eGmkJsQHKTCauoGEPbCEyvebw0GD0X2oygI+RxGuXJIDD8i8Afhajudpot+wkYZfgugal1L7kGCdmNOxCO7stptDY1UwIK/+Pkn3cma3nsyYVaswB/Wof3qnmrIHNjfIKfusJ3SW/FmalILFFbG1lhJzNl2MhMQw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770619905421608.7371707526763; Sun, 8 Feb 2026 22:51:45 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vpL6w-00047I-74; Mon, 09 Feb 2026 01:51:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vpL6t-00046p-TB for qemu-devel@nongnu.org; Mon, 09 Feb 2026 01:51:03 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vpL6r-0005EZ-Lm for qemu-devel@nongnu.org; Mon, 09 Feb 2026 01:51:03 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-287-AryQbmWJNBC-6Lws7s8J1A-1; Mon, 09 Feb 2026 01:50:57 -0500 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 18F6218003FC; Mon, 9 Feb 2026 06:50:55 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.73]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 647291956053; Mon, 9 Feb 2026 06:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770619860; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7F52/TWqPcU0bnghy6HMfsqTcH1NrXFJpSGb9WW08rs=; b=MUP1DzUEly55bHMCSj50s1DPa+XBL+c+jWxFGOTFSxE+TtRyL50GFF5BL6rjTmsXnJqh4h zGk2OOHE/bEO6dowUH+U4UgndqP/g5bzQvt7+m+lo0QXnZ+T8V335it3++h+2LqrZ7gwMG Fw7Cd7/i2mnsLDBDKGJuZT1z+vqPvX8= X-MC-Unique: AryQbmWJNBC-6Lws7s8J1A-1 X-Mimecast-MFC-AGG-ID: AryQbmWJNBC-6Lws7s8J1A_1770619855 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Thomas Huth , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH 1/2] tests/functional: Split Aspeed ARM tests into separate files Date: Mon, 9 Feb 2026 07:50:43 +0100 Message-ID: <20260209065044.239378-2-clg@redhat.com> In-Reply-To: <20260209065044.239378-1-clg@redhat.com> References: <20260209065044.239378-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1770619908417154100 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=C3=A9dric Le Goater --- tests/functional/arm/meson.build | 14 +++-- tests/functional/arm/test_aspeed_ast1060.py | 0 ...00.py =3D> 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 =3D> 100755 tests/functional/arm/test_aspeed_ast1060.py rename tests/functional/arm/{test_aspeed_ast2500.py =3D> test_aspeed_ast25= 00_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/meson.build b/tests/functional/arm/meson.= build index 1762a496049d..175a83a2acd7 100644 --- a/tests/functional/arm/meson.build +++ b/tests/functional/arm/meson.build @@ -4,9 +4,12 @@ test_arm_timeouts =3D { 'aspeed_palmetto' : 120, 'aspeed_romulus' : 120, 'aspeed_witherspoon' : 120, - 'aspeed_ast2500' : 720, - 'aspeed_ast2600_buildroot' : 720, - 'aspeed_ast2600_sdk' : 1200, + 'aspeed_ast2500_sdk' : 720, + 'aspeed_ast2500_buildroot' : 480, + 'aspeed_ast2600_buildroot' : 480, + 'aspeed_ast2600_buildroot_tpm' : 720, + 'aspeed_ast2600_sdk' : 720, + 'aspeed_ast2600_sdk_otp' : 720, 'aspeed_bletchley' : 480, 'aspeed_catalina' : 480, 'aspeed_gb200nvl_bmc' : 480, @@ -32,9 +35,12 @@ tests_arm_system_thorough =3D [ 'aspeed_palmetto', 'aspeed_romulus', 'aspeed_witherspoon', - 'aspeed_ast2500', + 'aspeed_ast2500_sdk', + 'aspeed_ast2500_buildroot', 'aspeed_ast2600_buildroot', + 'aspeed_ast2600_buildroot_tpm', 'aspeed_ast2600_sdk', + 'aspeed_ast2600_sdk_otp', 'aspeed_bletchley', 'aspeed_catalina', 'aspeed_gb200nvl_bmc', diff --git a/tests/functional/arm/test_aspeed_ast1060.py b/tests/functional= /arm/test_aspeed_ast1060.py old mode 100644 new mode 100755 diff --git a/tests/functional/arm/test_aspeed_ast2500.py b/tests/functional= /arm/test_aspeed_ast2500_buildroot.py similarity index 74% rename from tests/functional/arm/test_aspeed_ast2500.py rename to tests/functional/arm/test_aspeed_ast2500_buildroot.py index 5d75e20184d6..8196923ee04d 100755 --- a/tests/functional/arm/test_aspeed_ast2500.py +++ b/tests/functional/arm/test_aspeed_ast2500_buildroot.py @@ -37,20 +37,6 @@ def test_arm_ast2500_evb_buildroot(self): =20 self.do_test_arm_aspeed_buildroot_poweroff() =20 - ASSET_SDK_V1000_AST2500 =3D Asset( - 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v10.0= 0/ast2500-default-obmc.tar.gz', - '7d71a3f71d5f4d9f3451f59a73bf9baf8fd9f6a24107eb504a3216151a8b2b5b') - - def test_arm_ast2500_evb_sdk(self): - self.set_machine('ast2500-evb') - - self.archive_extract(self.ASSET_SDK_V1000_AST2500) - - self.do_test_arm_aspeed_sdk_start( - self.scratch_file("ast2500-default", "image-bmc")) - - self.wait_for_console_pattern('ast2500-default login:') - =20 if __name__ =3D=3D '__main__': AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2500_sdk.py b/tests/functi= onal/arm/test_aspeed_ast2500_sdk.py new file mode 100755 index 000000000000..2c9211aeddc8 --- /dev/null +++ b/tests/functional/arm/test_aspeed_ast2500_sdk.py @@ -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_V1000_AST2500 =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v10.0= 0/ast2500-default-obmc.tar.gz', + '7d71a3f71d5f4d9f3451f59a73bf9baf8fd9f6a24107eb504a3216151a8b2b5b') + + def test_arm_ast2500_evb_sdk(self): + self.set_machine('ast2500-evb') + + self.archive_extract(self.ASSET_SDK_V1000_AST2500) + + self.do_test_arm_aspeed_sdk_start( + self.scratch_file("ast2500-default", "image-bmc")) + + self.wait_for_console_pattern('ast2500-default login:') + + +if __name__ =3D=3D '__main__': + AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_buildroot.py b/tests/= functional/arm/test_aspeed_ast2600_buildroot.py index 3d130b9fd189..cc5ab9796a5e 100755 --- a/tests/functional/arm/test_aspeed_ast2600_buildroot.py +++ b/tests/functional/arm/test_aspeed_ast2600_buildroot.py @@ -11,7 +11,7 @@ =20 from aspeed import AspeedTest from qemu_test import Asset -from qemu_test import exec_command_and_wait_for_pattern, skipIfMissingComm= ands +from qemu_test import exec_command_and_wait_for_pattern =20 =20 class AST2600Machine(AspeedTest): @@ -61,45 +61,6 @@ def test_arm_ast2600_evb_buildroot(self): '0000000 ffaa ffff ffff ffff ffff ffff ffff ffff') self.do_test_arm_aspeed_buildroot_poweroff() =20 - ASSET_BR2_202302_AST2600_TPM_FLASH =3D Asset( - ('https://github.com/legoater/qemu-aspeed-boot/raw/master/' - 'images/ast2600-evb/buildroot-2023.02-tpm/flash.img'), - 'a46009ae8a5403a0826d607215e731a8c68d27c14c41e55331706b8f9c7bd997') - - def _test_arm_ast2600_evb_buildroot_tpm(self, tpmstate_dir): - image_path =3D self.ASSET_BR2_202302_AST2600_TPM_FLASH.fetch() - - socket =3D os.path.join(tpmstate_dir, 'swtpm-socket') - - # We must put the TPM state dir in /tmp/, not the build dir, - # because some distros use AppArmor to lock down swtpm and - # restrict the set of locations it can access files in. - subprocess.run(['swtpm', 'socket', '-d', '--tpm2', - '--tpmstate', f'dir=3D{tpmstate_dir}', - '--ctrl', f'type=3Dunixio,path=3D{socket}'], - check=3DTrue) - - self.vm.add_args('-chardev', f'socket,id=3Dchrtpm,path=3D{socket}') - self.vm.add_args('-tpmdev', 'emulator,id=3Dtpm0,chardev=3Dchrtpm') - self.vm.add_args('-device', - 'tpm-tis-i2c,tpmdev=3Dtpm0,bus=3Daspeed.i2c.bus.1= 2,address=3D0x2e') - self.do_test_arm_aspeed_buildroot_start(image_path, '0xf00', 'Aspe= ed AST2600 EVB') - - exec_command_and_wait_for_pattern(self, - 'echo tpm_tis_i2c 0x2e > /sys/bus/i2c/devices/i2c-12/new_devic= e', - 'tpm_tis_i2c 12-002e: 2.0 TPM (device-id 0x1, rev-id 1)') - exec_command_and_wait_for_pattern(self, - 'cat /sys/class/tpm/tpm0/pcr-sha256/0', - 'B804724EA13F52A9072BA87FE8FDCC497DFC9DF9AA15B9088694639C43168= 8E0') - - self.do_test_arm_aspeed_buildroot_poweroff() - - @skipIfMissingCommands('swtpm') - def test_arm_ast2600_evb_buildroot_tpm(self): - self.set_machine('ast2600-evb') - with tempfile.TemporaryDirectory(prefix=3D"qemu_") as tpmstate_dir: - self._test_arm_ast2600_evb_buildroot_tpm(tpmstate_dir) - =20 if __name__ =3D=3D '__main__': AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_buildroot_tpm.py b/te= sts/functional/arm/test_aspeed_ast2600_buildroot_tpm.py new file mode 100755 index 000000000000..7ec996e9cf22 --- /dev/null +++ b/tests/functional/arm/test_aspeed_ast2600_buildroot_tpm.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python3 +# +# Functional test that boots the ASPEED machines +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import os +import time +import tempfile +import subprocess + +from aspeed import AspeedTest +from qemu_test import Asset +from qemu_test import exec_command_and_wait_for_pattern, skipIfMissingComm= ands + + +class AST2600Machine(AspeedTest): + + ASSET_BR2_202302_AST2600_TPM_FLASH =3D Asset( + ('https://github.com/legoater/qemu-aspeed-boot/raw/master/' + 'images/ast2600-evb/buildroot-2023.02-tpm/flash.img'), + 'a46009ae8a5403a0826d607215e731a8c68d27c14c41e55331706b8f9c7bd997') + + def _test_arm_ast2600_evb_buildroot_tpm(self, tpmstate_dir): + image_path =3D self.ASSET_BR2_202302_AST2600_TPM_FLASH.fetch() + + socket =3D os.path.join(tpmstate_dir, 'swtpm-socket') + + # We must put the TPM state dir in /tmp/, not the build dir, + # because some distros use AppArmor to lock down swtpm and + # restrict the set of locations it can access files in. + subprocess.run(['swtpm', 'socket', '-d', '--tpm2', + '--tpmstate', f'dir=3D{tpmstate_dir}', + '--ctrl', f'type=3Dunixio,path=3D{socket}'], + check=3DTrue) + + self.vm.add_args('-chardev', f'socket,id=3Dchrtpm,path=3D{socket}') + self.vm.add_args('-tpmdev', 'emulator,id=3Dtpm0,chardev=3Dchrtpm') + self.vm.add_args('-device', + 'tpm-tis-i2c,tpmdev=3Dtpm0,bus=3Daspeed.i2c.bus.1= 2,address=3D0x2e') + self.do_test_arm_aspeed_buildroot_start(image_path, '0xf00', 'Aspe= ed AST2600 EVB') + + exec_command_and_wait_for_pattern(self, + 'echo tpm_tis_i2c 0x2e > /sys/bus/i2c/devices/i2c-12/new_devic= e', + 'tpm_tis_i2c 12-002e: 2.0 TPM (device-id 0x1, rev-id 1)') + exec_command_and_wait_for_pattern(self, + 'cat /sys/class/tpm/tpm0/pcr-sha256/0', + 'B804724EA13F52A9072BA87FE8FDCC497DFC9DF9AA15B9088694639C43168= 8E0') + + self.do_test_arm_aspeed_buildroot_poweroff() + + @skipIfMissingCommands('swtpm') + def test_arm_ast2600_evb_buildroot_tpm(self): + self.set_machine('ast2600-evb') + with tempfile.TemporaryDirectory(prefix=3D"qemu_") as tpmstate_dir: + self._test_arm_ast2600_evb_buildroot_tpm(tpmstate_dir) + + +if __name__ =3D=3D '__main__': + AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_sdk.py b/tests/functi= onal/arm/test_aspeed_ast2600_sdk.py index 3485feaf2c39..46b9f7058c08 100755 --- a/tests/functional/arm/test_aspeed_ast2600_sdk.py +++ b/tests/functional/arm/test_aspeed_ast2600_sdk.py @@ -82,21 +82,6 @@ def test_arm_ast2600_evb_sdk(self): self.do_ast2600_pcie_test() self.do_ast2600_i3c_test() =20 - def test_arm_ast2600_otp_blockdev_device(self): - self.vm.set_machine("ast2600-evb") - - image_path =3D self.archive_extract(self.ASSET_SDK_V1100_AST2600) - otp_img =3D self.generate_otpmem_image() - - self.vm.set_console() - self.vm.add_args( - "-blockdev", f"driver=3Dfile,filename=3D{otp_img},node-name=3D= otp", - "-global", "aspeed-otp.drive=3Dotp", - ) - self.do_test_arm_aspeed_sdk_start( - self.scratch_file("ast2600-default", "image-bmc")) - self.wait_for_console_pattern("ast2600-default login:") - =20 if __name__ =3D=3D '__main__': AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_sdk_otp.py b/tests/fu= nctional/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 =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.0= 0/ast2600-default-obmc.tar.gz', + '64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93') + + def test_arm_ast2600_otp_blockdev_device(self): + self.vm.set_machine("ast2600-evb") + + image_path =3D self.archive_extract(self.ASSET_SDK_V1100_AST2600) + otp_img =3D self.generate_otpmem_image() + + self.vm.set_console() + self.vm.add_args( + "-blockdev", f"driver=3Dfile,filename=3D{otp_img},node-name=3D= otp", + "-global", "aspeed-otp.drive=3Dotp", + ) + self.do_test_arm_aspeed_sdk_start( + self.scratch_file("ast2600-default", "image-bmc")) + self.wait_for_console_pattern("ast2600-default login:") + + +if __name__ =3D=3D '__main__': + AspeedTest.main() --=20 2.53.0 From nobody Tue Feb 10 23:53:12 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770619886; cv=none; d=zohomail.com; s=zohoarc; b=eJBUlRopbygvIXumMyodjooEeiKQULisQNfEJDzD3AX89pFw8QvLlZPwSM9y79nUDfTbY0XKTyf0MS9SsrckbARIo9WW8qrvHNojq1Ut8Y9dUT8/cXbK+7IUD1BoYzIcGWTMOSXB62VIymDKJJJAKqqArxpLLtLUpyUGGczM2tY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770619886; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dkQ1KMtOymei0+V2Zk4g+GU7YfwxNmhasIvLDwsBcz4=; b=UEznamOFWAXYMy72F1BcH6pIm58xZSCQk4zzi8OO3P6myDr9qU8Fq8vak5WNyxq2A3W/Z4IxG4FttXf/iE/bBxdRBggvANLeOInXG32cc6f5Un06Skjc7HCIFFykbmdzoaxCJBqKZmBu/8A2uuC3w54uld4Ay4QDUHfS7eJxHdo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770619886467439.7020207441201; Sun, 8 Feb 2026 22:51:26 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vpL6y-00048t-VB; Mon, 09 Feb 2026 01:51:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vpL6x-00047u-F0 for qemu-devel@nongnu.org; Mon, 09 Feb 2026 01:51:07 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vpL6v-0005Es-Pm for qemu-devel@nongnu.org; Mon, 09 Feb 2026 01:51:07 -0500 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-205-SqLhyOClMO2K1-hfCUmy_g-1; Mon, 09 Feb 2026 01:51:01 -0500 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 998C11956095; Mon, 9 Feb 2026 06:50:59 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.73]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C1A001956053; Mon, 9 Feb 2026 06:50:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770619864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dkQ1KMtOymei0+V2Zk4g+GU7YfwxNmhasIvLDwsBcz4=; b=HdyDNVoQQa4DyEwP2KTzITxyBJR996Jsu/lbQFl7oNbF7jOgHpCWqcgZe1jy1UWkHl0qPu Yr7+4RtSgRIpWFj7Q6lHPa1uuoO9996nKKW53wsmvnW/e1/vsmwbDuRzshNZlAiIpTxq7i gukQOSda4wxWFP5r3EdDliLxij5+xXc= X-MC-Unique: SqLhyOClMO2K1-hfCUmy_g-1 X-Mimecast-MFC-AGG-ID: SqLhyOClMO2K1-hfCUmy_g_1770619860 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , Thomas Huth , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH 2/2] tests/functional: Add SDK tests with Linux 5.15 Date: Mon, 9 Feb 2026 07:50:44 +0100 Message-ID: <20260209065044.239378-3-clg@redhat.com> In-Reply-To: <20260209065044.239378-1-clg@redhat.com> References: <20260209065044.239378-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1770619888555154100 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. Signed-off-by: C=C3=A9dric Le Goater --- tests/functional/arm/meson.build | 4 +++ .../arm/test_aspeed_ast2500_sdk_515.py | 29 +++++++++++++++++++ .../arm/test_aspeed_ast2600_sdk_515.py | 29 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100755 tests/functional/arm/test_aspeed_ast2500_sdk_515.py create mode 100755 tests/functional/arm/test_aspeed_ast2600_sdk_515.py diff --git a/tests/functional/arm/meson.build b/tests/functional/arm/meson.= build index 175a83a2acd7..2f538f29a2de 100644 --- a/tests/functional/arm/meson.build +++ b/tests/functional/arm/meson.build @@ -5,10 +5,12 @@ test_arm_timeouts =3D { '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 =3D [ '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/fu= nctional/arm/test_aspeed_ast2500_sdk_515.py new file mode 100755 index 000000000000..464a4e43961d --- /dev/null +++ b/tests/functional/arm/test_aspeed_ast2500_sdk_515.py @@ -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 =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.0= 0/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__ =3D=3D '__main__': + AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_sdk_515.py b/tests/fu= nctional/arm/test_aspeed_ast2600_sdk_515.py new file mode 100755 index 000000000000..f48da301d567 --- /dev/null +++ b/tests/functional/arm/test_aspeed_ast2600_sdk_515.py @@ -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 =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.0= 0/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__ =3D=3D '__main__': + AspeedTest.main() --=20 2.53.0