aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2024-05-26 07:23:36 +0200
committerTheo Buehler <tb@openbsd.org>2024-05-26 07:44:05 +0200
commit1fec7bea51f6537276aef9d5d95d67b11d7be907 (patch)
tree4514d0898d5073e3ed92ec30ebf13b4e377a2d50 /tests
parent8f03828942b063f3d7693fdaf3eb11ae77714d50 (diff)
downloadportable-1fec7bea51f6537276aef9d5d95d67b11d7be907.tar.gz
portable-1fec7bea51f6537276aef9d5d95d67b11d7be907.tar.bz2
portable-1fec7bea51f6537276aef9d5d95d67b11d7be907.zip
Make RFC 5280 test xfail on 32-bit time_t systems
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt3
-rw-r--r--tests/Makefile.am6
-rwxr-xr-xtests/rfc5280time_small.test10
3 files changed, 19 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 3497cb5..f39eb20 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -588,6 +588,9 @@ add_test(rfc3779 rfc3779)
588add_executable(rfc5280time rfc5280time.c) 588add_executable(rfc5280time rfc5280time.c)
589target_link_libraries(rfc5280time ${OPENSSL_TEST_LIBS}) 589target_link_libraries(rfc5280time ${OPENSSL_TEST_LIBS})
590add_test(rfc5280time rfc5280time) 590add_test(rfc5280time rfc5280time)
591if(SMALL_TIME_T)
592 set_property(TEST rfc5280time PROPERTY WILL_FAIL TRUE)
593endif()
591 594
592# rmd_test 595# rmd_test
593add_executable(rmd_test rmd_test.c) 596add_executable(rmd_test rmd_test.c)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0e19106..629dbcb 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -624,7 +624,13 @@ rfc3779_SOURCES = rfc3779.c
624# rfc5280time 624# rfc5280time
625check_PROGRAMS += rfc5280time 625check_PROGRAMS += rfc5280time
626rfc5280time_SOURCES = rfc5280time.c 626rfc5280time_SOURCES = rfc5280time.c
627if SMALL_TIME_T
628TESTS += rfc5280time_small.test
629XFAIL_TESTS += rfc5280time_small.test
630else
627TESTS += rfc5280time 631TESTS += rfc5280time
632endif
633EXTRA_DIST += rfc5280time_small.test
628 634
629# rmd_test 635# rmd_test
630TESTS += rmd_test 636TESTS += rmd_test
diff --git a/tests/rfc5280time_small.test b/tests/rfc5280time_small.test
new file mode 100755
index 0000000..61e5a05
--- /dev/null
+++ b/tests/rfc5280time_small.test
@@ -0,0 +1,10 @@
1#!/bin/sh
2echo 1..1
3TEST=./rfc5280
4if [ -e ./rfc5280.exe ]; then
5 TEST=./rfc5280.exe
6fi
7
8# map test failure to XFAIL and success to XPASS
9$TEST || echo -n "not "
10echo "ok # this system is unable to represent times past 2038"