]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Adjust tests for encrypted storage
authorJohn Ferlan <jferlan@redhat.com>
Mon, 6 Jun 2016 12:57:38 +0000 (08:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 21 Jun 2016 18:31:19 +0000 (14:31 -0400)
Make them work again...  The xml2xml had been working, but the xml2argv
were not working. Making the xml2argv work required a few adjustments to
the xml to update to more recent times.

Signed-off-by: John Ferlan <jferlan@redhat.com>
tests/qemuxml2argvdata/qemuxml2argv-encrypted-disk.args
tests/qemuxml2argvdata/qemuxml2argv-encrypted-disk.xml
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-encrypted-disk.xml

index 206632c726d801145487ef1581c51163d4d7bb7c..4371413230c1f5946c5c52faa45d592432478897 100644 (file)
@@ -1,28 +1,24 @@
 LC_ALL=C \
-PATH=/sbin:/usr/sbin:/bin:/usr/bin \
-HOME=/root \
-USER=root \
-LOGNAME=root \
+PATH=/bin \
+HOME=/home/test \
+USER=test \
+LOGNAME=test \
+QEMU_AUDIO_DRV=none \
 /usr/bin/qemu \
 -name encryptdisk \
 -S \
--M pc-0.13 \
+-M pc \
 -m 1024 \
--smp 1,sockets=1,cores=1,threads=1 \
--uuid 496898a6-e6ff-f7c8-5dc2-3cf410945ee9 \
+-smp 1 \
 -uuid 496898a6-e6ff-f7c8-5dc2-3cf410945ee9 \
 -nographic \
--nodefconfig \
 -nodefaults \
--chardev socket,id=monitor,path=//var/lib/libvirt/qemu/encryptdisk.monitor,\
-server,nowait \
--mon chardev=monitor,mode=readline \
--rtc base=utc \
+-monitor unix:/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
 -no-acpi \
 -boot c \
 -usb \
--drive file=/storage/guest_disks/encryptdisk,format=raw,if=none,\
-id=drive-virtio-disk0,\,boot=on \
--device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
+-drive file=/storage/guest_disks/encryptdisk,format=qcow2,if=none,\
+id=drive-virtio-disk0 \
+-device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
 id=virtio-disk0 \
 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
index 6de570a8678037e1982b5a1a5ff3b1d1b6c693ba..f2122f006867b05d1977d0c6daf5aa23991455e9 100644 (file)
@@ -1,11 +1,11 @@
-<domain type='kvm'>
+<domain type='qemu'>
   <name>encryptdisk</name>
   <uuid>496898a6-e6ff-f7c8-5dc2-3cf410945ee9</uuid>
   <memory unit='KiB'>1048576</memory>
   <currentMemory unit='KiB'>524288</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
-    <type arch='i686' machine='pc-0.13'>hvm</type>
+    <type arch='i686' machine='pc'>hvm</type>
     <boot dev='hd'/>
   </os>
   <clock offset='utc'/>
index 41e0ac4d8bd985302ecc4bd518989d58389bcdc3..d882f118ac3a6288147d2f4ead0c52061d3b1ab1 100644 (file)
@@ -1339,6 +1339,8 @@ mymain(void)
     DO_TEST("cpu-Haswell-noTSX", QEMU_CAPS_KVM);
     driver.caps->host.cpu = cpuDefault;
 
+    DO_TEST("encrypted-disk", NONE);
+
     DO_TEST("memtune", NONE);
     DO_TEST("memtune-unlimited", NONE);
     DO_TEST("blkiotune", NONE);
index 038a0e770e083729d6de96c2da8acc47f074cd44..1616d2e7858e00e36c3474a6ec1dd036238e5f8f 100644 (file)
@@ -1,11 +1,11 @@
-<domain type='kvm'>
+<domain type='qemu'>
   <name>encryptdisk</name>
   <uuid>496898a6-e6ff-f7c8-5dc2-3cf410945ee9</uuid>
   <memory unit='KiB'>1048576</memory>
   <currentMemory unit='KiB'>524288</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
-    <type arch='i686' machine='pc-0.13'>hvm</type>
+    <type arch='i686' machine='pc'>hvm</type>
     <boot dev='hd'/>
   </os>
   <clock offset='utc'/>