From 2d20f0bb05175d18513220bccd1dbaa207cc4c6a Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 11 Oct 2021 14:30:58 +0200 Subject: [PATCH] qemuxml2argvtest: Use real-caps testing for 'acpi-hotplug-bridge-disable' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We can use real example configs to prove the support without the need for using fake capabilities. Fix the recently added test cases. The negative case for 'pc-i440fx-acpi-hotplug-bridge-disable' is removed completely as there is no real qemu libvirt supports which wouldn't have the capability. The input file for the negative test on aarch64 is modified so that it's actually a reasonably valid VM config. Fixes: bef0f0d8be6 Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- ...hotplug-bridge-disable.aarch64-latest.err} | 0 .../aarch64-acpi-hotplug-bridge-disable.xml | 22 +------------------ ...hotplug-bridge-disable.x86_64-latest.args} | 15 ++++++++----- .../q35-acpi-hotplug-bridge-disable.err | 1 - ...i-hotplug-bridge-disable.x86_64-6.0.0.err} | 0 ...hotplug-bridge-disable.x86_64-latest.args} | 14 +++++++----- tests/qemuxml2argvtest.c | 17 ++++---------- 7 files changed, 23 insertions(+), 46 deletions(-) rename tests/qemuxml2argvdata/{aarch64-acpi-hotplug-bridge-disable.err => aarch64-acpi-hotplug-bridge-disable.aarch64-latest.err} (100%) rename tests/qemuxml2argvdata/{pc-i440fx-acpi-hotplug-bridge-disable.args => pc-i440fx-acpi-hotplug-bridge-disable.x86_64-latest.args} (55%) delete mode 100644 tests/qemuxml2argvdata/q35-acpi-hotplug-bridge-disable.err rename tests/qemuxml2argvdata/{pc-i440fx-acpi-hotplug-bridge-disable.err => q35-acpi-hotplug-bridge-disable.x86_64-6.0.0.err} (100%) rename tests/qemuxml2argvdata/{q35-acpi-hotplug-bridge-disable.args => q35-acpi-hotplug-bridge-disable.x86_64-latest.args} (61%) diff --git a/tests/qemuxml2argvdata/aarch64-acpi-hotplug-bridge-disable.err b/tests/qemuxml2argvdata/aarch64-acpi-hotplug-bridge-disable.aarch64-latest.err similarity index 100% rename from tests/qemuxml2argvdata/aarch64-acpi-hotplug-bridge-disable.err rename to tests/qemuxml2argvdata/aarch64-acpi-hotplug-bridge-disable.aarch64-latest.err diff --git a/tests/qemuxml2argvdata/aarch64-acpi-hotplug-bridge-disable.xml b/tests/qemuxml2argvdata/aarch64-acpi-hotplug-bridge-disable.xml index 0d5f945bd7..47107e93f3 100644 --- a/tests/qemuxml2argvdata/aarch64-acpi-hotplug-bridge-disable.xml +++ b/tests/qemuxml2argvdata/aarch64-acpi-hotplug-bridge-disable.xml @@ -1,33 +1,13 @@ - i440fx - 56f5055c-1b8d-490c-844a-ad646a1caaaa + test 1048576 - 1048576 1 hvm - - - destroy - restart - destroy - - /usr/bin/qemu-system-aarch64 - -
- - - - -