[libvirt] [PATCHv2 07/14] virjsontest: introduce DO_TEST_PARSE_FILE

Peter Krempa pkrempa at redhat.com
Wed Apr 3 09:21:31 UTC 2019


On Tue, Apr 02, 2019 at 17:41:46 +0200, Ján Tomko wrote:
> Introduce a new macro DO_TEST_PARSE_FILE which takes the input JSON
> from a file instead of a C string.
> 
> This lets us get rid of quote escaping and makes the JSON easier to
> edit.
> 
> The output JSON is still taken from a string and will be moved
> separately.
> 
> Signed-off-by: Ján Tomko <jtomko at redhat.com>
> ---
>  tests/virjsondata/parse-Harder-in.json      |   4 +
>  tests/virjsondata/parse-NotSoSimple-in.json |   3 +
>  tests/virjsondata/parse-Simple-in.json      |   1 +
>  tests/virjsondata/parse-VeryHard-in.json    |  24 ++++
>  tests/virjsontest.c                         | 129 +++++++++++++-------
>  5 files changed, 118 insertions(+), 43 deletions(-)
>  create mode 100644 tests/virjsondata/parse-Harder-in.json
>  create mode 100644 tests/virjsondata/parse-NotSoSimple-in.json
>  create mode 100644 tests/virjsondata/parse-Simple-in.json
>  create mode 100644 tests/virjsondata/parse-VeryHard-in.json

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190403/d836abec/attachment-0001.sig>


More information about the libvir-list mailing list