]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2xmltest: switch TPM tests to use latest caps
authorJán Tomko <jtomko@redhat.com>
Tue, 20 Aug 2019 11:42:03 +0000 (13:42 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 22 Aug 2019 09:27:31 +0000 (11:27 +0200)
In preparation to moving the validation to the parser,
we need to supply the correct caps.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuxml2xmloutdata/tpm-emulator-tpm2-enc.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/tpm-emulator-tpm2-enc.xml with 89% similarity]
tests/qemuxml2xmloutdata/tpm-emulator-tpm2.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/tpm-emulator-tpm2.xml with 89% similarity]
tests/qemuxml2xmloutdata/tpm-emulator.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/tpm-emulator.xml with 89% similarity]
tests/qemuxml2xmloutdata/tpm-passthrough-crb.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/tpm-passthrough-crb.xml with 89% similarity]
tests/qemuxml2xmloutdata/tpm-passthrough.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/tpm-passthrough.xml with 89% similarity]
tests/qemuxml2xmltest.c

similarity index 89%
rename from tests/qemuxml2xmloutdata/tpm-emulator-tpm2-enc.xml
rename to tests/qemuxml2xmloutdata/tpm-emulator-tpm2-enc.x86_64-latest.xml
index 8902725097859f9e1febd28c4e33e3473f0bb108..dcd504310f553f461e83614ae078a5fe05f0443d 100644 (file)
@@ -18,7 +18,7 @@
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
-    <controller type='usb' index='0'>
+    <controller type='usb' index='0' model='piix3-uhci'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
@@ -30,7 +30,7 @@
       </backend>
     </tpm>
     <memballoon model='virtio'>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </memballoon>
   </devices>
 </domain>
similarity index 89%
rename from tests/qemuxml2xmloutdata/tpm-emulator-tpm2.xml
rename to tests/qemuxml2xmloutdata/tpm-emulator-tpm2.x86_64-latest.xml
index d30944c23d08338ad137c9d6c684a0be0f4bfcef..625aaa5f60a266f8f0730bc80b4edf83614cfe5f 100644 (file)
@@ -18,7 +18,7 @@
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
-    <controller type='usb' index='0'>
+    <controller type='usb' index='0' model='piix3-uhci'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
@@ -28,7 +28,7 @@
       <backend type='emulator' version='2.0'/>
     </tpm>
     <memballoon model='virtio'>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </memballoon>
   </devices>
 </domain>
similarity index 89%
rename from tests/qemuxml2xmloutdata/tpm-emulator.xml
rename to tests/qemuxml2xmloutdata/tpm-emulator.x86_64-latest.xml
index ec33402499ac64505acea3c4abcf8e7129b0634a..002af76c2104dab513b5e677b9ddeef1a2e7ac7b 100644 (file)
@@ -18,7 +18,7 @@
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
-    <controller type='usb' index='0'>
+    <controller type='usb' index='0' model='piix3-uhci'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
@@ -28,7 +28,7 @@
       <backend type='emulator' version='1.2'/>
     </tpm>
     <memballoon model='virtio'>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </memballoon>
   </devices>
 </domain>
similarity index 89%
rename from tests/qemuxml2xmloutdata/tpm-passthrough-crb.xml
rename to tests/qemuxml2xmloutdata/tpm-passthrough-crb.x86_64-latest.xml
index 67ada46846eaccd4e675c52f168172bc19b85def..ef68c2d0d7f63709b5a9d43709e31cccf0e66c3b 100644 (file)
@@ -18,7 +18,7 @@
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
-    <controller type='usb' index='0'>
+    <controller type='usb' index='0' model='piix3-uhci'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
@@ -30,7 +30,7 @@
       </backend>
     </tpm>
     <memballoon model='virtio'>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </memballoon>
   </devices>
 </domain>
similarity index 89%
rename from tests/qemuxml2xmloutdata/tpm-passthrough.xml
rename to tests/qemuxml2xmloutdata/tpm-passthrough.x86_64-latest.xml
index 8f9eca054d1e18211db8a534b31e91842f305156..2a99f35cf87d32f011095b55cc95acf1c58452cb 100644 (file)
@@ -18,7 +18,7 @@
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
-    <controller type='usb' index='0'>
+    <controller type='usb' index='0' model='piix3-uhci'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
@@ -30,7 +30,7 @@
       </backend>
     </tpm>
     <memballoon model='virtio'>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </memballoon>
   </devices>
 </domain>
index d7850a89d3cc2f0b079c1fadb9799cf15eec7a4e..e4e426c99b0eaff869ef02044d8aba5fb53f6121 100644 (file)
@@ -664,11 +664,11 @@ mymain(void)
     DO_TEST("numad-auto-memory-vcpu-cpuset", NONE);
     DO_TEST("usb-ich9-ehci-addr", NONE);
     DO_TEST("disk-copy_on_read", NONE);
-    DO_TEST("tpm-passthrough", NONE);
-    DO_TEST("tpm-passthrough-crb", NONE);
-    DO_TEST("tpm-emulator", NONE);
-    DO_TEST("tpm-emulator-tpm2", NONE);
-    DO_TEST("tpm-emulator-tpm2-enc", NONE);
+    DO_TEST_CAPS_LATEST("tpm-passthrough");
+    DO_TEST_CAPS_LATEST("tpm-passthrough-crb");
+    DO_TEST_CAPS_LATEST("tpm-emulator");
+    DO_TEST_CAPS_LATEST("tpm-emulator-tpm2");
+    DO_TEST_CAPS_LATEST("tpm-emulator-tpm2-enc");
 
     DO_TEST("metadata", NONE);
     DO_TEST("metadata-duplicate", NONE);