]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2argvtest: Refactor QAPI schema validation code
authorPeter Krempa <pkrempa@redhat.com>
Fri, 24 Sep 2021 11:28:57 +0000 (13:28 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:00 +0000 (10:26 +0200)
commitdebc33ef84d348d08d526c7891b5cd93a7517408
treefea37e75e92df3522c2ad46865e8b1d84ea35e53
parent803d3f2ca0005a685d5045549eb1732518d3c3d7
qemuxml2argvtest: Refactor QAPI schema validation code

Prevent duplication of code when extending the validator for new
commands. Add a struct describing a command to validate and make the
validation loop a bit more robust to corner cases.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvtest.c