summaryrefslogtreecommitdiffstats
path: root/test/json2.test
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-01-25 01:47:59 +0100
committerGravatar Nikias Bassen2022-01-25 01:47:59 +0100
commit17da5ba554426d732fc850e7211bae7d3a7c016e (patch)
treeb938249a788fee95839693a37315ec03e62a2b67 /test/json2.test
parentcef7ab796bbaca1609455aa93e73e64864d04a00 (diff)
downloadlibplist-17da5ba554426d732fc850e7211bae7d3a7c016e.tar.gz
libplist-17da5ba554426d732fc850e7211bae7d3a7c016e.tar.bz2
test: Add additional JSON test case
Diffstat (limited to 'test/json2.test')
-rwxr-xr-xtest/json2.test11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/json2.test b/test/json2.test
index 06a7007..1329016 100755
--- a/test/json2.test
+++ b/test/json2.test
@@ -4,7 +4,7 @@ set -e
DATASRC=$top_srcdir/test/data
DATAOUT=$top_builddir/test/data
-TESTFILE=entities.plist
+TESTFILE=j2.plist
if ! test -d "$DATAOUT"; then
mkdir -p $DATAOUT
@@ -12,11 +12,8 @@ fi
export PLIST_JSON_DEBUG=1
-echo "Converting input file to JSON"
-$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE -o $DATASRC/$TESTFILE.json
-
-echo "Converting to binary and back to JSON"
-$top_builddir/test/plist_jtest $DATASRC/$TESTFILE.json $DATAOUT/$TESTFILE.json.out
+echo "Converting"
+$top_builddir/test/plist_jtest $DATASRC/$TESTFILE $DATAOUT/$TESTFILE.out
echo "Comparing"
-$top_builddir/test/plist_cmp $DATASRC/$TESTFILE $DATAOUT/$TESTFILE.json.out
+$top_builddir/test/plist_cmp $DATASRC/$TESTFILE $DATAOUT/$TESTFILE.out