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