qemuxml2argvtest: Test expected error messages

When an error is expected, the error message will be checked.
This is expressed by creating an additional ".err" file containing
the expected error message.

It is added in order to make sure the expected errors
are not masked by other errors during test execution while
leveraging the existing framework.

In order to keep it simple, an input file cannot be reused
anymore to cover several expected error cases configured
in the test code. An input file can still be reused by creating
a test case specific symlink.

For consistency, the mock needs to report an error now, too,
as every failure must have an error; otherwise a test case will
fail.

Require LC_ALL=C explicitly to make sure error messages are not
localized for testing.

Signed-off-by: Sebastian Mitterle <smitterl@redhat.com>
Suggested-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Sebastian Mitterle 2020-09-22 11:57:39 +00:00 committed by Peter Krempa
parent afe26f76f2
commit 9ec77eef2d
222 changed files with 248 additions and 11 deletions

View File

@ -0,0 +1 @@
XML error: Attempted double use of PCI Address 0000:00:01.1

View File

@ -0,0 +1 @@
XML error: The PCI controller with index='0' must be model='pci-root' for this machine type, but model='pcie-root' was found instead

View File

@ -0,0 +1 @@
unsupported configuration: ACPI requires UEFI on this architecture

View File

@ -0,0 +1 @@
unsupported configuration: SVE disabled, but SVE vector lengths provided

View File

@ -0,0 +1 @@
internal error: CPU features not supported by hypervisor for aarch64 architecture

View File

@ -0,0 +1 @@
unsupported configuration: unknown CPU feature: vmx

View File

@ -0,0 +1 @@
unsupported configuration: gic-version option is not available with this QEMU binary

View File

@ -0,0 +1 @@
XML error: malformed gic version: none

View File

@ -0,0 +1 @@
unsupported configuration: The 'gic' feature is not supported for architecture 'ppc64' or machine type 'pseries'

View File

@ -0,0 +1 @@
unsupported configuration: The 'gic' feature is not supported for architecture 'aarch64' or machine type 'versatilepb'

View File

@ -0,0 +1 @@
unsupported configuration: gic-version option is not available with this QEMU binary

View File

@ -0,0 +1 @@
unsupported configuration: QEMU binary does not support CPU host-passthrough for armv7l on aarch64 host

View File

@ -0,0 +1 @@
unsupported configuration: per-device boot elements cannot be used together with os/boot elements

View File

@ -0,0 +1 @@
unsupported configuration: invalid value for boot menu timeout, must be in range [0,65535]

View File

@ -0,0 +1 @@
unsupported configuration: splash timeout is not supported by this QEMU binary

View File

@ -0,0 +1 @@
internal error: chardev reconnect is possible only for connect mode

View File

@ -0,0 +1 @@
invalid argument: chardev reconnect source timeout cannot be '0'

View File

@ -0,0 +1 @@
unsupported configuration: CPU cache mode 'emulate' can only be used with level='3'

View File

@ -0,0 +1 @@
unsupported configuration: unsupported CPU cache level for mode 'passthrough'

View File

@ -0,0 +1 @@
unsupported configuration: CPU cache mode 'passthrough' can only be used with 'host-passthrough' CPUs

View File

@ -0,0 +1 @@
unsupported configuration: CPU model core2duo is not supported by hypervisor

View File

@ -0,0 +1 @@
unsupported configuration: vCPUs count must be a multiple of the vCPU hotplug granularity (4)

View File

@ -0,0 +1 @@
unsupported configuration: CPU model Westmere is not supported by hypervisor

View File

@ -0,0 +1 @@
unsupported configuration: disjoint NUMA cpu ranges are not supported with this QEMU

View File

@ -0,0 +1 @@
unsupported configuration: Shared memory mapping is not supported with this QEMU

View File

@ -0,0 +1 @@
cpu-numa-memshared.xml

View File

@ -0,0 +1 @@
unsupported configuration: this qemu doesn't support the memory-backend-file object

View File

@ -0,0 +1 @@
XML error: Exactly one 'cell' element per guest NUMA cell allowed, non-contiguous ranges or ranges not starting from 0 are not allowed

