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