]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Add title-and-description
authorAndrea Bolognani <abologna@redhat.com>
Fri, 26 Jan 2024 10:31:26 +0000 (11:31 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 30 Jan 2024 09:58:13 +0000 (10:58 +0100)
We have a few cases in qemuxmlconftest that cover the ability
to set <title> 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>
tests/genericxml2xmlindata/title-and-description.xml [new file with mode: 0644]
tests/genericxml2xmltest.c

diff --git a/tests/genericxml2xmlindata/title-and-description.xml b/tests/genericxml2xmlindata/title-and-description.xml
new file mode 100644 (file)
index 0000000..cc17339
--- /dev/null
@@ -0,0 +1,25 @@
+<domain type='qemu'>
+  <name>guest</name>
+  <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
+  <title>this is the guest title</title>
+  <description>
+    this is the
+    guest description
+  </description>
+  <memory unit='KiB'>219100</memory>
+  <currentMemory unit='KiB'>219100</currentMemory>
+  <vcpu placement='static'>1</vcpu>
+  <os>
+    <type arch='x86_64' machine='pc'>hvm</type>
+    <boot dev='hd'/>
+  </os>
+  <clock offset='utc'/>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>destroy</on_crash>
+  <devices>
+    <emulator>/usr/bin/qemu-system-x86_64</emulator>
+    <controller type='usb' index='0' model='none'/>
+    <memballoon model='none'/>
+  </devices>
+</domain>
index 19d08686df90e2c47d7f1221b2ec8de780f2e067..61613d21f94c362ef53ec86050f0ca87aea69e17 100644 (file)
@@ -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");