View File

@ -0,0 +1 @@
unsupported configuration: CPU mode 'host-passthrough' for x86_64 qemu domain on x86_64 host is not supported by hypervisor

View File

@ -0,0 +1 @@
internal error: CPU features not supported by hypervisor for s390x architecture

View File

@ -0,0 +1 @@
unsupported configuration: Cannot find 'iothread' : 2

View File

@ -0,0 +1 @@
'vcpusched' attributes 'vcpus' must not overlap

View File

@ -0,0 +1 @@
unsupported configuration: domain configuration does not support 'video model' value 'default'

View File

@ -0,0 +1 @@
unsupported configuration: Found duplicate drive address for disk with target name 'sda' controller='0' bus='0' target='0' unit='0'

View File

@ -0,0 +1 @@
unsupported configuration: invalid disk target 'vdb1', partitions can't appear in disk targets

View File

@ -0,0 +1 @@
unsupported configuration: disk device='lun' is only valid for block type disk source

View File

@ -0,0 +1 @@
internal error: unexpected address type for fdc disk

View File

@ -0,0 +1 @@
unsupported configuration: PowerPC pseries machines do not support floppy device

View File

@ -0,0 +1 @@
unsupported configuration: 'cow' storage format is not supported

View File

@ -0,0 +1 @@
unsupported configuration: 'directory' storage format is not directly supported by QEMU, use 'dir' disk type instead

View File

@ -0,0 +1 @@
unsupported configuration: storage format 'iso' is not directly supported by QEMU, use 'raw' instead

View File

@ -0,0 +1 @@
unsupported configuration: using disk target name 'sda' conflicts with SCSI host device address controller='0' bus='0' target='0' unit='0

View File

@ -0,0 +1 @@
internal error: unexpected address type for ide disk

View File

@ -0,0 +1 @@
unsupported configuration: unknown secret type '<null>'

View File

@ -0,0 +1 @@
unsupported configuration: invalid secret type 'ceph'

View File

@ -0,0 +1 @@
unsupported configuration: ':' not allowed in RBD source volume name 'imagename:rbd_cache=1:rbd_cache_size=67108864:rbd_cache_max_dirty=0'

View File

@ -0,0 +1 @@
unsupported configuration: an <auth> definition already found for disk source

View File

@ -0,0 +1 @@
XML error: target 'sda' duplicated for disk sources '/tmp/idedisk.img' and '/tmp/usbdisk.img'

View File

@ -0,0 +1 @@
unsupported configuration: Invalid address type 'pci' for the disk 'sda' with the bus type 'sata'

View File

@ -0,0 +1 @@
unsupported configuration: Only scsi disk supports vendor and product

View File

@ -0,0 +1 @@
internal error: unexpected address type for scsi disk

View File

@ -0,0 +1 @@
unsupported configuration: shared access for disk 'hda' requires use of supported storage format

View File

@ -0,0 +1 @@
unsupported configuration: This QEMU doesn't support '-device usb-storage'

View File

@ -0,0 +1 @@
internal error: unexpected address type for usb disk

View File

@ -0,0 +1 @@
unsupported configuration: graphics type 'egl-headless' is only supported with one of: 'vnc', 'spice' graphics types

View File

@ -0,0 +1 @@
unsupported configuration: multiple OpenGL displays are not supported by QEMU

View File

@ -0,0 +1 @@
unsupported configuration: graphics device is needed for attribute value 'display=on' in <hostdev>

View File

@ -0,0 +1 @@
XML error: Unsupported address type 'drive' with mediated device model 'vfio-pci'

View File

@ -0,0 +1 @@
unsupported configuration: Missing 'uuid' attribute for element <address>

View File

@ -0,0 +1 @@
unsupported configuration: booting from assigned devices is not supported by vhost SCSI devices

View File

@ -0,0 +1 @@
unsupported configuration: booting from assigned devices is not supported by mediated devices of model vfio-ap

View File

@ -0,0 +1 @@
XML error: The CCW devno 'fe.0.0001' is in use already

View File

@ -0,0 +1 @@
XML error: Unsupported address type 'pci' with mediated device model 'vfio-ccw'

