From a3263ad344ff315ac1cba96f0b84b9afff6da787 Mon Sep 17 00:00:00 2001
From: Nikias Bassen
Date: Mon, 19 Sep 2016 03:19:45 +0200
Subject: test: Add additional test case to check extended date range
---
test/Makefile.am | 1 +
test/data/7.plist | 4 ++++
test/dates.test | 15 +++++++++++++++
3 files changed, 20 insertions(+)
create mode 100755 test/dates.test
(limited to 'test')
diff --git a/test/Makefile.am b/test/Makefile.am
index 522c499..7113a55 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -22,6 +22,7 @@ TESTS = \
largecmp.test \
hugecmp.test \
bigarraycmp.test \
+ dates.test \
timezone1.test \
timezone2.test \
signedunsigned1.test \
diff --git a/test/data/7.plist b/test/data/7.plist
index 144a40d..a936852 100644
--- a/test/data/7.plist
+++ b/test/data/7.plist
@@ -6,5 +6,9 @@
2010-11-12T13:14:15Z
Time2
2008-07-06T05:04:03Z
+ Time3
+ 1869-01-03T08:16:32Z
+ Time2
+ 2199-08-20T01:10:11Z
diff --git a/test/dates.test b/test/dates.test
new file mode 100755
index 0000000..9d75471
--- /dev/null
+++ b/test/dates.test
@@ -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
--
cgit v1.1-32-gdbae