xref: /qemu/tests/functional/test_ppc64_e500.py (revision 5831ed84e7e450a652f215721aba34ed4e1ffb97)
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
8*5831ed84SDaniel P. Berrangé
953a62fdeSThomas Huth
1053a62fdeSThomas Huthclass E500Test(LinuxKernelTest):
1153a62fdeSThomas Huth
1253a62fdeSThomas Huth    ASSET_DAY19 = Asset(
1367d76bdeSThomas 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'
19*5831ed84SDaniel P. Berrangé        self.archive_extract(self.ASSET_DAY19)
20beaf88c8SDaniel P. Berrangé        self.launch_kernel(self.scratch_file('day19', 'uImage'),
2153a62fdeSThomas Huth                           wait_for='QEMU advent calendar')
2253a62fdeSThomas Huth
2353a62fdeSThomas Huthif __name__ == '__main__':
2453a62fdeSThomas Huth    LinuxKernelTest.main()
25