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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux