aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-10-18 10:36:31 -0500
committerBrent Cook <bcook@openbsd.org>2015-10-18 10:36:31 -0500
commitc8c23ad8e3a8211b8caab2e27f1d18a92c5d9fae (patch)
treef24571f85e7ce1daf6c663288fbc21720f999ba9
parent0197a589691274055e3a6f47a3652a6714d676bc (diff)
downloadportable-c8c23ad8e3a8211b8caab2e27f1d18a92c5d9fae.tar.gz
portable-c8c23ad8e3a8211b8caab2e27f1d18a92c5d9fae.tar.bz2
portable-c8c23ad8e3a8211b8caab2e27f1d18a92c5d9fae.zip
make it clear that we skipped 64-bit time_t tests
-rw-r--r--.gitignore12
-rw-r--r--configure.ac2
-rw-r--r--tests/Makefile.am11
-rwxr-xr-xtests/rfc5280time.test10
4 files changed, 26 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index 83f8f0b..d0d0ef3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,13 +49,14 @@ Makefile.in
49test-driver 49test-driver
50*.log 50*.log
51*.trs 51*.trs
52!tests/optionstest.c
53tests/aes_wrap* 52tests/aes_wrap*
54tests/arc4random_fork* 53tests/arc4random_fork*
54tests/asn1time*
55tests/cipher* 55tests/cipher*
56tests/explicit_bzero* 56tests/explicit_bzero*
57tests/gost2814789t* 57tests/gost2814789t*
58tests/mont* 58tests/mont*
59tests/rfc5280time*
59tests/timingsafe* 60tests/timingsafe*
60tests/*test 61tests/*test
61tests/tests.h 62tests/tests.h
@@ -65,6 +66,8 @@ tests/pbkdf2*
65tests/*.pem 66tests/*.pem
66tests/testssl 67tests/testssl
67tests/*.txt 68tests/*.txt
69!tests/optionstest.c
70!tests/*.test
68 71
69# ctags stuff 72# ctags stuff
70TAGS 73TAGS
@@ -94,6 +97,7 @@ ltmain.sh
94missing 97missing
95stamp-h1 98stamp-h1
96stamp-h2 99stamp-h2
100tap-driver.sh
97 101
98include/openssl/Makefile.am 102include/openssl/Makefile.am
99 103
@@ -111,18 +115,18 @@ include/pqueue.h
111include/tls.h 115include/tls.h
112include/openssl/*.h 116include/openssl/*.h
113 117
114!/apps/nc/readpassphrase.c
115/apps/nc/*.h 118/apps/nc/*.h
116/apps/nc/*.c 119/apps/nc/*.c
117/apps/nc/nc* 120/apps/nc/nc*
118!/apps/openssl/apps_win.c 121!/apps/nc/readpassphrase.c
119!/apps/openssl/certhash_win.c
120/apps/openssl/*.h 122/apps/openssl/*.h
121/apps/openssl/*.c 123/apps/openssl/*.c
122/apps/openssl/*.cnf 124/apps/openssl/*.cnf
123/apps/openssl/*.pem 125/apps/openssl/*.pem
124/apps/openssl/openssl 126/apps/openssl/openssl
125/apps/openssl/compat/strtonum.c 127/apps/openssl/compat/strtonum.c
128!/apps/openssl/apps_win.c
129!/apps/openssl/certhash_win.c
126 130
127!/crypto/Makefile.am.* 131!/crypto/Makefile.am.*
128!/crypto/compat/arc4random.h 132!/crypto/compat/arc4random.h
diff --git a/configure.ac b/configure.ac
index 148ca64..f15e746 100644
--- a/configure.ac
+++ b/configure.ac
@@ -141,4 +141,6 @@ if test "$ac_cv_sizeof_time_t" = "4"; then
141 echo " ** It will behave incorrectly when handling valid RFC5280 dates" 141 echo " ** It will behave incorrectly when handling valid RFC5280 dates"
142fi 142fi
143 143
144AC_REQUIRE_AUX_FILE([tap-driver.sh])
145
144AC_OUTPUT 146AC_OUTPUT
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6bf3118..a01b771 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -11,6 +11,8 @@ LDADD += $(top_builddir)/ssl/libssl.la
11LDADD += $(top_builddir)/crypto/libcrypto.la 11LDADD += $(top_builddir)/crypto/libcrypto.la
12LDADD += $(top_builddir)/tls/libtls.la 12LDADD += $(top_builddir)/tls/libtls.la
13 13
14TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh
15
14TESTS = 16TESTS =
15check_PROGRAMS = 17check_PROGRAMS =
16EXTRA_DIST = CMakeLists.txt 18EXTRA_DIST = CMakeLists.txt
@@ -259,15 +261,14 @@ check_PROGRAMS += rc4test
259rc4test_SOURCES = rc4test.c 261rc4test_SOURCES = rc4test.c
260 262
261# rfc5280time 263# rfc5280time
264check_PROGRAMS += rfc5280time
265rfc5280time_SOURCES = rfc5280time.c
262if SMALL_TIME_T 266if SMALL_TIME_T
263TESTS += rfc5280time_too_small 267TESTS += rfc5280time.test
264check_PROGRAMS += rfc5280time_too_small
265rfc5280time_too_small_SOURCES = rfc5280time.c
266else 268else
267TESTS += rfc5280time 269TESTS += rfc5280time
268check_PROGRAMS += rfc5280time
269rfc5280time_SOURCES = rfc5280time.c
270endif 270endif
271EXTRA_DIST += rfc5280time.test
271 272
272# rmdtest 273# rmdtest
273TESTS += rmdtest 274TESTS += rmdtest
diff --git a/tests/rfc5280time.test b/tests/rfc5280time.test
new file mode 100755
index 0000000..3730597
--- /dev/null
+++ b/tests/rfc5280time.test
@@ -0,0 +1,10 @@
1#!/bin/sh
2set -e
3echo 1..2
4TEST=./rfc5280time
5if [ -e ./rfc5280time.exe ]; then
6 TEST=./rfc5280time.exe
7fi
8$TEST
9echo "ok 1"
10echo "ok 2 - rfc5280time_64-bit # SKIP this system is unable to represent times past 2038"