1#!/usr/bin/env python3 2# 3# Functional test that boots known good tuxboot images the same way 4# that tuxrun (www.tuxrun.org) does. This tool is used by things like 5# the LKFT project to run regression tests on kernels. 6# 7# Copyright (c) 2023 Linaro Ltd. 8# 9# Author: 10# Alex Bennée <alex.bennee@linaro.org> 11# 12# SPDX-License-Identifier: GPL-2.0-or-later 13 14from qemu_test import Asset 15from qemu_test.tuxruntest import TuxRunBaselineTest 16 17class TuxRunMipsTest(TuxRunBaselineTest): 18 19 ASSET_MIPS_KERNEL = Asset( 20 'https://storage.tuxboot.com/20230331/mips32/vmlinux', 21 'bfd2172f8b17fb32970ca0c8c58f59c5a4ca38aa5855d920be3a69b5d16e52f0') 22 ASSET_MIPS_ROOTFS = Asset( 23 'https://storage.tuxboot.com/20230331/mips32/rootfs.ext4.zst', 24 'fc3da0b4c2f38d74c6d705123bb0f633c76ed953128f9d0859378c328a6d11a0') 25 26 def test_mips32(self): 27 self.set_machine('malta') 28 self.cpu="mips32r6-generic" 29 self.root="sda" 30 self.wait_for_shutdown=False 31 self.common_tuxrun(kernel_asset=self.ASSET_MIPS_KERNEL, 32 rootfs_asset=self.ASSET_MIPS_ROOTFS, 33 drive="driver=ide-hd,bus=ide.0,unit=0") 34 35if __name__ == '__main__': 36 TuxRunBaselineTest.main() 37