19ca8239aSThomas Huth#!/usr/bin/env python3 29ca8239aSThomas Huth# 39ca8239aSThomas Huth# Functional test that boots known good tuxboot images the same way 49ca8239aSThomas Huth# that tuxrun (www.tuxrun.org) does. This tool is used by things like 59ca8239aSThomas Huth# the LKFT project to run regression tests on kernels. 69ca8239aSThomas Huth# 79ca8239aSThomas Huth# Copyright (c) 2023 Linaro Ltd. 89ca8239aSThomas Huth# 99ca8239aSThomas Huth# Author: 109ca8239aSThomas Huth# Alex Bennée <alex.bennee@linaro.org> 119ca8239aSThomas Huth# 129ca8239aSThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later 139ca8239aSThomas Huth 149ca8239aSThomas Huthfrom qemu_test import Asset 159ca8239aSThomas Huthfrom qemu_test.tuxruntest import TuxRunBaselineTest 169ca8239aSThomas Huth 179ca8239aSThomas Huthclass TuxRunPPC32Test(TuxRunBaselineTest): 189ca8239aSThomas Huth 199ca8239aSThomas Huth ASSET_PPC32_KERNEL = Asset( 20*dfcab187SAlex Bennée 'https://storage.tuxboot.com/buildroot/20241119/ppc32/uImage', 21*dfcab187SAlex Bennée 'aa5d81deabdb255a318c4bc5ffd6fdd2b5da1ef39f1955dcc35b671d258b68e9') 229ca8239aSThomas Huth ASSET_PPC32_ROOTFS = Asset( 23*dfcab187SAlex Bennée 'https://storage.tuxboot.com/buildroot/20241119/ppc32/rootfs.ext4.zst', 24*dfcab187SAlex Bennée '67554f830269d6bf53b67c7dd206bcc821e463993d526b1644066fea8117019b') 259ca8239aSThomas Huth 269ca8239aSThomas Huth def test_ppc32(self): 279ca8239aSThomas Huth self.set_machine('ppce500') 289ca8239aSThomas Huth self.cpu='e500mc' 299ca8239aSThomas Huth self.wait_for_shutdown=False 309ca8239aSThomas Huth self.common_tuxrun(kernel_asset=self.ASSET_PPC32_KERNEL, 319ca8239aSThomas Huth rootfs_asset=self.ASSET_PPC32_ROOTFS, 329ca8239aSThomas Huth drive="virtio-blk-pci") 339ca8239aSThomas Huth 349ca8239aSThomas Huthif __name__ == '__main__': 359ca8239aSThomas Huth TuxRunBaselineTest.main() 36