xref: /qemu/tests/functional/test_arm_aspeed_witherspoon.py (revision 55f5bf716a65f67663d0769bcb8c017764b3e53a)
13058b634SCédric Le Goater#!/usr/bin/env python3
23058b634SCédric Le Goater#
33058b634SCédric Le Goater# Functional test that boots the ASPEED machines
43058b634SCédric Le Goater#
53058b634SCédric Le Goater# SPDX-License-Identifier: GPL-2.0-or-later
63058b634SCédric Le Goater
73058b634SCédric Le Goaterfrom qemu_test import Asset
83058b634SCédric Le Goaterfrom aspeed import AspeedTest
93058b634SCédric Le Goater
103058b634SCédric Le Goater
113058b634SCédric Le Goaterclass WitherspoonMachine(AspeedTest):
123058b634SCédric Le Goater
133058b634SCédric Le Goater    ASSET_WITHERSPOON_FLASH = Asset(
143058b634SCé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*858640eaSThomas Huth        '937d9ed449ea6c6cbed983519088a42d0cafe276bcfe4fce07772ca6673f9213')
163058b634SCédric Le Goater
173058b634SCédric Le Goater    def test_arm_ast2500_witherspoon_openbmc(self):
183058b634SCédric Le Goater        image_path = self.ASSET_WITHERSPOON_FLASH.fetch()
193058b634SCédric Le Goater
203058b634SCédric Le Goater        self.do_test_arm_aspeed_openbmc('witherspoon-bmc', image=image_path,
213058b634SCédric Le Goater                                        uboot='2016.07', cpu_id='0x0',
22*858640eaSThomas Huth                                        soc='AST2500 rev A1')
233058b634SCédric Le Goater
243058b634SCédric Le Goaterif __name__ == '__main__':
253058b634SCédric Le Goater    AspeedTest.main()
26