]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional: Convert the intel_iommu avocado test
authorThomas Huth <thuth@redhat.com>
Fri, 6 Dec 2024 18:02:24 +0000 (19:02 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 17 Dec 2024 19:48:01 +0000 (20:48 +0100)
commit270d4a5164ed9881ee7b9e8190a24e37af82a7e1
tree2207994b23b038c3c755ba566682ac5dc0ea3fbc
parent9fa4fc23e34114971f7ee81acb9b5f4ab0017c7a
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>
MAINTAINERS
tests/avocado/intel_iommu.py [deleted file]
tests/functional/meson.build
tests/functional/test_intel_iommu.py [new file with mode: 0755]