View File

@ -0,0 +1 @@
unsupported configuration: VFIO CCW device assignment is not supported by this version of QEMU

View File

@ -0,0 +1 @@
XML error: No PCI buses available

View File

@ -0,0 +1 @@
internal error: zPCI uid 11064 is already reserved

View File

@ -0,0 +1 @@
XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff

View File

@ -0,0 +1 @@
XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff

View File

@ -0,0 +1 @@
XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff

View File

@ -0,0 +1 @@
unsupported configuration: This QEMU binary doesn't support zPCI

View File

@ -0,0 +1 @@
unsupported configuration: This QEMU binary doesn't support zPCI

View File

@ -0,0 +1 @@
unsupported configuration: SCSI host address controller='0' bus='0' target='0' unit='0' in use by another SCSI host device

View File

@ -0,0 +1 @@
unsupported configuration: huge pages per NUMA node are not supported with this QEMU

View File

@ -0,0 +1 @@
unsupported configuration: Invalid 'memAccess' attribute value 'invalid'

View File

@ -0,0 +1 @@
unsupported configuration: memory access mode 'shared' not supported without guest numa node

View File

@ -0,0 +1 @@
hugepages: node 1 not found

View File

@ -0,0 +1 @@
hugepages: node 4 not found

View File

@ -0,0 +1 @@
unsupported configuration: IOMMU device: 'intel' is only supported with Q35 machines

View File

@ -0,0 +1 @@
unsupported configuration: IOThreads not supported for this QEMU

View File

@ -0,0 +1 @@
unsupported configuration: supplying <cipher> for domain disk definition is unnecessary

View File

@ -0,0 +1 @@
unsupported configuration: an <encryption> definition already found for disk source

View File

@ -0,0 +1 @@
unsupported configuration: LUKS encrypted QCOW2 images are not supported by this QEMU

View File

@ -0,0 +1 @@
unsupported configuration: Serial device with target type 'system-serial' and target model 'pl011' not compatible with guest architecture or machine type

View File

@ -0,0 +1 @@
unsupported configuration: aes-key-wrap is not available with this QEMU binary

View File

@ -0,0 +1 @@
unsupported configuration: aes-key-wrap is not available with this QEMU binary

View File

@ -0,0 +1 @@
unsupported configuration: aes-key-wrap is not available with this QEMU binary

View File

@ -0,0 +1 @@
unsupported configuration: aes-key-wrap is not available with this QEMU binary

View File

@ -0,0 +1 @@
unsupported configuration: dea-key-wrap is not available with this QEMU binary

View File

@ -0,0 +1 @@
unsupported configuration: dea-key-wrap is not available with this QEMU binary

View File

@ -0,0 +1 @@
unsupported configuration: dea-key-wrap is not available with this QEMU binary

View File

@ -0,0 +1 @@
unsupported configuration: dea-key-wrap is not available with this QEMU binary

View File

@ -0,0 +1 @@
internal error: invalid loadparm char '?', expecting chars in set of [a-zA-Z0-9.] and blank spaces

View File

@ -0,0 +1 @@
internal error: loadparm 'LOADPARM1' exceeds 8 characters

View File

@ -0,0 +1 @@
unsupported configuration: memory size of NUMA node '0' overflowed after alignment

View File

@ -0,0 +1 @@
unsupported configuration: At least one numa node has to be configured when enabling memory hotplug

View File

@ -0,0 +1 @@
XML error: Memory size must be specified via <memory> or in the <numa> configuration

View File

@ -0,0 +1 @@
unsupported configuration: setting ACPI S4 not supported

View File

@ -0,0 +1 @@
unsupported configuration: Emulator '/usr/bin/qemu-system-i386' does not support arch 'alpha'

View File

@ -0,0 +1 @@
unsupported configuration: interface 00:11:22:33:44:55 - custom tap device path is not supported for network interfaces of type hostdev

View File

@ -0,0 +1 @@
unsupported configuration: interface 52:54:00:ee:96:6b - custom tap device path is not supported for network interfaces of type vhostuser

Some files were not shown because too many files have changed in this diff Show More