summaryrefslogtreecommitdiffstats
path: root/test/timezone2.test
blob: 3f3278cad0596d06645bc6bd31fa50d64c258134 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## -*- sh -*-

DATASRC=$top_srcdir/test/data
TESTFILE=2.plist
DATAIN0=$DATASRC/$TESTFILE
DATAOUT0=$top_builddir/test/data/$TESTFILE.bin
DATAOUT1=$top_builddir/test/data/$TESTFILE.tz0.xml
DATAOUT2=$top_builddir/test/data/$TESTFILE.tz1.xml
DATAOUT3=$top_builddir/test/data/$TESTFILE.tz2.xml

TZ=UTC $top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT0

TZ=UTC $top_builddir/tools/plistutil -i $DATAOUT0 -o $DATAOUT1
TZ=Asia/Singapore $top_builddir/tools/plistutil -i $DATAOUT0 -o $DATAOUT2
TZ=US/Pacific $top_builddir/tools/plistutil -i $DATAOUT0 -o $DATAOUT3

$top_builddir/test/plist_cmp $DATAIN0 $DATAOUT1
$top_builddir/test/plist_cmp $DATAIN0 $DATAOUT2
$top_builddir/test/plist_cmp $DATAIN0 $DATAOUT3