blob: 1cbf59dfec7ce372edb3ed940775d9ddd868cb72 [file] [log] [blame]
## -*- sh -*-
set -e
DATASRC=$top_srcdir/test/data
DATAOUT=$top_builddir/test/data
TESTFILE=entities.plist
if ! test -d "$DATAOUT"; then
mkdir -p $DATAOUT
fi
export PLIST_JSON_DEBUG=1
echo "Converting input file to JSON"
$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE -o $DATAOUT/$TESTFILE.json
echo "Converting to binary and back to JSON"
$top_builddir/test/plist_jtest $DATAOUT/$TESTFILE.json $DATAOUT/$TESTFILE.json.out
echo "Comparing"
$top_builddir/test/plist_cmp $DATAOUT/$TESTFILE $DATAOUT/$TESTFILE.json.out
rm -f $DATAOUT/$TESTFILE.json