Skip to contentSkip to conversation

tests/functional: Convert the multiprocess avocado test into a standalone test

PATCH New Thomas Huth 1 participant 1 message Sep 3, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional: Convert the multiprocess avocado test into a standalone test

This test handles both, aarch64 and x86_64, with the same test code (apart from some initial setup), so don't split this file by target but add a check for self.arch in the main test function.

---
Based-on: [email protected]

 tests/avocado/avocado_qemu/__init__.py        | 10 ---
 tests/functional/meson.build                  |  2 +
 .../test_multiprocess.py}                     | 90 +++++++++----------
 3 files changed, 46 insertions(+), 56 deletions(-)
 rename tests/{avocado/multiprocess.py => functional/test_multiprocess.py} (48%)
 mode change 100644 => 100755
tests/avocado/avocado_qemu/__init__.py +0 -10
index 0e4ecea7a0..93c3460242 100644
@@ -307,16 +307,6 @@ def require_netdev(self, netdevname):
         if netdevhelp.find('\n' + netdevname + '\n') < 0:
             self.cancel('no support for user networking')
 
-    def require_multiprocess(self):
-        """
-        Test for the presence of the x-pci-proxy-dev which is required
-        to support multiprocess.
-        """
-        devhelp = run_cmd([self.qemu_bin,
-                           '-M', 'none', '-device', 'help'])[0];
-        if devhelp.find('x-pci-proxy-dev') < 0:
-            self.cancel('no support for multiprocess device emulation')
-
     def _new_vm(self, name, *args):
         self._sd = tempfile.TemporaryDirectory(prefix="qemu_")
         vm = QEMUMachine(self.qemu_bin, base_temp_dir=self.workdir,
tests/functional/meson.build +2 -0
index 6b00d240dd..34c6b3d4c0 100644
@@ -37,6 +37,7 @@ tests_generic_bsduser = [
 tests_aarch64_system_thorough = [
   'aarch64_sbsaref',
   'aarch64_virt',
+  'multiprocess',
 ]
 
 tests_arm_system_thorough = [
@@ -129,6 +130,7 @@ tests_x86_64_system_quick = [
 tests_x86_64_system_thorough = [
   'acpi_bits',
   'linux_initrd',
+  'multiprocess',
   'netdev_ethtool',
   'virtio_gpu',
 ]
tests/functional/test_multiprocess.py renamed from tests/avocado/multiprocess.py +44 -46

115 lines not on this page · raw message

Signature · 1 line
2.46.0