1#!/usr/bin/env python3 2# 3# Boot a Linux kernel on a e500 ppc64 machine and check the console 4# 5# SPDX-License-Identifier: GPL-2.0-or-later 6 7from qemu_test import LinuxKernelTest, Asset 8from qemu_test.utils import archive_extract 9 10class E500Test(LinuxKernelTest): 11 12 ASSET_DAY19 = Asset( 13 'https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/day19.tar.xz', 14 '20b1bb5a8488c664defbb5d283addc91a05335a936c63b3f5ff7eee74b725755') 15 16 def test_ppc64_e500(self): 17 self.set_machine('ppce500') 18 self.cpu = 'e5500' 19 file_path = self.ASSET_DAY19.fetch() 20 archive_extract(file_path, self.workdir) 21 self.launch_kernel(self.workdir + '/day19/uImage', 22 wait_for='QEMU advent calendar') 23 24if __name__ == '__main__': 25 LinuxKernelTest.main() 26