tests: add ich6 codec type test to qemuxml2argv-sound-device

Test new codec type element.
This commit is contained in:
Marc-André Lureau 2012-05-16 00:55:11 +02:00 committed by Eric Blake
parent a7675a6ba5
commit d9a269bc74
4 changed files with 15 additions and 3 deletions

View 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

View File

@ -17,12 +17,19 @@
<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>

View 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);

View 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");