[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 04/12] tests: qemuxml2argv: Test SD card with serial number



---
 tests/qemuxml2argvdata/qemuxml2argv-disk-serial.args    | 1 +
 tests/qemuxml2argvdata/qemuxml2argv-disk-serial.xml     | 5 +++++
 tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-serial.xml | 5 +++++
 3 files changed, 11 insertions(+)

diff --git a/tests/qemuxml2argvdata/qemuxml2argv-disk-serial.args b/tests/qemuxml2argvdata/qemuxml2argv-disk-serial.args
index a44af97fb7..18acb4f7af 100644
--- a/tests/qemuxml2argvdata/qemuxml2argv-disk-serial.args
+++ b/tests/qemuxml2argvdata/qemuxml2argv-disk-serial.args
@@ -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
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-disk-serial.xml b/tests/qemuxml2argvdata/qemuxml2argv-disk-serial.xml
index ccd78204bf..ea71f2c339 100644
--- a/tests/qemuxml2argvdata/qemuxml2argv-disk-serial.xml
+++ b/tests/qemuxml2argvdata/qemuxml2argv-disk-serial.xml
@@ -26,6 +26,11 @@
       <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'/>
diff --git a/tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-serial.xml b/tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-serial.xml
index 14625a4164..5a26e549df 100644
--- a/tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-serial.xml
+++ b/tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-serial.xml
@@ -26,6 +26,11 @@
       <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>
-- 
2.14.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]