]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxmlconftest: Add test cases for broken and missing XML files
authorPeter Krempa <pkrempa@redhat.com>
Thu, 8 Aug 2024 07:14:11 +0000 (09:14 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 9 Aug 2024 14:34:33 +0000 (16:34 +0200)
commit71f14351f9b6ef3294c86df22751a7eaf019b4e2
tree82c253b966997c3993da8b3622f6a192e04b2abc
parent4dc889a62611efd902feaea08c552cf81dcf235c
qemuxmlconftest: Add test cases for broken and missing XML files

Add test cases for few edge cases which excercise the XML reporting from
libxml2 in anticipation of upcoming changes of behaviour.

'virschematest' must skip parsing of the broken file altogether so this
patch adds infrastructure to allow that.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuxmlconfdata/broken-xml-invalid.x86_64-latest.err [new file with mode: 0644]
tests/qemuxmlconfdata/broken-xml-invalid.xml [new file with mode: 0644]
tests/qemuxmlconfdata/nonexistent-file.x86_64-latest.err [new file with mode: 0644]
tests/qemuxmlconftest.c
tests/testutilsqemu.h
tests/virschematest.c