Skip to content

Commit

Permalink
test: Add additional test case to check extended date range
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Sep 19, 2016
1 parent 8d34de3 commit a3263ad
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ TESTS = \
largecmp.test \
hugecmp.test \
bigarraycmp.test \
dates.test \
timezone1.test \
timezone2.test \
signedunsigned1.test \
Expand Down
4 changes: 4 additions & 0 deletions test/data/7.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
<date>2010-11-12T13:14:15Z</date>
<key>Time2</key>
<date>2008-07-06T05:04:03Z</date>
<key>Time3</key>
<date>1869-01-03T08:16:32Z</date>
<key>Time2</key>
<date>2199-08-20T01:10:11Z</date>
</dict>
</plist>
15 changes: 15 additions & 0 deletions test/dates.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## -*- sh -*-

set -e

DATASRC=$top_srcdir/test/data
TESTFILE=7.plist
DATAIN0=$DATASRC/$TESTFILE
DATAOUT0=$top_builddir/test/data/$TESTFILE.bplist
DATAOUT1=$top_builddir/test/data/$TESTFILE.xplist

$top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT0
$top_builddir/tools/plistutil -i $DATAOUT0 -o $DATAOUT1

$top_builddir/test/plist_cmp $DATAOUT0 $DATAIN0
$top_builddir/test/plist_cmp $DATAOUT1 $DATAIN0

0 comments on commit a3263ad

Please sign in to comment.