diff options
author | Nikias Bassen | 2022-02-07 09:36:16 +0100 |
---|---|---|
committer | Nikias Bassen | 2022-02-07 09:36:16 +0100 |
commit | b8e9fedc5f1694164707c810dd9dae3f6468edb6 (patch) | |
tree | 5e84bba02328f44e8a51a5d9a4f2a91373adc772 /test/json-int64-min-max.test | |
parent | 2727078f8f2d94cd03344a3c83672b543d726b39 (diff) | |
download | libplist-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-x | test/json-int64-min-max.test | 19 |
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 |