libvirt/tests
Jim Fehlig fcdc387410 tests: Adjust libxlxml2domconfigtest to work with Xen < 4.10
Commit f253dc90f5 introduced a test regression in environments with
Xen < 4.10. The logic in libxl_conf.c correctly maps ACPI and APIC
from virDomainObj to libxl_domain_conf based on
LIBXL_HAVE_BUILDINFO_APIC, but the tests did not account for the
different libxl_domain_conf JSON representations.

One approach to fixing the test regression is to duplicate JSON test
data files, having one set for Xen <= 4.9 and another for Xen 4.10
and greater. To avoid duplicate data files, this patch takes the
approach of modifying the libxl_domain_conf object based on
LIBXL_HAVE_BUILDINFO_APIC, before retrieving the JSON representation.
It allows using the same test data files for all supported versions
of Xen by adjusting the intermediate form of libxl_domain_conf object
as needed.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2020-09-24 12:27:07 +02:00
..
bhyveargv2xmldata bhyve: add VNC password support 2020-09-22 17:19:26 +04:00
bhyvexml2argvdata bhyve: add VNC password support 2020-09-22 17:19:26 +04:00
bhyvexml2xmloutdata bhyve: add VNC password support 2020-09-22 17:19:26 +04:00
capabilityschemadata
commanddata tests: commandtest: Make 'test4' checking daemonization more reliable 2020-07-27 15:44:38 +02:00
cputestdata Prefer https: everywhere where possible 2020-09-01 21:58:46 +02:00
domainbackupxml2xmlin
domainbackupxml2xmlout
domaincapsdata qemucapabilitiesdata: Add test data for x86_64 for the qemu-5.2 dev cycle 2020-08-24 16:43:22 +02:00
domainconfdata
domainschemadata
fchostdata/fc_host
genericxml2xmlindata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata libxl: use b_info->{acpi,acpi} when available 2020-09-18 08:51:47 +02:00
lxcconf2xmldata
lxcxml2xmldata lxc: add possibility to define init uid/gid 2017-07-11 10:41:24 +02:00
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata
networkxml2xmlin
networkxml2xmlout
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevmdevctldata
nodedevschemadata node_device: detect CSS devices 2020-09-15 09:06:15 +02:00
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata qemu: block: Remove 'active-write' bitmap even if there are no bitmaps to merge 2020-07-21 09:52:59 +02:00
qemucapabilitiesdata qemucapabilitiesdata: Add test data for x86_64 for the qemu-5.2 dev cycle 2020-08-24 16:43:22 +02:00
qemucaps2xmloutdata
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout
qemufirmwaredata
qemuhotplugtestcpus
qemuhotplugtestdevices qemu: add support for shmem-{plain, doorbell} role 2020-08-03 10:57:47 +02:00
qemuhotplugtestdomains qemu: add support for shmem-{plain, doorbell} role 2020-08-03 10:57:47 +02:00
qemumemlockdata
qemumigparamsdata
qemumonitorjsondata
qemustatusxml2xmldata qemustatusxml2xml: backup-pull: Test private data formatting/parsing 2020-09-15 15:25:22 +02:00
qemuvhostuserdata
qemuxml2argvdata qemuxml2argvtest: Test timer validation for non-x86 arches 2020-09-23 22:48:26 +02:00
qemuxml2xmloutdata domain_conf.c: auto-align pSeries NVDIMM in virDomainMemoryDefPostParse() 2020-09-23 13:19:47 -03:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagepoolxml2xmlout conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagevolschemadata
storagevolxml2argvdata storage: add support for qcow2 LUKS encryption 2020-09-18 11:22:28 +01:00
storagevolxml2xmlin storage: add support for qcow2 LUKS encryption 2020-09-18 11:22:28 +01:00
storagevolxml2xmlout storage: add support for qcow2 LUKS encryption 2020-09-18 11:22:28 +01:00
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata
virconfdata
virfilecachedata
virfiledata
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata
virnwfilterbindingxml2xmldata
virpcitestdata
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
xlconfigdata Xen: Add support for writeFiltering in config converter 2020-09-01 14:29:46 -06:00
xmconfigdata Xen: Improve parsing of PCI addresses in config converter 2020-08-21 08:08:28 -06:00
xml2vmxdata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c bhyve: add VNC password support 2020-09-22 17:19:26 +04:00
bhyvexml2argvmock.c qemu/lxc: plumb isolatedPort from config down through bridge attachment 2020-02-20 23:13:15 -05:00
bhyvexml2argvtest.c bhyve: add VNC password support 2020-09-22 17:19:26 +04:00
bhyvexml2xmltest.c bhyve: add VNC password support 2020-09-22 17:19:26 +04:00
commandhelper.c tests: don't mix FILE* and UNIX FD I/O on same stream 2020-09-22 10:45:33 +01:00
commandtest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
cputest.c tests: cpuTestLoadMultiXML: use g_new0 instead of VIR_ALLOC_N 2020-09-23 14:54:38 +02:00
domaincapsmock.c domaincapsmock: mock virHostCPUGetMicrocodeVersion() 2020-08-25 19:44:43 +02:00
domaincapstest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
domainconftest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
esxutilstest.c
eventtest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
fchosttest.c
fdstreamtest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
genericxml2xmltest.c Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
libxlmock.c
libxlxml2domconfigtest.c tests: Adjust libxlxml2domconfigtest to work with Xen < 4.10 2020-09-24 12:27:07 +02:00
lxcconf2xmltest.c
lxcxml2xmltest.c
meson.build tests: build SELinux tests 2020-09-23 17:46:52 +02:00
metadatatest.c
networkxml2conftest.c
networkxml2firewalltest.c src/util/virfirewalld: convert to use GLib DBus 2020-09-17 18:20:01 +02:00
networkxml2xmltest.c conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlupdatetest.c
nodedevmdevctltest.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
nodedevxml2xmltest.c node_device: detect CSS devices 2020-09-15 09:06:15 +02:00
nsslinktest.c
nssmock.c tests: use WITH_NSS instead of NSS 2020-07-10 09:40:58 +02:00
nsstest.c tests: use WITH_NSS instead of NSS 2020-07-10 09:40:58 +02:00
nwfilterebiptablestest.c
nwfilterxml2firewalltest.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
nwfilterxml2xmltest.c
objecteventtest.c
openvzutilstest.c
openvzutilstest.conf
permitted_file_access.txt
pkix_asn1_tab.c
qemuagenttest.c tests: qemu: use g_autoptr where possible 2020-08-03 07:23:46 +02:00
qemublocktest.c virStorageSourceNew: Abort on failure 2020-09-23 22:37:56 +02:00
qemucapabilitiestest.c tests: get rid of 'make check' references 2020-08-17 08:42:47 +02:00
qemucaps2xmlmock.c
qemucaps2xmltest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemucapsfixreplies
qemucapsprobe.c
qemucapsprobemock.c
qemucommandutiltest.c
qemucpumock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
qemudomaincheckpointxml2xmltest.c
qemudomainsnapshotxml2xmltest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemufirmwaretest.c
qemuhotplugmock.c replace g_new() with g_new0() for consistency 2020-07-20 19:08:07 -04:00
qemuhotplugtest.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
qemumemlocktest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemumigparamstest.c qemumigparamstest: Validate output parameters against QMP schema 2020-08-24 16:42:57 +02:00
qemumonitorjsontest.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
qemumonitortestutils.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
qemumonitortestutils.h
qemusecuritymock.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
qemusecuritytest.c tests: qemu: Split NBD and VXHS protocol tests 2020-07-31 10:27:50 +02:00
qemusecuritytest.h
qemuvhostusertest.c
qemuxml2argvmock.c tests: qemuxml2argvmock: Report error in virNumaNodesetIsAvailable 2020-09-23 22:45:45 +02:00
qemuxml2argvtest.c qemuxml2argvtest: Test timer validation for non-x86 arches 2020-09-23 22:48:26 +02:00
qemuxml2xmltest.c tests: qemustatusxml2xmldata: Rename 'disk-secinfo-upgrade' case to 'upgrade' 2020-09-15 15:20:23 +02:00
scsihosttest.c
seclabeltest.c util: replace strerror/strerror_r with g_strerror 2019-10-14 10:54:42 +01:00
secretxml2xmltest.c
securityselinuxhelper.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
securityselinuxlabeltest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
securityselinuxtest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
shunloadhelper.c
shunloadtest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
sockettest.c tests: sockettest: move declarations 2020-08-25 19:03:12 +02:00
ssh.c
storagebackendsheepdogtest.c
storagepoolcapstest.c
storagepoolxml2argvtest.c
storagepoolxml2xmltest.c conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagevolxml2argvtest.c storage: add support for qcow2 LUKS encryption 2020-09-18 11:22:28 +01:00
storagevolxml2xmltest.c storage: add support for qcow2 LUKS encryption 2020-09-18 11:22:28 +01:00
sysinfotest.c
test-lib.sh tests: Don't advertise VIR_TEST_EXPENSIVE to users 2020-09-23 11:30:05 +02:00
testutils.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
testutils.h meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
testutilshostcpus.h
testutilslxc.c
testutilslxc.h
testutilsqemu.c qemuxml2argvtest: Test expected error messages 2020-09-23 22:47:59 +02:00
testutilsqemu.h qemuxml2argvtest: Test expected error messages 2020-09-23 22:47:59 +02:00
testutilsqemuschema.c testutilsqemuschema: Add template checker for schema entries 2020-08-24 13:02:35 +02:00
testutilsqemuschema.h testutilsqemuschema: Add template checker for schema entries 2020-08-24 13:02:35 +02:00
testutilsxen.c
testutilsxen.h
utiltest.c tests: qemu: reduce scope of some variables 2020-08-03 07:23:45 +02:00
vboxsnapshotxmltest.c check for NULL before calling g_regex_unref 2020-09-08 16:07:47 +02:00
viralloctest.c
virauthconfigtest.c tests: authconfigtest: move declarations 2020-08-25 19:03:12 +02:00
virbitmaptest.c
virbuftest.c
vircaps2xmltest.c
vircapstest.c
vircgroupmock.c Move declarations before statements 2020-08-25 19:03:11 +02:00
vircgrouptest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
virconftest.c tests: Use glib memory function in testConfRoundTrip 2020-09-14 17:28:51 +02:00
vircryptotest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
virdeterministichashmock.c
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virerrortest.c
virfilecachemock.c
virfilecachetest.c
virfilemock.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virfiletest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virfilewrapper.c
virfilewrapper.h
virfirewalltest.c src/util/virfirewalld: convert to use GLib DBus 2020-09-17 18:20:01 +02:00
virgdbusmock.c tests: introduce virgdbusmock to mock GLib DBus functions 2020-09-17 18:19:56 +02:00
virhashdata.h
virhashtest.c Use (un)signed printf specifiers correctly 2020-09-23 13:26:35 +02:00
virhostcpumock.c
virhostcputest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
virhostdevmock.c
virhostdevtest.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
viridentitytest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
viriscsitest.c tests: iscsitest: split out testISCSIScanTargetsTests 2020-08-25 19:03:12 +02:00
virjsontest.c
virkeycodetest.c
virkmodtest.c
virlockspacetest.c
virlogtest.c
virmacmaptest.c
virmigtest.c peer2peer migration: allow connecting to local sockets 2020-09-04 10:20:49 +02:00
virmock.h tests/virmock: extend number of arguments 2020-09-17 18:19:53 +02:00
virmockstathelpers.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virnetdaemonmock.c tests: don't mock the time() function on mingw 2020-07-23 14:58:16 +01:00
virnetdaemontest.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c
virnetdevmock.c
virnetdevopenvswitchtest.c
virnetdevtest.c
virnetmessagetest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
virnetserverclientmock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virnetserverclienttest.c tests: use g_new0 instead of VIR_ALLOC 2020-09-23 14:54:38 +02:00
virnetsockettest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
virnettlscontexttest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virnettlshelpers.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
virnettlshelpers.h lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virnettlssessiontest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virnetworkportxml2xmltest.c
virnumamock.c tests: virNumaGetPages: use g_new0 instead of VIR_ALLOC_N 2020-09-23 14:54:38 +02:00
virnwfilterbindingxml2xmltest.c
virpcimock.c Use (un)signed printf specifiers correctly 2020-09-23 13:26:35 +02:00
virpcitest.c
virpolkittest.c src/util/virpolkit: convert to use GLib DBus 2020-09-17 18:19:59 +02:00
virportallocatormock.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virportallocatortest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virprocessmock.c
virrandommock.c
virresctrltest.c
virrotatingfiletest.c Split declarations from initializations 2020-08-25 19:03:11 +02:00
virschematest.c tests: schema: test bhyvexml2xmloutdata schemas 2020-08-22 16:40:44 +04:00
virscsitest.c
virsh-auth
virsh-auth.xml
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse meson: src/util/virfile: rewrite virFileActivateDirOverrideForProg 2020-08-03 09:26:36 +02:00
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo meson: src/util/virfile: rewrite virFileActivateDirOverrideForProg 2020-08-03 09:26:36 +02:00
virsh-self-test
virsh-snapshot
virsh-start tests: consistently source test-lib.sh in scripts 2016-04-23 15:41:40 -04:00
virsh-undefine tests: fix license blurb in virsh-undefine 2020-09-01 23:14:16 +02:00
virsh-uriprecedence
virsh-vcpupin
virshtest.c
virstoragetest.c virStorageSourceNew: Abort on failure 2020-09-23 22:37:56 +02:00
virstorageutiltest.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virstringtest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
virsystemdtest.c src/util/virsystemd: convert to use GLib DBus 2020-09-17 18:20:03 +02:00
virt-aa-helper-test meson: tests: add test scripts 2020-08-03 09:27:06 +02:00
virt-admin-self-test
virtestmock.c meson: tests: add file access test setup 2020-08-03 09:27:06 +02:00
virtimetest.c
virtypedparamtest.c
viruritest.c tests: use VIR_WARNINGS_NO_DECLARATION_AFTER_STATEMENT 2020-08-25 19:03:13 +02:00
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c
vshtabletest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
xlconfigtest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
xmconfigtest.c tests: use g_new0 instead of VIR_ALLOC_N 2020-09-23 16:49:01 +02:00
xml2vmxtest.c Add a type attribute on the mac address element 2020-07-13 18:47:44 +02:00