summaryrefslogtreecommitdiffstats
path: root/test/timezone2.test
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-04-01 17:37:38 +0200
committerGravatar Nikias Bassen2014-04-01 17:37:38 +0200
commite1a4bd03ec843ac7bd12aab143c66bd5e2c5eb15 (patch)
tree6b9b47207023f35a0b040da1c2cfdeadc403e4c5 /test/timezone2.test
parent56cd0e80dd7c812ae6f55e8fa8190a439c1ddf47 (diff)
downloadlibplist-e1a4bd03ec843ac7bd12aab143c66bd5e2c5eb15.tar.gz
libplist-e1a4bd03ec843ac7bd12aab143c66bd5e2c5eb15.tar.bz2
test: Add new timezone tests
Diffstat (limited to 'test/timezone2.test')
-rwxr-xr-xtest/timezone2.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/timezone2.test b/test/timezone2.test
new file mode 100755
index 0000000..3f3278c
--- /dev/null
+++ b/test/timezone2.test
@@ -0,0 +1,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