From: Andrea Bolognani Date: Fri, 26 Jan 2024 10:31:26 +0000 (+0100) Subject: tests: Add title-and-description X-Git-Tag: v10.1.0-rc1~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d268f1b293e0e29b46b342c3889012d10784e9bd;p=thirdparty%2Flibvirt.git 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> --- 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");