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