mirror of
https://github.com/encounter/libplist.git
synced 2026-03-30 11:18:56 -07:00
02bd8acd41
Apart from testing the actual integer signed vs. unsigned value storage
and conversion, this test will check that the binary plist optimization
is not re-using existing values. Basically it will test the fix that
was introduced with commit acd226d1f7.
24 lines
549 B
Bash
Executable File
24 lines
549 B
Bash
Executable File
## -*- sh -*-
|
|
|
|
set -e
|
|
|
|
DATASRC=$top_srcdir/test/data
|
|
TESTFILE0=signedunsigned.plist
|
|
TESTFILE1=signedunsigned.bplist
|
|
DATAIN0=$DATASRC/$TESTFILE0
|
|
DATAIN1=$DATASRC/$TESTFILE1
|
|
|
|
CMPFILE0=signedunsigned.bplist
|
|
CMPFILE1=signedunsigned.plist
|
|
DATACMP0=$DATASRC/$CMPFILE0
|
|
DATACMP1=$DATASRC/$CMPFILE1
|
|
|
|
DATAOUT0=$top_builddir/test/data/$TESTFILE0.bin
|
|
DATAOUT1=$top_builddir/test/data/$TESTFILE1.xml
|
|
|
|
$top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT0
|
|
$top_builddir/tools/plistutil -i $DATAIN1 -o $DATAOUT1
|
|
|
|
diff $DATACMP0 $DATAOUT0
|
|
diff $DATACMP1 $DATAOUT1
|