]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testutilsqemuschema: Add template checker for schema entries
authorPeter Krempa <pkrempa@redhat.com>
Thu, 6 Aug 2020 17:43:51 +0000 (19:43 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 Aug 2020 11:02:35 +0000 (13:02 +0200)
commit63a25dd821930e745cbbe3a11040e964ffa9ced5
tree7673bf28626afb00be08bc238f85fece8bb1a373
parent69980ab798e240923ef12f86a92665b6c9ff7292
testutilsqemuschema: Add template checker for schema entries

We'll need to match that a certain part of the qemu schema hasn't grown
new properties unexpectedly. Add a helper which matches an 'object' QMP
schema entry against a template and reports errors if expected types
don't match or new entries are added.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/testutilsqemuschema.c
tests/testutilsqemuschema.h