master
py 26 lines 886 Bytes
Raw
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
8 from qemu_test import LinuxKernelTest, Asset
9
10
11 class VExpressTest(LinuxKernelTest):
12
13 ASSET_DAY16 = Asset(
14 'https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/day16.tar.xz',
15 '63311adb2d4c4e7a73214a86d29988add87266a909719c56acfadd026b4110a7')
16
17 def test_arm_vexpressa9(self):
18 self.set_machine('vexpress-a9')
19 self.archive_extract(self.ASSET_DAY16)
20 self.launch_kernel(self.scratch_file('day16', 'winter.zImage'),
21 dtb=self.scratch_file('day16',
22 'vexpress-v2p-ca9.dtb'),
23 wait_for='QEMU advent calendar')
24
25 if __name__ == '__main__':
26 LinuxKernelTest.main()