summaryrefslogtreecommitdiffstats
path: root/test/signedunsigned2.test
blob: 8ae862c638044be66fdb31371eccaf1e64133cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## -*- 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
cat $DATAOUT0

$top_builddir/tools/plistutil -i $DATAIN1 -o $DATAOUT1
cat $DATAOUT1

diff $DATACMP0 $DATAOUT0
diff $DATACMP1 $DATAOUT1