]> xenbits.xensource.com Git - libvirt.git/commit
qemu: added tests of the new default video type selection algorithm
authorPavel Mores <pmores@redhat.com>
Mon, 25 Nov 2019 10:54:26 +0000 (11:54 +0100)
committerCole Robinson <crobinso@redhat.com>
Mon, 25 Nov 2019 13:47:08 +0000 (08:47 -0500)
commitd3f2a8bd472a6de9546ec5ab0593606bf443ffd2
treeae4721e1e47a7d9fa15426716708960be891365f
parent33a9757852e176b4a29889923041d45ef24b1fe9
qemu: added tests of the new default video type selection algorithm

The test case for x86_64 and neither cirrus nor vga capability is of the
xml2argv type because it actually fails to parse the XML at all [*] which
is something that xml2xml tests don't seem to handle.  xml2argv test fails
to produce a qemu argv for this case which xml2argv tests can handle.

[*] This is a consequence of the decision not to have a fallback if the
obvious choices (cirrus and vga) aren't viable due to missing QEMU caps.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Pavel Mores <pmores@redhat.com>
14 files changed:
tests/qemuxml2argvdata/default-video-type-aarch64.xml [new file with mode: 0644]
tests/qemuxml2argvdata/default-video-type-ppc64.xml [new file with mode: 0644]
tests/qemuxml2argvdata/default-video-type-riscv64.xml [new file with mode: 0644]
tests/qemuxml2argvdata/default-video-type-s390x.xml [new file with mode: 0644]
tests/qemuxml2argvdata/default-video-type-x86_64-caps-test-0.xml [new file with mode: 0644]
tests/qemuxml2argvdata/default-video-type-x86_64-caps-test-1.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/default-video-type-aarch64.aarch64-latest.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/default-video-type-ppc64.ppc64-latest.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/default-video-type-riscv64.riscv64-latest.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/default-video-type-s390x.s390x-latest.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-0.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-1.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c