master
py 59 lines 2.29 KB
Raw
1 #!/usr/bin/env python3
2 #
3 # Replay tests for the little-endian 64-bit MIPS Malta board
4 #
5 # SPDX-License-Identifier: GPL-2.0-or-later
6
7 from qemu_test import Asset, skipUntrustedTest
8 from qemu_test import skipFlakyTest
9 from replay_kernel import ReplayKernelBase
10
11
12 class Mips64elReplay(ReplayKernelBase):
13
14 ASSET_KERNEL_2_63_2 = Asset(
15 ('http://snapshot.debian.org/archive/debian/'
16 '20130217T032700Z/pool/main/l/linux-2.6/'
17 'linux-image-2.6.32-5-5kc-malta_2.6.32-48_mipsel.deb'),
18 '35eb476f03be589824b0310358f1c447d85e645b88cbcd2ac02b97ef560f9f8d')
19
20 @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/2013")
21 def test_replay_mips64el_malta(self):
22 self.set_machine('malta')
23 kernel_path = self.archive_extract(self.ASSET_KERNEL_2_63_2,
24 member='boot/vmlinux-2.6.32-5-5kc-malta')
25 kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0'
26 console_pattern = f'Kernel command line: {kernel_command_line}'
27 self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5)
28
29
30 ASSET_KERNEL_3_19_3 = Asset(
31 ('https://github.com/philmd/qemu-testing-blob/'
32 'raw/9ad2df38/mips/malta/mips64el/'
33 'vmlinux-3.19.3.mtoman.20150408'),
34 '8d3beb003bc66051ead98e7172139017fcf9ce2172576541c57e86418dfa5ab8')
35
36 ASSET_CPIO_R1 = Asset(
37 ('https://github.com/groeck/linux-build-test/'
38 'raw/8584a59e/rootfs/mipsel64/'
39 'rootfs.mipsel64r1.cpio.gz'),
40 '75ba10cd35fb44e32948eeb26974f061b703c81c4ba2fab1ebcacf1d1bec3b61')
41
42 @skipUntrustedTest()
43 @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/2013")
44 def test_replay_mips64el_malta_5kec_cpio(self):
45 self.set_machine('malta')
46 self.cpu = '5KEc'
47 kernel_path = self.ASSET_KERNEL_3_19_3.fetch()
48 initrd_path = self.uncompress(self.ASSET_CPIO_R1)
49
50 kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
51 'console=ttyS0 console=tty '
52 'rdinit=/sbin/init noreboot')
53 console_pattern = 'Boot successful.'
54 self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5,
55 args=('-initrd', initrd_path))
56
57
58 if __name__ == '__main__':
59 ReplayKernelBase.main()