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@xxxxxxxxxx> --- .../{sparc-minimal.args => sparc-minimal.sparc-latest.args} | 1 + tests/qemuxml2argvtest.c | 3 +-- tests/testutilsqemu.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) rename tests/qemuxml2argvdata/{sparc-minimal.args => sparc-minimal.sparc-latest.args} (95%) diff --git a/tests/qemuxml2argvdata/sparc-minimal.args b/tests/qemuxml2argvdata/sparc-minimal.sparc-latest.args similarity index 95% rename from tests/qemuxml2argvdata/sparc-minimal.args rename to tests/qemuxml2argvdata/sparc-minimal.sparc-latest.args index 63930f20c4..75c33631cf 100644 --- a/tests/qemuxml2argvdata/sparc-minimal.args +++ b/tests/qemuxml2argvdata/sparc-minimal.sparc-latest.args @@ -32,4 +32,5 @@ XDG_CONFIG_HOME=/tmp/lib/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 diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 4aecbe57f6..90d96f2109 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2780,8 +2780,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"); diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c index 588abf662d..6d2d2dc83e 100644 --- a/tests/testutilsqemu.c +++ b/tests/testutilsqemu.c @@ -777,6 +777,7 @@ testQemuGetLatestCaps(void) "riscv64", "s390x", "x86_64", + "sparc", }; g_autoptr(GHashTable) capslatest = virHashNew(g_free); size_t i; -- 2.39.2