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