14007fc94SThomas Huth#!/usr/bin/env python3 24007fc94SThomas Huth# 34007fc94SThomas Huth# Functional test that boots known good tuxboot images the same way 44007fc94SThomas Huth# that tuxrun (www.tuxrun.org) does. This tool is used by things like 54007fc94SThomas Huth# the LKFT project to run regression tests on kernels. 64007fc94SThomas Huth# 74007fc94SThomas Huth# Copyright (c) 2023 Linaro Ltd. 84007fc94SThomas Huth# 94007fc94SThomas Huth# Author: 104007fc94SThomas Huth# Alex Bennée <alex.bennee@linaro.org> 114007fc94SThomas Huth# 124007fc94SThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later 134007fc94SThomas Huth 144007fc94SThomas Huthfrom qemu_test import Asset 154007fc94SThomas Huthfrom qemu_test.tuxruntest import TuxRunBaselineTest 164007fc94SThomas Huth 174007fc94SThomas Huthclass TuxRunI386Test(TuxRunBaselineTest): 184007fc94SThomas Huth 194007fc94SThomas Huth ASSET_I386_KERNEL = Asset( 20*24b49f72SAlex Bennée 'https://storage.tuxboot.com/buildroot/20241119/i386/bzImage', 21*24b49f72SAlex Bennée '47fb44e38e34101eb0f71a2a01742b959d40ed5fd67cefb5608a39be11d3b74e') 224007fc94SThomas Huth ASSET_I386_ROOTFS = Asset( 23*24b49f72SAlex Bennée 'https://storage.tuxboot.com/buildroot/20241119/i386/rootfs.ext4.zst', 24*24b49f72SAlex Bennée 'a1a3b3b4c9dccd6475b58db95c107b468b736b700f6620985a8ed050a73d51c8') 254007fc94SThomas Huth 264007fc94SThomas Huth def test_i386(self): 274007fc94SThomas Huth self.set_machine('q35') 284007fc94SThomas Huth self.cpu="coreduo" 294007fc94SThomas Huth self.wait_for_shutdown=False 304007fc94SThomas Huth self.common_tuxrun(kernel_asset=self.ASSET_I386_KERNEL, 314007fc94SThomas Huth rootfs_asset=self.ASSET_I386_ROOTFS, 324007fc94SThomas Huth drive="virtio-blk-pci") 334007fc94SThomas Huth 344007fc94SThomas Huthif __name__ == '__main__': 354007fc94SThomas Huth TuxRunBaselineTest.main() 36