diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-08-19 13:23:42 +0200 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2025-08-27 09:46:55 +0200 |
| commit | 96ced85b0c5664426518ad43f0e423092fbee933 (patch) | |
| tree | f4d97948d5beef295c6e354da96a62e0d05d4226 /tests/functional/aarch64/test_raspi3.py | |
| parent | 9c9efb1e36ddb2e636c7f6aafda49cddaee88a0c (diff) | |
| download | focaccia-qemu-96ced85b0c5664426518ad43f0e423092fbee933.tar.gz focaccia-qemu-96ced85b0c5664426518ad43f0e423092fbee933.zip | |
tests/functional: Move aarch64 tests into architecture specific folder
The tests/functional folder has become quite crowded already, some restructuring would be helpful here. Thus move the aarch64 tests into a target-specific subfolder. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20250819112403.432587-6-thuth@redhat.com>
Diffstat (limited to 'tests/functional/aarch64/test_raspi3.py')
| -rwxr-xr-x | tests/functional/aarch64/test_raspi3.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/functional/aarch64/test_raspi3.py b/tests/functional/aarch64/test_raspi3.py new file mode 100755 index 0000000000..74f6630ed2 --- /dev/null +++ b/tests/functional/aarch64/test_raspi3.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python3 +# +# Functional test that boots a Linux kernel on a Raspberry Pi machine +# and checks the console +# +# Copyright (c) 2020 Philippe Mathieu-Daudé <f4bug@amsat.org> +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import LinuxKernelTest, Asset + + +class Aarch64Raspi3Machine(LinuxKernelTest): + + ASSET_RPI3_UEFI = Asset( + ('https://github.com/pbatard/RPi3/releases/download/' + 'v1.15/RPi3_UEFI_Firmware_v1.15.zip'), + '8cff2e979560048b4c84921f41a91893240b9fb71a88f0b5c5d6c8edd994bd5b') + + def test_aarch64_raspi3_atf(self): + efi_name = 'RPI_EFI.fd' + efi_fd = self.archive_extract(self.ASSET_RPI3_UEFI, member=efi_name) + + self.set_machine('raspi3b') + self.vm.set_console(console_index=1) + self.vm.add_args('-cpu', 'cortex-a53', + '-nodefaults', + '-device', f'loader,file={efi_fd},force-raw=true') + self.vm.launch() + self.wait_for_console_pattern('version UEFI Firmware v1.15') + + +if __name__ == '__main__': + LinuxKernelTest.main() |