xref: /openbmc/qemu/tests/functional/test_arm_aspeed_romulus.py (revision e1dbd26424b9f9f59471d930ca4e933ad0b43528)
1*e1dbd264SCédric Le Goater#!/usr/bin/env python3
2*e1dbd264SCédric Le Goater#
3*e1dbd264SCédric Le Goater# Functional test that boots the ASPEED machines
4*e1dbd264SCédric Le Goater#
5*e1dbd264SCédric Le Goater# SPDX-License-Identifier: GPL-2.0-or-later
6*e1dbd264SCédric Le Goater
7*e1dbd264SCédric Le Goaterfrom qemu_test import Asset
8*e1dbd264SCédric Le Goaterfrom aspeed import AspeedTest
9*e1dbd264SCédric Le Goater
10*e1dbd264SCédric Le Goaterclass RomulusMachine(AspeedTest):
11*e1dbd264SCédric Le Goater
12*e1dbd264SCédric Le Goater    ASSET_ROMULUS_FLASH = Asset(
13*e1dbd264SCédric Le Goater        ('https://github.com/openbmc/openbmc/releases/download/2.9.0/'
14*e1dbd264SCédric Le Goater         'obmc-phosphor-image-romulus.static.mtd'),
15*e1dbd264SCédric Le Goater        '820341076803f1955bc31e647a512c79f9add4f5233d0697678bab4604c7bb25')
16*e1dbd264SCédric Le Goater
17*e1dbd264SCédric Le Goater    def test_arm_ast2500_romulus_openbmc_v2_9_0(self):
18*e1dbd264SCédric Le Goater        image_path = self.ASSET_ROMULUS_FLASH.fetch()
19*e1dbd264SCédric Le Goater
20*e1dbd264SCédric Le Goater        self.do_test_arm_aspeed('romulus-bmc', image_path)
21*e1dbd264SCédric Le Goater
22*e1dbd264SCédric Le Goater
23*e1dbd264SCédric Le Goaterif __name__ == '__main__':
24*e1dbd264SCédric Le Goater    AspeedTest.main()
25