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