]> xenbits.xensource.com Git - libvirt.git/commit
tests: qemublock: Add testing of blockdev JSON property generator
authorPeter Krempa <pkrempa@redhat.com>
Fri, 23 Mar 2018 08:06:40 +0000 (09:06 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 13:48:10 +0000 (15:48 +0200)
commit8f60653de30dd146f4a5ec1936f9194faca60f21
treea3dff49d8fe85b4fc166b1b9a72290ec2cb5f9c5
parent30a772170221f885e6d591bfc4e0cd2828e79dfc
tests: qemublock: Add testing of blockdev JSON property generator

Add a test infrastructure that will allow testing the JSON object
generator used for generating data to use with blockdev-add.

The resulting disk including the backing chain is validated to conform
to the QAPI schema and the expected output files.

The first test cases make sure that libvirt will not allow nodenames
exceeding 31 chars.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tests/Makefile.am
tests/qemublocktest.c
tests/qemublocktestdata/xml2json/nodename-long-format.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/nodename-long-protocol.xml [new file with mode: 0644]