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 TuxRunX86Test(TuxRunBaselineTest): 18 19 ASSET_X86_64_KERNEL = Asset( 20 'https://storage.tuxboot.com/20230331/x86_64/bzImage', 21 '2bc7480a669ee9b6b82500a236aba0c54233debe98cb968268fa230f52f03461') 22 ASSET_X86_64_ROOTFS = Asset( 23 'https://storage.tuxboot.com/20230331/x86_64/rootfs.ext4.zst', 24 'b72ac729769b8f51c6dffb221113c9a063c774dbe1d66af30eb593c4e9999b4b') 25 26 def test_x86_64(self): 27 self.set_machine('q35') 28 self.cpu="Nehalem" 29 self.root='sda' 30 self.wait_for_shutdown=False 31 self.common_tuxrun(kernel_asset=self.ASSET_X86_64_KERNEL, 32 rootfs_asset=self.ASSET_X86_64_ROOTFS, 33 drive="driver=ide-hd,bus=ide.0,unit=0") 34 35if __name__ == '__main__': 36 TuxRunBaselineTest.main() 37