summaryrefslogtreecommitdiffstats
path: root/test/signedunsigned2.test
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-05-23 11:24:08 +0200
committerGravatar Nikias Bassen2014-05-23 11:24:08 +0200
commitf7c829297aa77e095511abb9b4ffaa68bd8bb443 (patch)
tree1b304c561f603ce67499814ffc66b9e727d7163c /test/signedunsigned2.test
parent769ee9ecdadcb75f421a7ebf18a2a43a13771966 (diff)
downloadlibplist-f7c829297aa77e095511abb9b4ffaa68bd8bb443.tar.gz
libplist-f7c829297aa77e095511abb9b4ffaa68bd8bb443.tar.bz2
test: Add test cases for integer nodes
Diffstat (limited to 'test/signedunsigned2.test')
-rwxr-xr-xtest/signedunsigned2.test23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/signedunsigned2.test b/test/signedunsigned2.test
new file mode 100755
index 0000000..d51219f
--- /dev/null
+++ b/test/signedunsigned2.test
@@ -0,0 +1,23 @@
+## -*- sh -*-
+
+set -e
+
+DATASRC=$top_srcdir/test/data
+TESTFILE0=signed.bplist
+TESTFILE1=unsigned.bplist
+DATAIN0=$DATASRC/$TESTFILE0
+DATAIN1=$DATASRC/$TESTFILE1
+
+CMPFILE0=signed.plist
+CMPFILE1=unsigned.plist
+DATACMP0=$DATASRC/$CMPFILE0
+DATACMP1=$DATASRC/$CMPFILE1
+
+DATAOUT0=$top_builddir/test/data/$TESTFILE0.bin
+DATAOUT1=$top_builddir/test/data/$TESTFILE1.bin
+
+$top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT0
+$top_builddir/tools/plistutil -i $DATAIN1 -o $DATAOUT1
+
+diff $DATACMP0 $DATAOUT0
+diff $DATACMP1 $DATAOUT1