mirror of
https://github.com/libimobiledevice/libplist.git
synced 2026-05-17 20:30:34 +00:00
2cd858c679
Without the change tests ran in parallel occasionally clobber outputs of
one another and fail as:
$ make check -j16 VERBOSE=y
...
FAIL: huge
==========
Converting
File ../test/data/5.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 4292380
Output size : 4305301
Comparing
PList parsing failed
FAIL huge.test (exit status: 3)
Closes: https://github.com/libimobiledevice/libplist/issues/234#issuecomment-1743820556
25 lines
573 B
Bash
Executable File
25 lines
573 B
Bash
Executable File
## -*- 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/json3.test.json
|
|
|
|
echo "Converting to binary and back to JSON"
|
|
$top_builddir/test/plist_jtest $DATAOUT/json3.test.json $DATAOUT/json3.test.json.out
|
|
|
|
echo "Comparing"
|
|
$top_builddir/test/plist_cmp $DATASRC/$TESTFILE $DATAOUT/json3.test.json.out
|
|
|
|
rm -f $DATAOUT/json3.test.json
|