From d268f1b293e0e29b46b342c3889012d10784e9bd Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Fri, 26 Jan 2024 11:31:26 +0100 Subject: [PATCH] tests: Add title-and-description We have a few cases in qemuxmlconftest that cover the ability to set and <description> for a guest as a side effect. Introduce an explicit case for the functionality in genericxml2xmltest, as it's not specific to the QEMU driver. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> --- .../title-and-description.xml | 25 +++++++++++++++++++ tests/genericxml2xmltest.c | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 tests/genericxml2xmlindata/title-and-description.xml diff --git a/tests/genericxml2xmlindata/title-and-description.xml b/tests/genericxml2xmlindata/title-and-description.xml new file mode 100644 index 0000000000..cc17339619 --- /dev/null +++ b/tests/genericxml2xmlindata/title-and-description.xml @@ -0,0 +1,25 @@ +<domain type='qemu'> + <name>guest</name> + <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid> + <title>this is the guest title + + this is the + guest description + + 219100 + 219100 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + + + diff --git a/tests/genericxml2xmltest.c b/tests/genericxml2xmltest.c index 19d08686df..61613d21f9 100644 --- a/tests/genericxml2xmltest.c +++ b/tests/genericxml2xmltest.c @@ -178,6 +178,8 @@ mymain(void) DO_TEST_FAIL_ACTIVE("name-slash-fail"); + DO_TEST("title-and-description"); + DO_TEST("perf"); DO_TEST("vcpus-individual"); -- 2.47.2