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 TuxRunSparc64Test(TuxRunBaselineTest): 18 19 ASSET_SPARC64_KERNEL = Asset( 20 'https://storage.tuxboot.com/20230331/sparc64/vmlinux', 21 'e34313e4325ff21deaa3d38a502aa09a373ef62b9bd4d7f8f29388b688225c55') 22 ASSET_SPARC64_ROOTFS = Asset( 23 'https://storage.tuxboot.com/20230331/sparc64/rootfs.ext4.zst', 24 'ad2f1dc436ab51583543d25d2c210cab478645d47078d30d129a66ab0e281d76') 25 26 def test_sparc64(self): 27 self.root='sda' 28 self.wait_for_shutdown=False 29 self.common_tuxrun(kernel_asset=self.ASSET_SPARC64_KERNEL, 30 rootfs_asset=self.ASSET_SPARC64_ROOTFS, 31 drive="driver=ide-hd,bus=ide.0,unit=0") 32 33if __name__ == '__main__': 34 TuxRunBaselineTest.main() 35