153a62fdeSThomas Huth#!/usr/bin/env python3 253a62fdeSThomas Huth# 353a62fdeSThomas Huth# Boot a Linux kernel on a e500 ppc64 machine and check the console 453a62fdeSThomas Huth# 553a62fdeSThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later 653a62fdeSThomas Huth 753a62fdeSThomas Huthfrom qemu_test import LinuxKernelTest, Asset 853a62fdeSThomas Huthfrom qemu_test.utils import archive_extract 953a62fdeSThomas Huth 1053a62fdeSThomas Huthclass E500Test(LinuxKernelTest): 1153a62fdeSThomas Huth 1253a62fdeSThomas Huth ASSET_DAY19 = Asset( 13*67d76bdeSThomas Huth 'https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/day19.tar.xz', 1453a62fdeSThomas Huth '20b1bb5a8488c664defbb5d283addc91a05335a936c63b3f5ff7eee74b725755') 1553a62fdeSThomas Huth 1653a62fdeSThomas Huth def test_ppc64_e500(self): 1753a62fdeSThomas Huth self.set_machine('ppce500') 1853a62fdeSThomas Huth self.cpu = 'e5500' 1953a62fdeSThomas Huth file_path = self.ASSET_DAY19.fetch() 2053a62fdeSThomas Huth archive_extract(file_path, self.workdir) 2153a62fdeSThomas Huth self.launch_kernel(self.workdir + '/day19/uImage', 2253a62fdeSThomas Huth wait_for='QEMU advent calendar') 2353a62fdeSThomas Huth 2453a62fdeSThomas Huthif __name__ == '__main__': 2553a62fdeSThomas Huth LinuxKernelTest.main() 26