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