]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: qemuxml2argv: Test SD card with serial number
authorPeter Krempa <pkrempa@redhat.com>
Mon, 20 Nov 2017 11:16:53 +0000 (12:16 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Nov 2017 19:37:35 +0000 (20:37 +0100)
tests/qemuxml2argvdata/qemuxml2argv-disk-serial.args
tests/qemuxml2argvdata/qemuxml2argv-disk-serial.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-serial.xml

index a44af97fb735d4750ca04f9af4f390ff9afe0f9e..18acb4f7af71c055224c7fa52d3ed5cc4fe0e886 100644 (file)
@@ -25,4 +25,5 @@ serial=\ \ WD-WMAP9A966149' \
 -drive 'file=/dev/HostVG/AllSerialChars,format=raw,if=none,id=drive-ide0-0-2,\
 serial=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_\ .+' \
 -device ide-drive,bus=ide.0,unit=2,drive=drive-ide0-0-2,id=ide0-0-2 \
+-drive file=/some/file,format=raw,if=sd,index=0,serial=sdserial \
 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
index ccd78204bf3a1927023dce65cd9999ab504d9d0a..ea71f2c3395363dbf8d1f003f95af259ffb96cfd 100644 (file)
       <serial>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_ .+</serial>
       <address type='drive' controller='0' bus='0' target='0' unit='2'/>
     </disk>
+    <disk type='file' device='disk'>
+      <source file='/some/file'/>
+      <target dev='sda' bus='sd'/>
+      <serial>sdserial</serial>
+    </disk>
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <memballoon model='virtio'/>
index 14625a416435c5688775767cd3fc9f7ab377d879..5a26e549df8064e9bfe5d7d70847657705b4b060 100644 (file)
       <serial>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_ .+</serial>
       <address type='drive' controller='0' bus='0' target='0' unit='2'/>
     </disk>
+    <disk type='file' device='disk'>
+      <source file='/some/file'/>
+      <target dev='sda' bus='sd'/>
+      <serial>sdserial</serial>
+    </disk>
     <controller type='usb' index='0'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
     </controller>