]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: add ich6 codec type test to qemuxml2argv-sound-device
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Tue, 15 May 2012 22:55:11 +0000 (00:55 +0200)
committerEric Blake <eblake@redhat.com>
Thu, 17 May 2012 17:43:35 +0000 (11:43 -0600)
Test new codec type element.

tests/qemuxml2argvdata/qemuxml2argv-sound-device.args
tests/qemuxml2argvdata/qemuxml2argv-sound-device.xml
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c

index 0a09c415f8285142779a3364fbcb6bea236b6cf5..4a7129b356090a2862aa3f4bd0da71f51603bcc8 100644 (file)
@@ -4,5 +4,8 @@ unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -hda \
 /dev/HostVG/QEMUGuest1 -usb -soundhw pcspk -device ES1370,id=sound1,bus=pci.0,\
 addr=0x3 -device sb16,id=sound2 -device AC97,id=sound3,bus=pci.0,addr=0x4 \
 -device intel-hda,id=sound4,bus=pci.0,addr=0x5 -device hda-duplex,\
-id=sound4-codec0,bus=sound4.0,cad=0 -device virtio-balloon-pci,id=balloon0,\
-bus=pci.0,addr=0x6
+id=sound4-codec0,bus=sound4.0,cad=0 \
+-device intel-hda,id=sound5,bus=pci.0,addr=0x6 \
+-device hda-micro,id=sound5-codec0,bus=sound5.0,cad=0 \
+-device hda-duplex,id=sound5-codec1,bus=sound5.0,cad=1 \
+-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7
index 33ec56988970ace18039f4228e0fca95c70b6828..c588a24afd069127162b793a477ccc1f01c280d8 100644 (file)
     <disk type='block' device='disk'>
       <source dev='/dev/HostVG/QEMUGuest1'/>
       <target dev='hda' bus='ide'/>
+      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
     </disk>
+    <controller type='usb' index='0'/>
+    <controller type='ide' index='0'/>
     <sound model='pcspk'/>
     <sound model='es1370'/>
     <sound model='sb16'/>
     <sound model='ac97'/>
     <sound model='ich6'/>
+    <sound model='ich6'>
+      <codec type='micro'/>
+      <codec type='duplex'/>
+    </sound>
     <memballoon model='virtio'/>
   </devices>
 </domain>
index c0734291b0b52a8ae9865de515b621243f2d0700..617b178e08f12fe6891e62fcdcf243489aa2c83d 100644 (file)
@@ -680,7 +680,8 @@ mymain(void)
             QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG);
     DO_TEST("sound", false, NONE);
     DO_TEST("sound-device", false,
-            QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG, QEMU_CAPS_HDA_DUPLEX);
+            QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG,
+            QEMU_CAPS_HDA_DUPLEX, QEMU_CAPS_HDA_MICRO);
     DO_TEST("fs9p", false,
             QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG, QEMU_CAPS_FSDEV,
             QEMU_CAPS_FSDEV_WRITEOUT);
index de760644f0250225b5ccd9457755d380acce45b4..dcdba4fc665392ae0e98ff8c690946d3670293cf 100644 (file)
@@ -179,6 +179,7 @@ mymain(void)
     DO_TEST("net-virtio-network-portgroup");
     DO_TEST("net-hostdev");
     DO_TEST("sound");
+    DO_TEST("sound-device");
     DO_TEST("net-bandwidth");
 
     DO_TEST("serial-vc");