1*3058b634SCédric Le Goater#!/usr/bin/env python3 2*3058b634SCédric Le Goater# 3*3058b634SCédric Le Goater# Functional test that boots the ASPEED machines 4*3058b634SCédric Le Goater# 5*3058b634SCédric Le Goater# SPDX-License-Identifier: GPL-2.0-or-later 6*3058b634SCédric Le Goater 7*3058b634SCédric Le Goaterfrom qemu_test import Asset 8*3058b634SCédric Le Goaterfrom aspeed import AspeedTest 9*3058b634SCédric Le Goater 10*3058b634SCédric Le Goater 11*3058b634SCédric Le Goaterclass WitherspoonMachine(AspeedTest): 12*3058b634SCédric Le Goater 13*3058b634SCédric Le Goater ASSET_WITHERSPOON_FLASH = Asset( 14*3058b634SCédric Le Goater 'https://github.com/legoater/qemu-aspeed-boot/raw/master/images/witherspoon-bmc/openbmc-20240618035022/obmc-phosphor-image-witherspoon-20240618035022.ubi.mtd', 15*3058b634SCédric Le Goater '937d9ed449ea6c6cbed983519088a42d0cafe276bcfe4fce07772ca6673f9213'); 16*3058b634SCédric Le Goater 17*3058b634SCédric Le Goater def test_arm_ast2500_witherspoon_openbmc(self): 18*3058b634SCédric Le Goater image_path = self.ASSET_WITHERSPOON_FLASH.fetch() 19*3058b634SCédric Le Goater 20*3058b634SCédric Le Goater self.do_test_arm_aspeed_openbmc('witherspoon-bmc', image=image_path, 21*3058b634SCédric Le Goater uboot='2016.07', cpu_id='0x0', 22*3058b634SCédric Le Goater soc='AST2500 rev A1'); 23*3058b634SCédric Le Goater 24*3058b634SCédric Le Goaterif __name__ == '__main__': 25*3058b634SCédric Le Goater AspeedTest.main() 26