1c3cff727SThomas Huth#!/usr/bin/env python3 2c3cff727SThomas Huth# 3c3cff727SThomas Huth# Functional test that boots a Linux kernel on an versatile express machine 4c3cff727SThomas Huth# and checks the console 5c3cff727SThomas Huth# 6c3cff727SThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later 7c3cff727SThomas Huth 8c3cff727SThomas Huthfrom qemu_test import LinuxKernelTest, Asset 9c3cff727SThomas Huthfrom qemu_test.utils import archive_extract 10c3cff727SThomas Huth 11c3cff727SThomas Huthclass VExpressTest(LinuxKernelTest): 12c3cff727SThomas Huth 13c3cff727SThomas Huth ASSET_DAY16 = Asset( 14*67d76bdeSThomas Huth 'https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/day16.tar.xz', 15c3cff727SThomas Huth '63311adb2d4c4e7a73214a86d29988add87266a909719c56acfadd026b4110a7') 16c3cff727SThomas Huth 17c3cff727SThomas Huth def test_arm_vexpressa9(self): 18c3cff727SThomas Huth self.set_machine('vexpress-a9') 19c3cff727SThomas Huth file_path = self.ASSET_DAY16.fetch() 20c3cff727SThomas Huth archive_extract(file_path, self.workdir) 21c3cff727SThomas Huth self.launch_kernel(self.workdir + '/day16/winter.zImage', 22c3cff727SThomas Huth dtb=self.workdir + '/day16/vexpress-v2p-ca9.dtb', 23c3cff727SThomas Huth wait_for='QEMU advent calendar') 24c3cff727SThomas Huth 25c3cff727SThomas Huthif __name__ == '__main__': 26c3cff727SThomas Huth LinuxKernelTest.main() 27