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