| 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) 2024 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 TuxRunM68KTest(TuxRunBaselineTest): |
| 18 | |
| 19 | ASSET_M68K_KERNEL = Asset( |
| 20 | 'https://storage.tuxboot.com/buildroot/20241119/m68k/vmlinux', |
| 21 | '7754e1d5cec753ccf1dc6894729a7f54c1a4965631ebf56df8e4ce1163ad19d8') |
| 22 | ASSET_M68K_ROOTFS = Asset( |
| 23 | 'https://storage.tuxboot.com/buildroot/20241119/m68k/rootfs.ext4.zst', |
| 24 | '557962ffff265607912e82232cf21adbe0e4e5a88e1e1d411ce848c37f0213e9') |
| 25 | |
| 26 | def test_m68k(self): |
| 27 | self.set_machine('virt') |
| 28 | self.cpu="m68040" |
| 29 | self.common_tuxrun(kernel_asset=self.ASSET_M68K_KERNEL, |
| 30 | rootfs_asset=self.ASSET_M68K_ROOTFS, |
| 31 | drive="virtio-blk-device") |
| 32 | |
| 33 | if __name__ == '__main__': |
| 34 | TuxRunBaselineTest.main() |