]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2argvtest: Convert 'sparc-minimal' case to DO_TEST_CAPS_ARCH_LATEST
authorPeter Krempa <pkrempa@redhat.com>
Thu, 2 Mar 2023 15:53:47 +0000 (16:53 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 6 Mar 2023 19:55:50 +0000 (20:55 +0100)
Convert the only outstanding test case for a 'sparc' machine to modern
test infrastructure.

'sparc' machine type also needs to be added to the list of supported
arches in testQemuGetLatestCaps.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvdata/sparc-minimal.sparc-latest.args [moved from tests/qemuxml2argvdata/sparc-minimal.args with 95% similarity]
tests/qemuxml2argvtest.c
tests/testutilsqemu.c

similarity index 95%
rename from tests/qemuxml2argvdata/sparc-minimal.args
rename to tests/qemuxml2argvdata/sparc-minimal.sparc-latest.args
index 8afd60ee12ea6c02152cd839cd834628049572fc..531016737e35887379d90ce776c9680e1dc8d117 100644 (file)
@@ -32,4 +32,5 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-redhat62sparc/.config \
 -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
 -device scsi-cd,bus=scsi.0,scsi-id=1,device_id=drive-scsi0-0-0-1,drive=libvirt-1-format,id=scsi0-0-0-1 \
 -audiodev '{"id":"audio1","driver":"none"}' \
+-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index fc0f7830a976d9da94654ccbf5f806ff124fda94..c7569af87266e3ddfa1a37eafd2ff3c768758ac0 100644 (file)
@@ -2737,8 +2737,7 @@ mymain(void)
             QEMU_CAPS_OBJECT_GPEX,
             QEMU_CAPS_NEC_USB_XHCI);
 
-    DO_TEST("sparc-minimal",
-            QEMU_CAPS_SCSI_NCR53C90);
+    DO_TEST_CAPS_ARCH_LATEST("sparc-minimal", "sparc");
 
     DO_TEST_CAPS_LATEST_PARSE_ERROR("missing-machine");
 
index 8738b69c84395bc3887697ba40978a962c0f3a11..89c257fe0efc8ab30ae8ee82c34b27d3a192eab6 100644 (file)
@@ -829,6 +829,7 @@ testQemuGetLatestCaps(void)
         "riscv64",
         "s390x",
         "x86_64",
+        "sparc",
     };
     g_autoptr(GHashTable) capslatest = virHashNew(g_free);
     size_t i;