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