[libvirt] [PATCH 12/12] tests: Add testing of storage backend JSON props formatter
Ján Tomko
jtomko at redhat.com
Sun Nov 5 15:04:56 UTC 2017
On Fri, Nov 03, 2017 at 03:29:29PM +0100, Peter Krempa wrote:
>Add a new test program called 'qemublocktest' to test the block layer
>related stuff and test storage source to JSON generator by comparing it
>to the JSON parser.
>---
> tests/Makefile.am | 14 +++-
> tests/qemublocktest.c | 189 ++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 202 insertions(+), 1 deletion(-)
> create mode 100644 tests/qemublocktest.c
>
[...]
>+static int
>+testBackingXMLjsonXML(const void *args)
>+{
[...]
>+
>+ ret = 0;
>+
>+ cleanup:
>+ virStorageSourceFree(xmlsrc);
>+ virStorageSourceFree(jsonsrc);
>+ VIR_FREE(propsstr);
>+ VIR_FREE(protocolwrapper);
>+ VIR_FREE(actualxml);
>+ virJSONValueFree(backendprops);
>+ virJSONValueFree(wrapper);
>+ virBufferFreeAndReset(&buf);
xmlXPathFreeContext(ctxt);
Jan
>+ xmlFreeDoc(xml);
>+
>+ return ret;
>+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20171105/4d53e459/attachment-0001.sig>
More information about the libvir-list
mailing list