xref: /qemu/tests/functional/test_sparc_sun4m.py (revision ba182a693fe15a4f6f2a04e8ecb865c2630e5a16)
1f90527d3SThomas Huth#!/usr/bin/env python3
2f90527d3SThomas Huth#
3f90527d3SThomas Huth# Functional test that boots a Linux kernel on a sparc sun4m machine
4f90527d3SThomas Huth# and checks the console
5f90527d3SThomas Huth#
6f90527d3SThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later
7f90527d3SThomas Huth
8f90527d3SThomas Huthfrom qemu_test import LinuxKernelTest, Asset
9*5831ed84SDaniel P. Berrangé
10f90527d3SThomas Huth
11f90527d3SThomas Huthclass Sun4mTest(LinuxKernelTest):
12f90527d3SThomas Huth
13f90527d3SThomas Huth    ASSET_DAY11 = Asset(
1467d76bdeSThomas Huth        'https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/day11.tar.xz',
15f90527d3SThomas Huth        'c776533ba756bf4dd3f1fc4c024fb50ef0d853e05c5f5ddf0900a32d1eaa49e0')
16f90527d3SThomas Huth
17f90527d3SThomas Huth    def test_sparc_ss20(self):
18f90527d3SThomas Huth        self.set_machine('SS-20')
19*5831ed84SDaniel P. Berrangé        self.archive_extract(self.ASSET_DAY11)
20beaf88c8SDaniel P. Berrangé        self.launch_kernel(self.scratch_file('day11', 'zImage.elf'),
21f90527d3SThomas Huth                           wait_for='QEMU advent calendar')
22f90527d3SThomas Huth
23f90527d3SThomas Huthif __name__ == '__main__':
24f90527d3SThomas Huth    LinuxKernelTest.main()
25