187cab1aeSThomas Huth#!/usr/bin/env python3 287cab1aeSThomas Huth# 387cab1aeSThomas Huth# Functional test that boots known good tuxboot images the same way 487cab1aeSThomas Huth# that tuxrun (www.tuxrun.org) does. This tool is used by things like 587cab1aeSThomas Huth# the LKFT project to run regression tests on kernels. 687cab1aeSThomas Huth# 787cab1aeSThomas Huth# Copyright (c) 2023 Linaro Ltd. 887cab1aeSThomas Huth# 987cab1aeSThomas Huth# Author: 1087cab1aeSThomas Huth# Alex Bennée <alex.bennee@linaro.org> 1187cab1aeSThomas Huth# 1287cab1aeSThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later 1387cab1aeSThomas Huth 1487cab1aeSThomas Huthfrom qemu_test import Asset 1587cab1aeSThomas Huthfrom qemu_test.tuxruntest import TuxRunBaselineTest 1687cab1aeSThomas Huth 1787cab1aeSThomas Huthclass TuxRunMipsTest(TuxRunBaselineTest): 1887cab1aeSThomas Huth 1987cab1aeSThomas Huth ASSET_MIPS_KERNEL = Asset( 20*f273473dSAlex Bennée 'https://storage.tuxboot.com/buildroot/20241119/mips32/vmlinux', 21*f273473dSAlex Bennée 'b6f97fc698ae8c96456ad8c996c7454228074df0d7520dedd0a15e2913700a19') 2287cab1aeSThomas Huth ASSET_MIPS_ROOTFS = Asset( 23*f273473dSAlex Bennée 'https://storage.tuxboot.com/buildroot/20241119/mips32/rootfs.ext4.zst', 24*f273473dSAlex Bennée '87055cf3cbde3fd134e5039e7b87feb03231d8c4b21ee712b8ba3308dfa72f50') 2587cab1aeSThomas Huth 2687cab1aeSThomas Huth def test_mips32(self): 2787cab1aeSThomas Huth self.set_machine('malta') 2887cab1aeSThomas Huth self.cpu="mips32r6-generic" 2987cab1aeSThomas Huth self.root="sda" 3087cab1aeSThomas Huth self.wait_for_shutdown=False 3187cab1aeSThomas Huth self.common_tuxrun(kernel_asset=self.ASSET_MIPS_KERNEL, 3287cab1aeSThomas Huth rootfs_asset=self.ASSET_MIPS_ROOTFS, 3387cab1aeSThomas Huth drive="driver=ide-hd,bus=ide.0,unit=0") 3487cab1aeSThomas Huth 3587cab1aeSThomas Huthif __name__ == '__main__': 3687cab1aeSThomas Huth TuxRunBaselineTest.main() 37