]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
tests: More output options for xml2xml tests
authorJiri Denemark <jdenemar@redhat.com>
Thu, 17 Apr 2014 13:23:21 +0000 (15:23 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 24 Apr 2014 14:07:17 +0000 (16:07 +0200)
commit022ccd3d6226a3830b1f293f4271de2b01194f52
tree68fbfe98224d5db53db6891e57a77c58356c876d
parent546154e3d4ea5b16491365c63419f92a9981bb1f
tests: More output options for xml2xml tests

So far, qemuxml2xml test was only able to check if the result matches
the original or the appropriate XML in qemuxml2xmloutdata regardless on
flags used to format the XML. Since the result can be different
depending on VIR_DOMAIN_XML_INACTIVE flag being used or not, this patch
adds support for qemuxml2xmlout-%s-active.xml and
qemuxml2xmlout-%s-inactive.xml output files. If the file specific to the
flag used exists, it is used in preference to the generic
qemuxml2xmlout-%s.xml file when reading the expected output.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/qemuxml2xmltest.c