summaryrefslogtreecommitdiffstats
path: root/test/timezone1.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/timezone1.test')
-rwxr-xr-xtest/timezone1.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/timezone1.test b/test/timezone1.test
new file mode 100755
index 0000000..b992199
--- /dev/null
+++ b/test/timezone1.test
@@ -0,0 +1,15 @@
+## -*- sh -*-
+
+DATASRC=$top_srcdir/test/data
+TESTFILE=2.plist
+DATAIN0=$DATASRC/$TESTFILE
+DATAOUT0=$top_builddir/test/data/$TESTFILE.tz0.bin
+DATAOUT1=$top_builddir/test/data/$TESTFILE.tz1.bin
+DATAOUT2=$top_builddir/test/data/$TESTFILE.tz2.bin
+
+TZ=UTC $top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT0
+TZ=Asia/Singapore $top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT1
+TZ=US/Pacific $top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT2
+
+$top_builddir/test/plist_cmp $DATAOUT0 $DATAOUT1
+$top_builddir/test/plist_cmp $DATAOUT0 $DATAOUT2