xref: /qemu/tests/functional/test_mips64_malta.py (revision 55f5bf716a65f67663d0769bcb8c017764b3e53a)
1*f79592f4SThomas Huth#!/usr/bin/env python3
2*f79592f4SThomas Huth#
3*f79592f4SThomas Huth# Functional tests for the big-endian 64-bit MIPS Malta board
4*f79592f4SThomas Huth#
5*f79592f4SThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later
6*f79592f4SThomas Huth
7*f79592f4SThomas Huthfrom qemu_test import LinuxKernelTest, Asset
8*f79592f4SThomas Huthfrom test_mips_malta import mips_check_wheezy
9*f79592f4SThomas Huth
10*f79592f4SThomas Huth
11*f79592f4SThomas Huthclass MaltaMachineConsole(LinuxKernelTest):
12*f79592f4SThomas Huth
13*f79592f4SThomas Huth    ASSET_WHEEZY_KERNEL = Asset(
14*f79592f4SThomas Huth        ('https://people.debian.org/~aurel32/qemu/mips/'
15*f79592f4SThomas Huth         'vmlinux-3.2.0-4-5kc-malta'),
16*f79592f4SThomas Huth        '3e4ec154db080b3f1839f04dde83120654a33e5e1716863de576c47cb94f68f6')
17*f79592f4SThomas Huth
18*f79592f4SThomas Huth    ASSET_WHEEZY_DISK = Asset(
19*f79592f4SThomas Huth        ('https://people.debian.org/~aurel32/qemu/mips/'
20*f79592f4SThomas Huth         'debian_wheezy_mips_standard.qcow2'),
21*f79592f4SThomas Huth        'de03599285b8382ad309309a6c4869f6c6c42a5cfc983342bab9ec0dfa7849a2')
22*f79592f4SThomas Huth
23*f79592f4SThomas Huth    def test_wheezy(self):
24*f79592f4SThomas Huth        kernel_path = self.ASSET_WHEEZY_KERNEL.fetch()
25*f79592f4SThomas Huth        image_path = self.ASSET_WHEEZY_DISK.fetch()
26*f79592f4SThomas Huth        kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE
27*f79592f4SThomas Huth                               + 'console=ttyS0 root=/dev/sda1')
28*f79592f4SThomas Huth        mips_check_wheezy(self,
29*f79592f4SThomas Huth            kernel_path, image_path, kernel_command_line, cpuinfo='MIPS 20Kc',
30*f79592f4SThomas Huth            dl_file='/boot/initrd.img-3.2.0-4-5kc-malta',
31*f79592f4SThomas Huth            hsum='d98b953bb4a41c0fc0fd8d19bbc691c08989ac52568c1d3054d92dfd890d3f06')
32*f79592f4SThomas Huth
33*f79592f4SThomas Huth
34*f79592f4SThomas Huthif __name__ == '__main__':
35*f79592f4SThomas Huth    LinuxKernelTest.main()
36