From 72d13d37e39ec217188a948d9943d6602d4f577a Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 1 Dec 2023 23:09:48 +0100 Subject: [PATCH] virnetworkportxml2xmltest: Add simple versions of bridge/network tests Add versions stripping vlans and bandwidth setup so that they can be used in qemuxml2argvtest for interfaces which don't support the above. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- tests/virnetworkportxml2xmldata/plug-bridge-basic.xml | 11 +++++++++++ .../virnetworkportxml2xmldata/plug-network-basic.xml | 10 ++++++++++ tests/virnetworkportxml2xmltest.c | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 tests/virnetworkportxml2xmldata/plug-bridge-basic.xml create mode 100644 tests/virnetworkportxml2xmldata/plug-network-basic.xml diff --git a/tests/virnetworkportxml2xmldata/plug-bridge-basic.xml b/tests/virnetworkportxml2xmldata/plug-bridge-basic.xml new file mode 100644 index 0000000000..5569297b79 --- /dev/null +++ b/tests/virnetworkportxml2xmldata/plug-bridge-basic.xml @@ -0,0 +1,11 @@ + + 5d744f21-ba4a-4d6e-bdb2-30a35ff3207d + + memtest + d54df46f-1ab5-4a22-8618-4560ef5fac2c + + web1 + + + + diff --git a/tests/virnetworkportxml2xmldata/plug-network-basic.xml b/tests/virnetworkportxml2xmldata/plug-network-basic.xml new file mode 100644 index 0000000000..549b65a0d1 --- /dev/null +++ b/tests/virnetworkportxml2xmldata/plug-network-basic.xml @@ -0,0 +1,10 @@ + + 5d744f21-ba4a-4d6e-bdb2-30a35ff3207d + + memtest + d54df46f-1ab5-4a22-8618-4560ef5fac2c + + web1 + + + diff --git a/tests/virnetworkportxml2xmltest.c b/tests/virnetworkportxml2xmltest.c index 21e3c6f697..2949fa9638 100644 --- a/tests/virnetworkportxml2xmltest.c +++ b/tests/virnetworkportxml2xmltest.c @@ -81,11 +81,13 @@ mymain(void) DO_TEST("plug-none"); DO_TEST("plug-bridge"); + DO_TEST("plug-bridge-basic"); DO_TEST("plug-bridge-mactbl"); DO_TEST("plug-direct"); DO_TEST("plug-hostdev-pci"); DO_TEST("plug-hostdev-pci-unmanaged"); DO_TEST("plug-network"); + DO_TEST("plug-network-basic"); return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE; }