diff options
| author | 2014-04-01 17:37:38 +0200 | |
|---|---|---|
| committer | 2014-04-01 17:37:38 +0200 | |
| commit | e1a4bd03ec843ac7bd12aab143c66bd5e2c5eb15 (patch) | |
| tree | 6b9b47207023f35a0b040da1c2cfdeadc403e4c5 /test/timezone2.test | |
| parent | 56cd0e80dd7c812ae6f55e8fa8190a439c1ddf47 (diff) | |
| download | libplist-e1a4bd03ec843ac7bd12aab143c66bd5e2c5eb15.tar.gz libplist-e1a4bd03ec843ac7bd12aab143c66bd5e2c5eb15.tar.bz2 | |
test: Add new timezone tests
Diffstat (limited to 'test/timezone2.test')
| -rwxr-xr-x | test/timezone2.test | 19 |
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 @@ | |||
| 1 | ## -*- sh -*- | ||
| 2 | |||
| 3 | DATASRC=$top_srcdir/test/data | ||
| 4 | TESTFILE=2.plist | ||
| 5 | DATAIN0=$DATASRC/$TESTFILE | ||
| 6 | DATAOUT0=$top_builddir/test/data/$TESTFILE.bin | ||
| 7 | DATAOUT1=$top_builddir/test/data/$TESTFILE.tz0.xml | ||
| 8 | DATAOUT2=$top_builddir/test/data/$TESTFILE.tz1.xml | ||
| 9 | DATAOUT3=$top_builddir/test/data/$TESTFILE.tz2.xml | ||
| 10 | |||
| 11 | TZ=UTC $top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT0 | ||
| 12 | |||
| 13 | TZ=UTC $top_builddir/tools/plistutil -i $DATAOUT0 -o $DATAOUT1 | ||
| 14 | TZ=Asia/Singapore $top_builddir/tools/plistutil -i $DATAOUT0 -o $DATAOUT2 | ||
| 15 | TZ=US/Pacific $top_builddir/tools/plistutil -i $DATAOUT0 -o $DATAOUT3 | ||
| 16 | |||
| 17 | $top_builddir/test/plist_cmp $DATAIN0 $DATAOUT1 | ||
| 18 | $top_builddir/test/plist_cmp $DATAIN0 $DATAOUT2 | ||
| 19 | $top_builddir/test/plist_cmp $DATAIN0 $DATAOUT3 | ||
