mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
tests/functional: Convert the intel_iommu avocado test
Convert the intel_iommu test to the new functional framework. This test needs some changes since we neither support the old 'LinuxTest' class in the functional framework yet, nor a way to use SSH for running commands in the guest. So we now directly download a Fedora kernel and initrd and set up the serial console for executing the commands and for looking for the results. Instead of configuring the cloud image via cloud-init, we now simply mount the file system manually from an initrd rescue shell. While the old test was exercising the network with a "dnf install" command (which is not the best option for the CI since this depends on third party servers), the new code is now setting up a little HTTP server in the guest and transfers a file from the guest to the host instead. The test should now run much faster and more reliable (since we don't depend on the third party servers for "dnf install" anymore), so we can also drop the @skipUnless decorator now. Message-ID: <20241217121550.141072-3-thuth@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
9fa4fc23e3
commit
270d4a5164
4 changed files with 179 additions and 123 deletions
|
@ -31,6 +31,7 @@ test_timeouts = {
|
|||
'arm_raspi2' : 120,
|
||||
'arm_tuxrun' : 240,
|
||||
'arm_sx1' : 360,
|
||||
'intel_iommu': 300,
|
||||
'mips_malta' : 120,
|
||||
'netdev_ethtool' : 180,
|
||||
'ppc_40p' : 240,
|
||||
|
@ -227,11 +228,12 @@ tests_x86_64_system_quick = [
|
|||
|
||||
tests_x86_64_system_thorough = [
|
||||
'acpi_bits',
|
||||
'x86_64_tuxrun',
|
||||
'intel_iommu',
|
||||
'linux_initrd',
|
||||
'multiprocess',
|
||||
'netdev_ethtool',
|
||||
'virtio_gpu',
|
||||
'x86_64_tuxrun',
|
||||
]
|
||||
|
||||
tests_xtensa_system_thorough = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue