From b8e9fedc5f1694164707c810dd9dae3f6468edb6 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 7 Feb 2022 09:36:16 +0100 Subject: test: Add int64 min/max testcase for JSON parser --- test/json-int64-min-max.test | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 test/json-int64-min-max.test (limited to 'test/json-int64-min-max.test') diff --git a/test/json-int64-min-max.test b/test/json-int64-min-max.test new file mode 100755 index 0000000..f6ed731 --- /dev/null +++ b/test/json-int64-min-max.test @@ -0,0 +1,19 @@ +## -*- sh -*- + +set -e + +DATASRC=$top_srcdir/test/data +DATAOUT=$top_builddir/test/data +TESTFILE=int64_min_max.json + +if ! test -d "$DATAOUT"; then + mkdir -p $DATAOUT +fi + +export PLIST_JSON_DEBUG=1 + +echo "Converting" +$top_builddir/test/plist_jtest $DATASRC/$TESTFILE $DATAOUT/$TESTFILE.out + +echo "Comparing" +$top_builddir/test/plist_cmp $DATASRC/$TESTFILE $DATAOUT/$TESTFILE.out -- cgit v1.1-32-gdbae