tests/functional/aarch64/ast2700fc: Add vbootrom test

Add start_ast2700fc_test_vbootrom() which boots the ast2700fc machine
with -bios ast27x0_bootrom.bin and reuses the coprocessor loader.

Add test_aarch64_ast2700fc_sdk_vbootrom_v09_08() to test the vbootrom
with ast2700fc machine.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20251015062210.3128710-13-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
Jamin Lin 2025-10-15 14:22:07 +08:00 committed by Cédric Le Goater
parent 7c77c48e82
commit d187d120d1

View file

@ -138,6 +138,12 @@ class AST2x00MachineSDK(QemuSystemTest):
self.do_test_aarch64_aspeed_sdk_start(
self.scratch_file(name, 'image-bmc'))
def start_ast2700fc_test_vbootrom(self, name):
self.vm.add_args('-bios', 'ast27x0_bootrom.bin')
self.load_ast2700fc_coprocessor(name)
self.do_test_aarch64_aspeed_sdk_start(
self.scratch_file(name, 'image-bmc'))
def test_aarch64_ast2700fc_sdk_v09_08(self):
self.set_machine('ast2700fc')
self.require_netdev('user')
@ -150,5 +156,14 @@ class AST2x00MachineSDK(QemuSystemTest):
self.do_ast2700fc_ssp_test()
self.do_ast2700fc_tsp_test()
def test_aarch64_ast2700fc_sdk_vbootrom_v09_08(self):
self.set_machine('ast2700fc')
self.archive_extract(self.ASSET_SDK_V908_AST2700)
self.start_ast2700fc_test_vbootrom('ast2700-default')
self.verify_openbmc_boot_and_login('ast2700-default')
self.do_ast2700fc_ssp_test()
self.do_ast2700fc_tsp_test()
if __name__ == '__main__':
QemuSystemTest.main()