]> xenbits.xensource.com Git - libvirt.git/commit
tests: qemuxml2xml: Add proper domain status XML testing
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Mar 2018 15:47:32 +0000 (16:47 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 13 Mar 2018 12:54:11 +0000 (13:54 +0100)
commit99e30acfdceb5c57fbdc898a389058051595958b
tree7dc208f7ac172fc1a4e9d5ff9834918c02c0e9e4
parentc4a5b77ffb594d73d7a5e9542f8bbc47c85ece75
tests: qemuxml2xml: Add proper domain status XML testing

Add new approach to properly test status XML files by supplying a full
XML file rather than generating synthetic test cases by prepending the
status header. The two tests introduced here are copies of existing
cases using the synthetic header so that current level of testing is
kept. The files are chosen to excercising the vcpu and blockjob quirks
present in the current testing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tests/Makefile.am
tests/qemustatusxml2xmldata/blockjob-mirror-in.xml [new file with mode: 0644]
tests/qemustatusxml2xmldata/blockjob-mirror-out.xml [new symlink]
tests/qemustatusxml2xmldata/vcpus-multi-in.xml [new file with mode: 0644]
tests/qemustatusxml2xmldata/vcpus-multi-out.xml [new symlink]
tests/qemuxml2xmltest.c