mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
tests/functional: Convert the xlnx_versal_virt avocado test
A straight-forward conversion of the xlnx_versal_virt boot test to the functional framework. Message-ID: <20241206102358.1186644-2-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
cd28b8db0a
commit
490d25e6c5
4 changed files with 39 additions and 27 deletions
37
tests/functional/test_aarch64_xlnx_versal.py
Executable file
37
tests/functional/test_aarch64_xlnx_versal.py
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Functional test that boots a Linux kernel and checks the console
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
from qemu_test import LinuxKernelTest, Asset
|
||||
|
||||
class XlnxVersalVirtMachine(LinuxKernelTest):
|
||||
|
||||
ASSET_KERNEL = Asset(
|
||||
('http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/main/'
|
||||
'installer-arm64/20101020ubuntu543.19/images/netboot/'
|
||||
'ubuntu-installer/arm64/linux'),
|
||||
'ce54f74ab0b15cfd13d1a293f2d27ffd79d8a85b7bb9bf21093ae9513864ac79')
|
||||
|
||||
ASSET_INITRD = Asset(
|
||||
('http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/main/'
|
||||
'installer-arm64/20101020ubuntu543.19/images/netboot/'
|
||||
'/ubuntu-installer/arm64/initrd.gz'),
|
||||
'e7a5e716b6f516d8be315c06e7331aaf16994fe4222e0e7cfb34bc015698929e')
|
||||
|
||||
def test_aarch64_xlnx_versal_virt(self):
|
||||
self.set_machine('xlnx-versal-virt')
|
||||
kernel_path = self.ASSET_KERNEL.fetch()
|
||||
initrd_path = self.ASSET_INITRD.fetch()
|
||||
|
||||
self.vm.set_console()
|
||||
self.vm.add_args('-m', '2G',
|
||||
'-accel', 'tcg',
|
||||
'-kernel', kernel_path,
|
||||
'-initrd', initrd_path)
|
||||
self.vm.launch()
|
||||
self.wait_for_console_pattern('Checked W+X mappings: passed')
|
||||
|
||||
if __name__ == '__main__':
|
||||
LinuxKernelTest.main()
|
Loading…
Add table
Add a link
Reference in a new issue