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 9f90527d3SThomas Huthfrom qemu_test.utils import archive_extract 10f90527d3SThomas Huth 11f90527d3SThomas Huthclass Sun4mTest(LinuxKernelTest): 12f90527d3SThomas Huth 13f90527d3SThomas Huth ASSET_DAY11 = Asset( 14*67d76bdeSThomas 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') 19f90527d3SThomas Huth file_path = self.ASSET_DAY11.fetch() 20f90527d3SThomas Huth archive_extract(file_path, self.workdir) 21f90527d3SThomas Huth self.launch_kernel(self.workdir + '/day11/zImage.elf', 22f90527d3SThomas Huth wait_for='QEMU advent calendar') 23f90527d3SThomas Huth 24f90527d3SThomas Huthif __name__ == '__main__': 25f90527d3SThomas Huth LinuxKernelTest.main() 26