From dddff1a01c3f3129842dd30a078cee25d7579771 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 17 Aug 2023 13:16:34 +0200 Subject: [PATCH] qemuxml2xmltest: Modernize all 'net-' tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- .../net-virtio-teaming-hostdev.xml | 5 ++++- ...th.xml => net-bandwidth.x86_64-latest.xml} | 5 ++++- ...2.xml => net-bandwidth2.x86_64-latest.xml} | 5 ++++- ...xml => net-hostdev-vfio.x86_64-latest.xml} | 5 ++++- tests/qemuxml2xmloutdata/net-user-passt.xml | 1 - ... => net-vdpa-multiqueue.x86_64-latest.xml} | 5 ++++- ...et-vdpa.xml => net-vdpa.x86_64-latest.xml} | 5 ++++- ...-virtio-teaming-hostdev.x86_64-latest.xml} | 0 ...-virtio-teaming-network.x86_64-latest.xml} | 5 ++++- ...l => net-virtio-teaming.x86_64-latest.xml} | 5 ++++- tests/qemuxml2xmltest.c | 19 ++++++++----------- 11 files changed, 40 insertions(+), 20 deletions(-) rename tests/qemuxml2xmloutdata/{net-bandwidth.xml => net-bandwidth.x86_64-latest.xml} (94%) rename tests/qemuxml2xmloutdata/{net-bandwidth2.xml => net-bandwidth2.x86_64-latest.xml} (93%) rename tests/qemuxml2xmloutdata/{net-hostdev-vfio.xml => net-hostdev-vfio.x86_64-latest.xml} (92%) delete mode 120000 tests/qemuxml2xmloutdata/net-user-passt.xml rename tests/qemuxml2xmloutdata/{net-vdpa-multiqueue.xml => net-vdpa-multiqueue.x86_64-latest.xml} (88%) rename tests/qemuxml2xmloutdata/{net-vdpa.xml => net-vdpa.x86_64-latest.xml} (88%) rename tests/qemuxml2xmloutdata/{net-virtio-teaming-hostdev.xml => net-virtio-teaming-hostdev.x86_64-latest.xml} (100%) rename tests/qemuxml2xmloutdata/{net-virtio-teaming-network.xml => net-virtio-teaming-network.x86_64-latest.xml} (92%) rename tests/qemuxml2xmloutdata/{net-virtio-teaming.xml => net-virtio-teaming.x86_64-latest.xml} (94%) diff --git a/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml b/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml index 46171ddf09..0df38ec42d 100644 --- a/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml +++ b/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml @@ -8,6 +8,9 @@ hvm + + qemu64 + destroy restart @@ -20,7 +23,7 @@
- +
diff --git a/tests/qemuxml2xmloutdata/net-bandwidth.xml b/tests/qemuxml2xmloutdata/net-bandwidth.x86_64-latest.xml similarity index 94% rename from tests/qemuxml2xmloutdata/net-bandwidth.xml rename to tests/qemuxml2xmloutdata/net-bandwidth.x86_64-latest.xml index 7d5c552202..7d634d8940 100644 --- a/tests/qemuxml2xmloutdata/net-bandwidth.xml +++ b/tests/qemuxml2xmloutdata/net-bandwidth.x86_64-latest.xml @@ -15,6 +15,9 @@ + + qemu64 + destroy restart @@ -34,7 +37,7 @@
- +
diff --git a/tests/qemuxml2xmloutdata/net-bandwidth2.xml b/tests/qemuxml2xmloutdata/net-bandwidth2.x86_64-latest.xml similarity index 93% rename from tests/qemuxml2xmloutdata/net-bandwidth2.xml rename to tests/qemuxml2xmloutdata/net-bandwidth2.x86_64-latest.xml index 7d5209a64a..9ec0172dfc 100644 --- a/tests/qemuxml2xmloutdata/net-bandwidth2.xml +++ b/tests/qemuxml2xmloutdata/net-bandwidth2.x86_64-latest.xml @@ -15,6 +15,9 @@ + + qemu64 + destroy restart @@ -27,7 +30,7 @@
- +
diff --git a/tests/qemuxml2xmloutdata/net-hostdev-vfio.xml b/tests/qemuxml2xmloutdata/net-hostdev-vfio.x86_64-latest.xml similarity index 92% rename from tests/qemuxml2xmloutdata/net-hostdev-vfio.xml rename to tests/qemuxml2xmloutdata/net-hostdev-vfio.x86_64-latest.xml index 5d9696afd5..167e1b1fea 100644 --- a/tests/qemuxml2xmloutdata/net-hostdev-vfio.xml +++ b/tests/qemuxml2xmloutdata/net-hostdev-vfio.x86_64-latest.xml @@ -8,6 +8,9 @@ hvm + + qemu64 + destroy restart @@ -20,7 +23,7 @@
- +
diff --git a/tests/qemuxml2xmloutdata/net-user-passt.xml b/tests/qemuxml2xmloutdata/net-user-passt.xml deleted file mode 120000 index cfbc023ada..0000000000 --- a/tests/qemuxml2xmloutdata/net-user-passt.xml +++ /dev/null @@ -1 +0,0 @@ -../qemuxml2argvdata/net-user-passt.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/net-vdpa-multiqueue.xml b/tests/qemuxml2xmloutdata/net-vdpa-multiqueue.x86_64-latest.xml similarity index 88% rename from tests/qemuxml2xmloutdata/net-vdpa-multiqueue.xml rename to tests/qemuxml2xmloutdata/net-vdpa-multiqueue.x86_64-latest.xml index 0876d5df62..71d171764d 100644 --- a/tests/qemuxml2xmloutdata/net-vdpa-multiqueue.xml +++ b/tests/qemuxml2xmloutdata/net-vdpa-multiqueue.x86_64-latest.xml @@ -8,13 +8,16 @@ hvm + + qemu64 + destroy restart destroy /usr/bin/qemu-system-x86_64 - +
diff --git a/tests/qemuxml2xmloutdata/net-vdpa.xml b/tests/qemuxml2xmloutdata/net-vdpa.x86_64-latest.xml similarity index 88% rename from tests/qemuxml2xmloutdata/net-vdpa.xml rename to tests/qemuxml2xmloutdata/net-vdpa.x86_64-latest.xml index 0c7ff151d7..407b25de40 100644 --- a/tests/qemuxml2xmloutdata/net-vdpa.xml +++ b/tests/qemuxml2xmloutdata/net-vdpa.x86_64-latest.xml @@ -8,13 +8,16 @@ hvm + + qemu64 + destroy restart destroy /usr/bin/qemu-system-x86_64 - +
diff --git a/tests/qemuxml2xmloutdata/net-virtio-teaming-hostdev.xml b/tests/qemuxml2xmloutdata/net-virtio-teaming-hostdev.x86_64-latest.xml similarity index 100% rename from tests/qemuxml2xmloutdata/net-virtio-teaming-hostdev.xml rename to tests/qemuxml2xmloutdata/net-virtio-teaming-hostdev.x86_64-latest.xml diff --git a/tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml b/tests/qemuxml2xmloutdata/net-virtio-teaming-network.x86_64-latest.xml similarity index 92% rename from tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml rename to tests/qemuxml2xmloutdata/net-virtio-teaming-network.x86_64-latest.xml index 99da3de48b..dcb2339035 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-teaming-network.x86_64-latest.xml @@ -8,6 +8,9 @@ hvm + + qemu64 + destroy restart @@ -20,7 +23,7 @@
- +
diff --git a/tests/qemuxml2xmloutdata/net-virtio-teaming.xml b/tests/qemuxml2xmloutdata/net-virtio-teaming.x86_64-latest.xml similarity index 94% rename from tests/qemuxml2xmloutdata/net-virtio-teaming.xml rename to tests/qemuxml2xmloutdata/net-virtio-teaming.x86_64-latest.xml index 05a1dd1d2f..0c744f795c 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-teaming.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-teaming.x86_64-latest.xml @@ -8,6 +8,9 @@ hvm + + qemu64 + destroy restart @@ -20,7 +23,7 @@
- +
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 49cd2310df..5e7430f0cb 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -426,28 +426,25 @@ mymain(void) DO_TEST_CAPS_LATEST("net-eth-unmanaged-tap"); DO_TEST_CAPS_LATEST("net-virtio-network-portgroup"); DO_TEST_CAPS_LATEST("net-virtio-rxtxqueuesize"); - DO_TEST("net-virtio-teaming", - QEMU_CAPS_DEVICE_VFIO_PCI); - DO_TEST("net-virtio-teaming-network", - QEMU_CAPS_DEVICE_VFIO_PCI); - DO_TEST("net-virtio-teaming-hostdev", - QEMU_CAPS_DEVICE_VFIO_PCI); + DO_TEST_CAPS_LATEST("net-virtio-teaming"); + DO_TEST_CAPS_LATEST("net-virtio-teaming-network"); + DO_TEST_CAPS_LATEST("net-virtio-teaming-hostdev"); DO_TEST_CAPS_LATEST("net-isolated-port"); DO_TEST_CAPS_LATEST("net-hostdev"); DO_TEST_CAPS_LATEST("net-hostdev-bootorder"); - DO_TEST("net-hostdev-vfio", QEMU_CAPS_DEVICE_VFIO_PCI); + DO_TEST_CAPS_LATEST("net-hostdev-vfio"); DO_TEST_CAPS_LATEST("net-midonet"); DO_TEST_CAPS_LATEST("net-openvswitch"); DO_TEST_CAPS_LATEST("sound-device"); DO_TEST_CAPS_LATEST("watchdog"); DO_TEST_CAPS_LATEST("watchdog-q35-multiple"); - DO_TEST("net-bandwidth", QEMU_CAPS_DEVICE_VGA, QEMU_CAPS_VNC); - DO_TEST("net-bandwidth2", QEMU_CAPS_DEVICE_VGA, QEMU_CAPS_VNC); + DO_TEST_CAPS_LATEST("net-bandwidth"); + DO_TEST_CAPS_LATEST("net-bandwidth2"); DO_TEST_CAPS_LATEST("net-mtu"); DO_TEST_CAPS_LATEST("net-coalesce"); DO_TEST_CAPS_LATEST("net-many-models"); - DO_TEST("net-vdpa", QEMU_CAPS_NETDEV_VHOST_VDPA); - DO_TEST("net-vdpa-multiqueue", QEMU_CAPS_NETDEV_VHOST_VDPA); + DO_TEST_CAPS_LATEST("net-vdpa"); + DO_TEST_CAPS_LATEST("net-vdpa-multiqueue"); DO_TEST_CAPS_LATEST("net-virtio-rss"); DO_TEST_CAPS_LATEST("serial-tcp-tlsx509-chardev");