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