mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
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:
parent
afe26f76f2
commit
9ec77eef2d
1
tests/qemuxml2argvdata/440fx-ide-address-conflict.err
Normal file
1
tests/qemuxml2argvdata/440fx-ide-address-conflict.err
Normal file
@ -0,0 +1 @@
|
||||
XML error: Attempted double use of PCI Address 0000:00:01.1
|
1
tests/qemuxml2argvdata/440fx-wrong-root.err
Normal file
1
tests/qemuxml2argvdata/440fx-wrong-root.err
Normal 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
|
1
tests/qemuxml2argvdata/aarch64-acpi-nouefi.err
Normal file
1
tests/qemuxml2argvdata/aarch64-acpi-nouefi.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: ACPI requires UEFI on this architecture
|
@ -0,0 +1 @@
|
||||
unsupported configuration: SVE disabled, but SVE vector lengths provided
|
@ -0,0 +1 @@
|
||||
internal error: CPU features not supported by hypervisor for aarch64 architecture
|
@ -0,0 +1 @@
|
||||
unsupported configuration: unknown CPU feature: vmx
|
1
tests/qemuxml2argvdata/aarch64-gic-host.err
Normal file
1
tests/qemuxml2argvdata/aarch64-gic-host.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: gic-version option is not available with this QEMU binary
|
1
tests/qemuxml2argvdata/aarch64-gic-invalid.err
Normal file
1
tests/qemuxml2argvdata/aarch64-gic-invalid.err
Normal file
@ -0,0 +1 @@
|
||||
XML error: malformed gic version: none
|
1
tests/qemuxml2argvdata/aarch64-gic-not-arm.err
Normal file
1
tests/qemuxml2argvdata/aarch64-gic-not-arm.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: The 'gic' feature is not supported for architecture 'ppc64' or machine type 'pseries'
|
1
tests/qemuxml2argvdata/aarch64-gic-not-virt.err
Normal file
1
tests/qemuxml2argvdata/aarch64-gic-not-virt.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: The 'gic' feature is not supported for architecture 'aarch64' or machine type 'versatilepb'
|
1
tests/qemuxml2argvdata/aarch64-gic-v3.err
Normal file
1
tests/qemuxml2argvdata/aarch64-gic-v3.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: gic-version option is not available with this QEMU binary
|
1
tests/qemuxml2argvdata/aarch64-kvm-32-on-64.err
Normal file
1
tests/qemuxml2argvdata/aarch64-kvm-32-on-64.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: QEMU binary does not support CPU host-passthrough for armv7l on aarch64 host
|
1
tests/qemuxml2argvdata/boot-dev+order.err
Normal file
1
tests/qemuxml2argvdata/boot-dev+order.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: per-device boot elements cannot be used together with os/boot elements
|
@ -0,0 +1 @@
|
||||
unsupported configuration: invalid value for boot menu timeout, must be in range [0,65535]
|
1
tests/qemuxml2argvdata/boot-menu-enable-with-timeout.err
Normal file
1
tests/qemuxml2argvdata/boot-menu-enable-with-timeout.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: splash timeout is not supported by this QEMU binary
|
@ -0,0 +1 @@
|
||||
internal error: chardev reconnect is possible only for connect mode
|
@ -0,0 +1 @@
|
||||
invalid argument: chardev reconnect source timeout cannot be '0'
|
1
tests/qemuxml2argvdata/cpu-cache-emulate-l2.err
Normal file
1
tests/qemuxml2argvdata/cpu-cache-emulate-l2.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: CPU cache mode 'emulate' can only be used with level='3'
|
1
tests/qemuxml2argvdata/cpu-cache-passthrough-l3.err
Normal file
1
tests/qemuxml2argvdata/cpu-cache-passthrough-l3.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: unsupported CPU cache level for mode 'passthrough'
|
1
tests/qemuxml2argvdata/cpu-cache-passthrough3.err
Normal file
1
tests/qemuxml2argvdata/cpu-cache-passthrough3.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: CPU cache mode 'passthrough' can only be used with 'host-passthrough' CPUs
|
1
tests/qemuxml2argvdata/cpu-host-model-nofallback.err
Normal file
1
tests/qemuxml2argvdata/cpu-host-model-nofallback.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: CPU model core2duo is not supported by hypervisor
|
1
tests/qemuxml2argvdata/cpu-hotplug-granularity.err
Normal file
1
tests/qemuxml2argvdata/cpu-hotplug-granularity.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: vCPUs count must be a multiple of the vCPU hotplug granularity (4)
|
1
tests/qemuxml2argvdata/cpu-nofallback.err
Normal file
1
tests/qemuxml2argvdata/cpu-nofallback.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: CPU model Westmere is not supported by hypervisor
|
1
tests/qemuxml2argvdata/cpu-numa-disjoint.err
Normal file
1
tests/qemuxml2argvdata/cpu-numa-disjoint.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: disjoint NUMA cpu ranges are not supported with this QEMU
|
1
tests/qemuxml2argvdata/cpu-numa-memshared-1.err
Normal file
1
tests/qemuxml2argvdata/cpu-numa-memshared-1.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: Shared memory mapping is not supported with this QEMU
|
1
tests/qemuxml2argvdata/cpu-numa-memshared-1.xml
Symbolic link
1
tests/qemuxml2argvdata/cpu-numa-memshared-1.xml
Symbolic link
@ -0,0 +1 @@
|
||||
cpu-numa-memshared.xml
|
1
tests/qemuxml2argvdata/cpu-numa-memshared.err
Normal file
1
tests/qemuxml2argvdata/cpu-numa-memshared.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: this qemu doesn't support the memory-backend-file object
|
1
tests/qemuxml2argvdata/cpu-numa3.err
Normal file
1
tests/qemuxml2argvdata/cpu-numa3.err
Normal 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
|
1
tests/qemuxml2argvdata/cpu-qemu-host-passthrough.err
Normal file
1
tests/qemuxml2argvdata/cpu-qemu-host-passthrough.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: CPU mode 'host-passthrough' for x86_64 qemu domain on x86_64 host is not supported by hypervisor
|
1
tests/qemuxml2argvdata/cpu-s390-features.err
Normal file
1
tests/qemuxml2argvdata/cpu-s390-features.err
Normal file
@ -0,0 +1 @@
|
||||
internal error: CPU features not supported by hypervisor for s390x architecture
|
1
tests/qemuxml2argvdata/cputune-iothreadsched-toomuch.err
Normal file
1
tests/qemuxml2argvdata/cputune-iothreadsched-toomuch.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: Cannot find 'iothread' : 2
|
1
tests/qemuxml2argvdata/cputune-vcpusched-overlap.err
Normal file
1
tests/qemuxml2argvdata/cputune-vcpusched-overlap.err
Normal file
@ -0,0 +1 @@
|
||||
'vcpusched' attributes 'vcpus' must not overlap
|
@ -0,0 +1 @@
|
||||
unsupported configuration: domain configuration does not support 'video model' value 'default'
|
1
tests/qemuxml2argvdata/disk-address-conflict.err
Normal file
1
tests/qemuxml2argvdata/disk-address-conflict.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: Found duplicate drive address for disk with target name 'sda' controller='0' bus='0' target='0' unit='0'
|
@ -0,0 +1 @@
|
||||
unsupported configuration: invalid disk target 'vdb1', partitions can't appear in disk targets
|
1
tests/qemuxml2argvdata/disk-device-lun-type-invalid.err
Normal file
1
tests/qemuxml2argvdata/disk-device-lun-type-invalid.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: disk device='lun' is only valid for block type disk source
|
1
tests/qemuxml2argvdata/disk-fdc-incompatible-address.err
Normal file
1
tests/qemuxml2argvdata/disk-fdc-incompatible-address.err
Normal file
@ -0,0 +1 @@
|
||||
internal error: unexpected address type for fdc disk
|
1
tests/qemuxml2argvdata/disk-floppy-pseries.err
Normal file
1
tests/qemuxml2argvdata/disk-floppy-pseries.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: PowerPC pseries machines do not support floppy device
|
1
tests/qemuxml2argvdata/disk-fmt-cow.err
Normal file
1
tests/qemuxml2argvdata/disk-fmt-cow.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: 'cow' storage format is not supported
|
1
tests/qemuxml2argvdata/disk-fmt-dir.err
Normal file
1
tests/qemuxml2argvdata/disk-fmt-dir.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: 'directory' storage format is not directly supported by QEMU, use 'dir' disk type instead
|
1
tests/qemuxml2argvdata/disk-fmt-iso.err
Normal file
1
tests/qemuxml2argvdata/disk-fmt-iso.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: storage format 'iso' is not directly supported by QEMU, use 'raw' instead
|
@ -0,0 +1 @@
|
||||
unsupported configuration: using disk target name 'sda' conflicts with SCSI host device address controller='0' bus='0' target='0' unit='0
|
1
tests/qemuxml2argvdata/disk-ide-incompatible-address.err
Normal file
1
tests/qemuxml2argvdata/disk-ide-incompatible-address.err
Normal file
@ -0,0 +1 @@
|
||||
internal error: unexpected address type for ide disk
|
@ -0,0 +1 @@
|
||||
unsupported configuration: unknown secret type '<null>'
|
@ -0,0 +1 @@
|
||||
unsupported configuration: invalid secret type 'ceph'
|
1
tests/qemuxml2argvdata/disk-network-rbd-no-colon.err
Normal file
1
tests/qemuxml2argvdata/disk-network-rbd-no-colon.err
Normal 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'
|
1
tests/qemuxml2argvdata/disk-network-source-auth-both.err
Normal file
1
tests/qemuxml2argvdata/disk-network-source-auth-both.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: an <auth> definition already found for disk source
|
1
tests/qemuxml2argvdata/disk-same-targets.err
Normal file
1
tests/qemuxml2argvdata/disk-same-targets.err
Normal file
@ -0,0 +1 @@
|
||||
XML error: target 'sda' duplicated for disk sources '/tmp/idedisk.img' and '/tmp/usbdisk.img'
|
@ -0,0 +1 @@
|
||||
unsupported configuration: Invalid address type 'pci' for the disk 'sda' with the bus type 'sata'
|
@ -0,0 +1 @@
|
||||
unsupported configuration: Only scsi disk supports vendor and product
|
@ -0,0 +1 @@
|
||||
internal error: unexpected address type for scsi disk
|
1
tests/qemuxml2argvdata/disk-shared-qcow.err
Normal file
1
tests/qemuxml2argvdata/disk-shared-qcow.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: shared access for disk 'hda' requires use of supported storage format
|
1
tests/qemuxml2argvdata/disk-usb-nosupport.err
Normal file
1
tests/qemuxml2argvdata/disk-usb-nosupport.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: This QEMU doesn't support '-device usb-storage'
|
1
tests/qemuxml2argvdata/disk-usb-pci.err
Normal file
1
tests/qemuxml2argvdata/disk-usb-pci.err
Normal file
@ -0,0 +1 @@
|
||||
internal error: unexpected address type for usb disk
|
@ -0,0 +1 @@
|
||||
unsupported configuration: graphics type 'egl-headless' is only supported with one of: 'vnc', 'spice' graphics types
|
@ -0,0 +1 @@
|
||||
unsupported configuration: multiple OpenGL displays are not supported by QEMU
|
@ -0,0 +1 @@
|
||||
unsupported configuration: graphics device is needed for attribute value 'display=on' in <hostdev>
|
@ -0,0 +1 @@
|
||||
XML error: Unsupported address type 'drive' with mediated device model 'vfio-pci'
|
@ -0,0 +1 @@
|
||||
unsupported configuration: Missing 'uuid' attribute for element <address>
|
@ -0,0 +1 @@
|
||||
unsupported configuration: booting from assigned devices is not supported by vhost SCSI devices
|
@ -0,0 +1 @@
|
||||
unsupported configuration: booting from assigned devices is not supported by mediated devices of model vfio-ap
|
@ -0,0 +1 @@
|
||||
XML error: The CCW devno 'fe.0.0001' is in use already
|
@ -0,0 +1 @@
|
||||
XML error: Unsupported address type 'pci' with mediated device model 'vfio-ccw'
|
1
tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ccw.err
Normal file
1
tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ccw.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: VFIO CCW device assignment is not supported by this version of QEMU
|
@ -0,0 +1 @@
|
||||
XML error: No PCI buses available
|
1
tests/qemuxml2argvdata/hostdev-vfio-zpci-duplicate.err
Normal file
1
tests/qemuxml2argvdata/hostdev-vfio-zpci-duplicate.err
Normal file
@ -0,0 +1 @@
|
||||
internal error: zPCI uid 11064 is already reserved
|
@ -0,0 +1 @@
|
||||
XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff
|
1
tests/qemuxml2argvdata/hostdev-vfio-zpci-set-zero.err
Normal file
1
tests/qemuxml2argvdata/hostdev-vfio-zpci-set-zero.err
Normal file
@ -0,0 +1 @@
|
||||
XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff
|
@ -0,0 +1 @@
|
||||
XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff
|
1
tests/qemuxml2argvdata/hostdev-vfio-zpci-wrong-arch.err
Normal file
1
tests/qemuxml2argvdata/hostdev-vfio-zpci-wrong-arch.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: This QEMU binary doesn't support zPCI
|
1
tests/qemuxml2argvdata/hostdev-vfio-zpci.err
Normal file
1
tests/qemuxml2argvdata/hostdev-vfio-zpci.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: This QEMU binary doesn't support zPCI
|
@ -0,0 +1 @@
|
||||
unsupported configuration: SCSI host address controller='0' bus='0' target='0' unit='0' in use by another SCSI host device
|
@ -0,0 +1 @@
|
||||
unsupported configuration: huge pages per NUMA node are not supported with this QEMU
|
1
tests/qemuxml2argvdata/hugepages-memaccess-invalid.err
Normal file
1
tests/qemuxml2argvdata/hugepages-memaccess-invalid.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: Invalid 'memAccess' attribute value 'invalid'
|
1
tests/qemuxml2argvdata/hugepages-memaccess3.err
Normal file
1
tests/qemuxml2argvdata/hugepages-memaccess3.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: memory access mode 'shared' not supported without guest numa node
|
1
tests/qemuxml2argvdata/hugepages-nodeset-nonexist.err
Normal file
1
tests/qemuxml2argvdata/hugepages-nodeset-nonexist.err
Normal file
@ -0,0 +1 @@
|
||||
hugepages: node 1 not found
|
@ -0,0 +1 @@
|
||||
hugepages: node 4 not found
|
@ -0,0 +1 @@
|
||||
unsupported configuration: IOMMU device: 'intel' is only supported with Q35 machines
|
1
tests/qemuxml2argvdata/iothreads-nocap.err
Normal file
1
tests/qemuxml2argvdata/iothreads-nocap.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: IOThreads not supported for this QEMU
|
1
tests/qemuxml2argvdata/luks-disk-invalid.err
Normal file
1
tests/qemuxml2argvdata/luks-disk-invalid.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: supplying <cipher> for domain disk definition is unnecessary
|
1
tests/qemuxml2argvdata/luks-disks-source-both.err
Normal file
1
tests/qemuxml2argvdata/luks-disks-source-both.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: an <encryption> definition already found for disk source
|
1
tests/qemuxml2argvdata/luks-disks-source-qcow2.err
Normal file
1
tests/qemuxml2argvdata/luks-disks-source-qcow2.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: LUKS encrypted QCOW2 images are not supported by this QEMU
|
@ -0,0 +1 @@
|
||||
unsupported configuration: Serial device with target type 'system-serial' and target model 'pl011' not compatible with guest architecture or machine type
|
1
tests/qemuxml2argvdata/machine-aeskeywrap-off-cap.err
Normal file
1
tests/qemuxml2argvdata/machine-aeskeywrap-off-cap.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: aes-key-wrap is not available with this QEMU binary
|
1
tests/qemuxml2argvdata/machine-aeskeywrap-off-caps.err
Normal file
1
tests/qemuxml2argvdata/machine-aeskeywrap-off-caps.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: aes-key-wrap is not available with this QEMU binary
|
1
tests/qemuxml2argvdata/machine-aeskeywrap-on-cap.err
Normal file
1
tests/qemuxml2argvdata/machine-aeskeywrap-on-cap.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: aes-key-wrap is not available with this QEMU binary
|
1
tests/qemuxml2argvdata/machine-aeskeywrap-on-caps.err
Normal file
1
tests/qemuxml2argvdata/machine-aeskeywrap-on-caps.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: aes-key-wrap is not available with this QEMU binary
|
1
tests/qemuxml2argvdata/machine-deakeywrap-off-cap.err
Normal file
1
tests/qemuxml2argvdata/machine-deakeywrap-off-cap.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: dea-key-wrap is not available with this QEMU binary
|
1
tests/qemuxml2argvdata/machine-deakeywrap-off-caps.err
Normal file
1
tests/qemuxml2argvdata/machine-deakeywrap-off-caps.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: dea-key-wrap is not available with this QEMU binary
|
1
tests/qemuxml2argvdata/machine-deakeywrap-on-cap.err
Normal file
1
tests/qemuxml2argvdata/machine-deakeywrap-on-cap.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: dea-key-wrap is not available with this QEMU binary
|
1
tests/qemuxml2argvdata/machine-deakeywrap-on-caps.err
Normal file
1
tests/qemuxml2argvdata/machine-deakeywrap-on-caps.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: dea-key-wrap is not available with this QEMU binary
|
@ -0,0 +1 @@
|
||||
internal error: invalid loadparm char '?', expecting chars in set of [a-zA-Z0-9.] and blank spaces
|
@ -0,0 +1 @@
|
||||
internal error: loadparm 'LOADPARM1' exceeds 8 characters
|
1
tests/qemuxml2argvdata/memory-align-fail.err
Normal file
1
tests/qemuxml2argvdata/memory-align-fail.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: memory size of NUMA node '0' overflowed after alignment
|
1
tests/qemuxml2argvdata/memory-hotplug-nonuma.err
Normal file
1
tests/qemuxml2argvdata/memory-hotplug-nonuma.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: At least one numa node has to be configured when enabling memory hotplug
|
1
tests/qemuxml2argvdata/minimal-no-memory.err
Normal file
1
tests/qemuxml2argvdata/minimal-no-memory.err
Normal file
@ -0,0 +1 @@
|
||||
XML error: Memory size must be specified via <memory> or in the <numa> configuration
|
1
tests/qemuxml2argvdata/misc-enable-s4.err
Normal file
1
tests/qemuxml2argvdata/misc-enable-s4.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: setting ACPI S4 not supported
|
1
tests/qemuxml2argvdata/missing-machine.err
Normal file
1
tests/qemuxml2argvdata/missing-machine.err
Normal file
@ -0,0 +1 @@
|
||||
unsupported configuration: Emulator '/usr/bin/qemu-system-i386' does not support arch 'alpha'
|
1
tests/qemuxml2argvdata/net-hostdev-fail.err
Normal file
1
tests/qemuxml2argvdata/net-hostdev-fail.err
Normal 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
|
1
tests/qemuxml2argvdata/net-vhostuser-fail.err
Normal file
1
tests/qemuxml2argvdata/net-vhostuser-fail.err
Normal 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
Loading…
x
Reference in New Issue
Block a user