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 14from qemu_test import Asset 15from qemu_test.tuxruntest import TuxRunBaselineTest 16 17class TuxRunI386Test(TuxRunBaselineTest): 18 19 ASSET_I386_KERNEL = Asset( 20 'https://storage.tuxboot.com/buildroot/20241119/i386/bzImage', 21 '47fb44e38e34101eb0f71a2a01742b959d40ed5fd67cefb5608a39be11d3b74e') 22 ASSET_I386_ROOTFS = Asset( 23 'https://storage.tuxboot.com/buildroot/20241119/i386/rootfs.ext4.zst', 24 'a1a3b3b4c9dccd6475b58db95c107b468b736b700f6620985a8ed050a73d51c8') 25 26 def test_i386(self): 27 self.set_machine('q35') 28 self.cpu="coreduo" 29 self.wait_for_shutdown=False 30 self.common_tuxrun(kernel_asset=self.ASSET_I386_KERNEL, 31 rootfs_asset=self.ASSET_I386_ROOTFS, 32 drive="virtio-blk-pci") 33 34if __name__ == '__main__': 35 TuxRunBaselineTest.main() 36