Add an example case showing that every feature in the 'pseries-features'
test works also with the oldest supported qemu version.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
.../pseries-features.ppc64-4.2.0.args | 30 +++++++++++++++++++
tests/qemuxml2argvtest.c | 1 +
2 files changed, 31 insertions(+)
create mode 100644 tests/qemuxml2argvdata/pseries-features.ppc64-4.2.0.args
diff --git a/tests/qemuxml2argvdata/pseries-features.ppc64-4.2.0.args
b/tests/qemuxml2argvdata/pseries-features.ppc64-4.2.0.args
new file mode 100644
index 0000000000..7decaba057
--- /dev/null
+++ b/tests/qemuxml2argvdata/pseries-features.ppc64-4.2.0.args
@@ -0,0 +1,30 @@
+LC_ALL=C \
+PATH=/bin \
+HOME=/var/lib/libvirt/qemu/domain--1-guest \
+USER=test \
+LOGNAME=test \
+XDG_DATA_HOME=/var/lib/libvirt/qemu/domain--1-guest/.local/share \
+XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain--1-guest/.cache \
+XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-guest/.config \
+/usr/bin/qemu-system-ppc64 \
+-name guest=guest,debug-threads=on \
+-S \
+-object
secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain--1-guest/master-key.aes
\
+-machine
pseries-4.2,usb=off,resize-hpt=required,cap-hpt-max-page-size=1048576k,cap-htm=on,cap-nested-hv=off,cap-ccf-assist=on,cap-cfpc=fixed,cap-sbbc=broken,cap-ibs=fixed-ccd,dump-guest-core=off
\
+-accel tcg \
+-cpu POWER9 \
+-m 512 \
+-overcommit mem-lock=off \
+-smp 1,sockets=1,cores=1,threads=1 \
+-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \
+-display none \
+-no-user-config \
+-nodefaults \
+-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \
+-mon chardev=charmonitor,id=monitor,mode=control \
+-rtc base=utc \
+-no-shutdown \
+-boot strict=on \
+-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 a765de304d..6560bcfaab 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -2001,6 +2001,7 @@ mymain(void)
DO_TEST_CAPS_LATEST_PPC64("pseries-hostdevs-2");
DO_TEST_CAPS_LATEST_PPC64("pseries-hostdevs-3");
+ DO_TEST_CAPS_ARCH_VER("pseries-features", "ppc64",
"4.2.0");
DO_TEST_CAPS_LATEST_PPC64("pseries-features");
/* parse error: no QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE */
--
2.39.2