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 7from qemu_test import LinuxKernelTest, Asset 8from test_mips_malta import mips_check_wheezy 9 10 11class MaltaMachineConsole(LinuxKernelTest): 12 13 ASSET_WHEEZY_KERNEL = Asset( 14 ('https://people.debian.org/~aurel32/qemu/mips/' 15 'vmlinux-3.2.0-4-5kc-malta'), 16 '3e4ec154db080b3f1839f04dde83120654a33e5e1716863de576c47cb94f68f6') 17 18 ASSET_WHEEZY_DISK = Asset( 19 ('https://people.debian.org/~aurel32/qemu/mips/' 20 'debian_wheezy_mips_standard.qcow2'), 21 'de03599285b8382ad309309a6c4869f6c6c42a5cfc983342bab9ec0dfa7849a2') 22 23 def test_wheezy(self): 24 kernel_path = self.ASSET_WHEEZY_KERNEL.fetch() 25 image_path = self.ASSET_WHEEZY_DISK.fetch() 26 kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE 27 + 'console=ttyS0 root=/dev/sda1') 28 mips_check_wheezy(self, 29 kernel_path, image_path, kernel_command_line, cpuinfo='MIPS 20Kc', 30 dl_file='/boot/initrd.img-3.2.0-4-5kc-malta', 31 hsum='d98b953bb4a41c0fc0fd8d19bbc691c08989ac52568c1d3054d92dfd890d3f06') 32 33 34if __name__ == '__main__': 35 LinuxKernelTest.main() 36