Commit 02bd8acd authored by Nikias Bassen's avatar Nikias Bassen

test: Add another test case for signed/unsigned (multiple) integers

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 acd226d1.
parent acd226d1
......@@ -26,6 +26,7 @@ TESTS = \
timezone2.test \
signedunsigned1.test \
signedunsigned2.test \
signedunsigned3.test \
hex.test \
order.test \
recursion.test \
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<integer>-1</integer>
<integer>18446744073709551615</integer>
<integer>9223372036854775807</integer>
<integer>-9223372036854775808</integer>
<integer>9223372036854775808</integer>
</array>
</plist>
## -*- 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment