diff options
| author | Brent Cook <bcook@openbsd.org> | 2015-10-18 10:36:31 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2015-10-18 10:36:31 -0500 |
| commit | c8c23ad8e3a8211b8caab2e27f1d18a92c5d9fae (patch) | |
| tree | f24571f85e7ce1daf6c663288fbc21720f999ba9 | |
| parent | 0197a589691274055e3a6f47a3652a6714d676bc (diff) | |
| download | portable-c8c23ad8e3a8211b8caab2e27f1d18a92c5d9fae.tar.gz portable-c8c23ad8e3a8211b8caab2e27f1d18a92c5d9fae.tar.bz2 portable-c8c23ad8e3a8211b8caab2e27f1d18a92c5d9fae.zip | |
make it clear that we skipped 64-bit time_t tests
| -rw-r--r-- | .gitignore | 12 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | tests/Makefile.am | 11 | ||||
| -rwxr-xr-x | tests/rfc5280time.test | 10 |
4 files changed, 26 insertions, 9 deletions
| @@ -49,13 +49,14 @@ Makefile.in | |||
| 49 | test-driver | 49 | test-driver |
| 50 | *.log | 50 | *.log |
| 51 | *.trs | 51 | *.trs |
| 52 | !tests/optionstest.c | ||
| 53 | tests/aes_wrap* | 52 | tests/aes_wrap* |
| 54 | tests/arc4random_fork* | 53 | tests/arc4random_fork* |
| 54 | tests/asn1time* | ||
| 55 | tests/cipher* | 55 | tests/cipher* |
| 56 | tests/explicit_bzero* | 56 | tests/explicit_bzero* |
| 57 | tests/gost2814789t* | 57 | tests/gost2814789t* |
| 58 | tests/mont* | 58 | tests/mont* |
| 59 | tests/rfc5280time* | ||
| 59 | tests/timingsafe* | 60 | tests/timingsafe* |
| 60 | tests/*test | 61 | tests/*test |
| 61 | tests/tests.h | 62 | tests/tests.h |
| @@ -65,6 +66,8 @@ tests/pbkdf2* | |||
| 65 | tests/*.pem | 66 | tests/*.pem |
| 66 | tests/testssl | 67 | tests/testssl |
| 67 | tests/*.txt | 68 | tests/*.txt |
| 69 | !tests/optionstest.c | ||
| 70 | !tests/*.test | ||
| 68 | 71 | ||
| 69 | # ctags stuff | 72 | # ctags stuff |
| 70 | TAGS | 73 | TAGS |
| @@ -94,6 +97,7 @@ ltmain.sh | |||
| 94 | missing | 97 | missing |
| 95 | stamp-h1 | 98 | stamp-h1 |
| 96 | stamp-h2 | 99 | stamp-h2 |
| 100 | tap-driver.sh | ||
| 97 | 101 | ||
| 98 | include/openssl/Makefile.am | 102 | include/openssl/Makefile.am |
| 99 | 103 | ||
| @@ -111,18 +115,18 @@ include/pqueue.h | |||
| 111 | include/tls.h | 115 | include/tls.h |
| 112 | include/openssl/*.h | 116 | include/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" |
| 142 | fi | 142 | fi |
| 143 | 143 | ||
| 144 | AC_REQUIRE_AUX_FILE([tap-driver.sh]) | ||
| 145 | |||
| 144 | AC_OUTPUT | 146 | AC_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 | |||
| 11 | LDADD += $(top_builddir)/crypto/libcrypto.la | 11 | LDADD += $(top_builddir)/crypto/libcrypto.la |
| 12 | LDADD += $(top_builddir)/tls/libtls.la | 12 | LDADD += $(top_builddir)/tls/libtls.la |
| 13 | 13 | ||
| 14 | TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh | ||
| 15 | |||
| 14 | TESTS = | 16 | TESTS = |
| 15 | check_PROGRAMS = | 17 | check_PROGRAMS = |
| 16 | EXTRA_DIST = CMakeLists.txt | 18 | EXTRA_DIST = CMakeLists.txt |
| @@ -259,15 +261,14 @@ check_PROGRAMS += rc4test | |||
| 259 | rc4test_SOURCES = rc4test.c | 261 | rc4test_SOURCES = rc4test.c |
| 260 | 262 | ||
| 261 | # rfc5280time | 263 | # rfc5280time |
| 264 | check_PROGRAMS += rfc5280time | ||
| 265 | rfc5280time_SOURCES = rfc5280time.c | ||
| 262 | if SMALL_TIME_T | 266 | if SMALL_TIME_T |
| 263 | TESTS += rfc5280time_too_small | 267 | TESTS += rfc5280time.test |
| 264 | check_PROGRAMS += rfc5280time_too_small | ||
| 265 | rfc5280time_too_small_SOURCES = rfc5280time.c | ||
| 266 | else | 268 | else |
| 267 | TESTS += rfc5280time | 269 | TESTS += rfc5280time |
| 268 | check_PROGRAMS += rfc5280time | ||
| 269 | rfc5280time_SOURCES = rfc5280time.c | ||
| 270 | endif | 270 | endif |
| 271 | EXTRA_DIST += rfc5280time.test | ||
| 271 | 272 | ||
| 272 | # rmdtest | 273 | # rmdtest |
| 273 | TESTS += rmdtest | 274 | TESTS += 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 | ||
| 2 | set -e | ||
| 3 | echo 1..2 | ||
| 4 | TEST=./rfc5280time | ||
| 5 | if [ -e ./rfc5280time.exe ]; then | ||
| 6 | TEST=./rfc5280time.exe | ||
| 7 | fi | ||
| 8 | $TEST | ||
| 9 | echo "ok 1" | ||
| 10 | echo "ok 2 - rfc5280time_64-bit # SKIP this system is unable to represent times past 2038" | ||
