]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: domcaps: Add a default 'empty' test
authorCole Robinson <crobinso@redhat.com>
Tue, 19 Feb 2019 17:44:34 +0000 (12:44 -0500)
committerCole Robinson <crobinso@redhat.com>
Mon, 18 Mar 2019 14:51:02 +0000 (10:51 -0400)
The 'empty' demonstrates XML generated when only bare minimum caps
data has been filled in. This will demonstrate changes that alter
the default XML output.

Acked-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
tests/domaincapsschemadata/empty.xml [new file with mode: 0644]
tests/domaincapstest.c

diff --git a/tests/domaincapsschemadata/empty.xml b/tests/domaincapsschemadata/empty.xml
new file mode 100644 (file)
index 0000000..2b2e97d
--- /dev/null
@@ -0,0 +1,25 @@
+<domainCapabilities>
+  <path>/bin/emulatorbin</path>
+  <domain>kvm</domain>
+  <machine>my-machine-type</machine>
+  <arch>x86_64</arch>
+  <iothreads supported='no'/>
+  <os supported='no'/>
+  <cpu>
+    <mode name='host-passthrough' supported='no'/>
+    <mode name='host-model' supported='no'/>
+    <mode name='custom' supported='no'/>
+  </cpu>
+  <devices>
+    <disk supported='no'/>
+    <graphics supported='no'/>
+    <video supported='no'/>
+    <hostdev supported='no'/>
+  </devices>
+  <features>
+    <gic supported='no'/>
+    <vmcoreinfo supported='no'/>
+    <genid supported='no'/>
+    <sev supported='no'/>
+  </features>
+</domainCapabilities>
index 3be2806a486f6439c8a600341c4115ee10a1454e..b5bf4c234fa70ad9eeb39a2c40713c4a0ff00836 100644 (file)
@@ -433,6 +433,9 @@ mymain(void)
         VIR_FREE(name); \
     } while (0)
 
+    DO_TEST("empty", "/bin/emulatorbin", "my-machine-type",
+            "x86_64", VIR_DOMAIN_VIRT_KVM, CAPS_NONE);
+
 #if WITH_QEMU
 
     DO_TEST_QEMU("1.7.0", "caps_1.7.0",