master
py 37 lines 1.34 KB
Raw
1 #!/usr/bin/env python3
2 #
3 # Functional tests for the big-endian 64-bit MIPS Malta board
4 #
5 # SPDX-License-Identifier: GPL-2.0-or-later
6
7 from qemu_test import LinuxKernelTest, Asset
8 from qemu_test import skipFlakyTest
9 from mips.test_malta import mips_check_wheezy
10
11
12 class MaltaMachineConsole(LinuxKernelTest):
13
14 ASSET_WHEEZY_KERNEL = Asset(
15 ('https://people.debian.org/~aurel32/qemu/mips/'
16 'vmlinux-3.2.0-4-5kc-malta'),
17 '3e4ec154db080b3f1839f04dde83120654a33e5e1716863de576c47cb94f68f6')
18
19 ASSET_WHEEZY_DISK = Asset(
20 ('https://people.debian.org/~aurel32/qemu/mips/'
21 'debian_wheezy_mips_standard.qcow2'),
22 'de03599285b8382ad309309a6c4869f6c6c42a5cfc983342bab9ec0dfa7849a2')
23
24 @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/3109")
25 def test_wheezy(self):
26 kernel_path = self.ASSET_WHEEZY_KERNEL.fetch()
27 image_path = self.ASSET_WHEEZY_DISK.fetch()
28 kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE
29 + 'console=ttyS0 root=/dev/sda1')
30 mips_check_wheezy(self,
31 kernel_path, image_path, kernel_command_line, cpuinfo='MIPS 20Kc',
32 dl_file='/boot/initrd.img-3.2.0-4-5kc-malta',
33 hsum='d98b953bb4a41c0fc0fd8d19bbc691c08989ac52568c1d3054d92dfd890d3f06')
34
35
36 if __name__ == '__main__':
37 LinuxKernelTest.main()