summaryrefslogtreecommitdiffstats
path: root/test/json-int64-min-max.test
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-02-07 09:36:16 +0100
committerGravatar Nikias Bassen2022-02-07 09:36:16 +0100
commitb8e9fedc5f1694164707c810dd9dae3f6468edb6 (patch)
tree5e84bba02328f44e8a51a5d9a4f2a91373adc772 /test/json-int64-min-max.test
parent2727078f8f2d94cd03344a3c83672b543d726b39 (diff)
downloadlibplist-b8e9fedc5f1694164707c810dd9dae3f6468edb6.tar.gz
libplist-b8e9fedc5f1694164707c810dd9dae3f6468edb6.tar.bz2
test: Add int64 min/max testcase for JSON parser
Diffstat (limited to 'test/json-int64-min-max.test')
-rwxr-xr-xtest/json-int64-min-max.test19
1 files changed, 19 insertions, 0 deletions
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