]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemu: Add infrastructure for QAPI schema testing
authorPeter Krempa <pkrempa@redhat.com>
Thu, 22 Mar 2018 16:07:43 +0000 (17:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 23 Mar 2018 13:52:07 +0000 (14:52 +0100)
commit98b6087e83b0730f9ffbbac84487dad664de3030
tree5b037cffedff3fa91ec88068852fc43c503cdbe0
parent5b57f57e2484d1dd83cf4929aa62b3cb5f3f839a
tests: qemu: Add infrastructure for QAPI schema testing

Add a function which will allow to test whether a JSON object conforms
to the QAPI schema. This greatly helps when developing formatters for
new JSON objects and will help make sure that the code will not break in
cases which have unit tests but were actually not function-tested
(mostly various disk access protocols).

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tests/Makefile.am
tests/qemumonitorjsontest.c
tests/testutilsqemuschema.c [new file with mode: 0644]
tests/testutilsqemuschema.h [new file with mode: 0644]