mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
tests/functional: Convert the x86_64 replay avocado tests
Put the tests into a separate file now (in the functional framework, each file is run with one specific qemu-system-* binary). Signed-off-by: Thomas Huth <thuth@redhat.com Message-ID: <20250218152744.228335-14-thuth@redhat.com>
This commit is contained in:
parent
4d75a3743a
commit
0f31f0f53c
3 changed files with 37 additions and 35 deletions
35
tests/functional/test_x86_64_replay.py
Executable file
35
tests/functional/test_x86_64_replay.py
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Replay test that boots a Linux kernel on x86_64 machines
|
||||
# and checks the console
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
from qemu_test import Asset, skipFlakyTest
|
||||
from replay_kernel import ReplayKernelBase
|
||||
|
||||
|
||||
class X86Replay(ReplayKernelBase):
|
||||
|
||||
ASSET_KERNEL = Asset(
|
||||
('https://archives.fedoraproject.org/pub/archive/fedora/linux'
|
||||
'/releases/29/Everything/x86_64/os/images/pxeboot/vmlinuz'),
|
||||
'8f237d84712b1b411baf3af2aeaaee10b9aae8e345ec265b87ab3a39639eb143')
|
||||
|
||||
def do_test_x86(self, machine):
|
||||
self.set_machine(machine)
|
||||
kernel_path = self.ASSET_KERNEL.fetch()
|
||||
kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0'
|
||||
console_pattern = 'VFS: Cannot open root device'
|
||||
self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5)
|
||||
|
||||
@skipFlakyTest('https://gitlab.com/qemu-project/qemu/-/issues/2094')
|
||||
def test_pc(self):
|
||||
self.do_test_x86('pc')
|
||||
|
||||
def test_q35(self):
|
||||
self.do_test_x86('q35')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
ReplayKernelBase.main()
|
Loading…
Add table
Add a link
Reference in a new issue