summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeck <>2020-09-21 15:13:24 +0000
committerbeck <>2020-09-21 15:13:24 +0000
commit11de539d915a22f42d21f9ed4114d8edd9a3f93d (patch)
treea3c21e131c8eed8abf93309cb7dd44dea8364462
parentb4bc8d8b755aef4f7b08455fb0bbf31f536da85b (diff)
downloadopenbsd-11de539d915a22f42d21f9ed4114d8edd9a3f93d.tar.gz
openbsd-11de539d915a22f42d21f9ed4114d8edd9a3f93d.tar.bz2
openbsd-11de539d915a22f42d21f9ed4114d8edd9a3f93d.zip
1) Move the interop tests to the end so we see tlsfuzzer first
2) Reorder the interop tests so the really slow "cert" test is at the end 3) Change the cert tests to use REGRESS_SLOW_TARGETS when testing combination of client and server that does not involve libressl. This way we can skip testing openssl to openssl11 when running these manually by setting REGRESS_SKIP_SLOW to "yet" in mk.conf ok jsing@
Diffstat (limited to '')
-rw-r--r--src/regress/lib/libssl/Makefile4
-rw-r--r--src/regress/lib/libssl/interop/Makefile14
-rw-r--r--src/regress/lib/libssl/interop/cert/Makefile6
-rw-r--r--src/regress/lib/libssl/interop/cipher/Makefile10
-rw-r--r--src/regress/lib/libssl/interop/version/Makefile10
5 files changed, 35 insertions, 9 deletions
diff --git a/src/regress/lib/libssl/Makefile b/src/regress/lib/libssl/Makefile
index a6b93eed42..078f750842 100644
--- a/src/regress/lib/libssl/Makefile
+++ b/src/regress/lib/libssl/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.39 2020/05/21 10:46:29 tb Exp $ 1# $OpenBSD: Makefile,v 1.40 2020/09/21 15:13:24 beck Exp $
2 2
3SUBDIR += asn1 3SUBDIR += asn1
4SUBDIR += buffer 4SUBDIR += buffer
@@ -16,8 +16,8 @@ SUBDIR += key_schedule
16SUBDIR += unit 16SUBDIR += unit
17 17
18# Things that take a long time should go below here. 18# Things that take a long time should go below here.
19SUBDIR += interop
20SUBDIR += tlsfuzzer 19SUBDIR += tlsfuzzer
20SUBDIR += interop
21 21
22install: 22install:
23 23
diff --git a/src/regress/lib/libssl/interop/Makefile b/src/regress/lib/libssl/interop/Makefile
index 0bd1195d39..aa9c3adf56 100644
--- a/src/regress/lib/libssl/interop/Makefile
+++ b/src/regress/lib/libssl/interop/Makefile
@@ -1,13 +1,19 @@
1# $OpenBSD: Makefile,v 1.12 2020/09/15 01:45:16 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.13 2020/09/21 15:13:24 beck Exp $
2 2
3SUBDIR = libressl openssl openssl11 3SUBDIR = libressl openssl openssl11
4 4
5# the above binaries must have been built before we can continue 5# the above binaries must have been built before we can continue
6SUBDIR += cert
7SUBDIR += cipher
8SUBDIR += version
9SUBDIR += netcat 6SUBDIR += netcat
10SUBDIR += session 7SUBDIR += session
11SUBDIR += botan 8SUBDIR += botan
12 9
10# What is below takes a long time.
11# setting REGRESS_SKIP_SLOW to "yes" in mk.conf
12# will skip the tests that do not test libressl
13# but do things like test openssl to openssl11
14SUBDIR += version
15SUBDIR += cipher
16# This takes a really long time.
17SUBDIR += cert
18
13.include <bsd.subdir.mk> 19.include <bsd.subdir.mk>
diff --git a/src/regress/lib/libssl/interop/cert/Makefile b/src/regress/lib/libssl/interop/cert/Makefile
index 11bc4aa2ab..a2838499e8 100644
--- a/src/regress/lib/libssl/interop/cert/Makefile
+++ b/src/regress/lib/libssl/interop/cert/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.4 2019/02/21 23:06:33 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.5 2020/09/21 15:13:24 beck Exp $
2 2
3# Connect a client to a server. Both can be current libressl, or 3# Connect a client to a server. Both can be current libressl, or
4# openssl 1.0.2, or openssl 1.1. Create client and server certificates 4# openssl 1.0.2, or openssl 1.1. Create client and server certificates
@@ -36,7 +36,11 @@ FAIL_${cca}_${sca}_${ccert}_${scert}_${cv}_${sv} = !
36.for clib in ${LIBRARIES} 36.for clib in ${LIBRARIES}
37.for slib in ${LIBRARIES} 37.for slib in ${LIBRARIES}
38 38
39.if ("${clib}" == "libressl" || "${slib}" == "libressl")
39REGRESS_TARGETS += run-cert-client-${clib}-${cca}-${ccert}-${cv}-server-${slib}-${sca}-${scert}-${sv} 40REGRESS_TARGETS += run-cert-client-${clib}-${cca}-${ccert}-${cv}-server-${slib}-${sca}-${scert}-${sv}
41.else
42REGRESS_SLOW_TARGETS += run-cert-client-${clib}-${cca}-${ccert}-${cv}-server-${slib}-${sca}-${scert}-${sv}
43.endif
40 44
41run-cert-client-${clib}-${cca}-${ccert}-${cv}-server-${slib}-${sca}-${scert}-${sv}: \ 45run-cert-client-${clib}-${cca}-${ccert}-${cv}-server-${slib}-${sca}-${scert}-${sv}: \
42 127.0.0.1.crt ca.crt fake-ca.crt client.crt server.crt \ 46 127.0.0.1.crt ca.crt fake-ca.crt client.crt server.crt \
diff --git a/src/regress/lib/libssl/interop/cipher/Makefile b/src/regress/lib/libssl/interop/cipher/Makefile
index 4ad2dbe39b..fe74901d11 100644
--- a/src/regress/lib/libssl/interop/cipher/Makefile
+++ b/src/regress/lib/libssl/interop/cipher/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.5 2020/09/12 15:48:30 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.6 2020/09/21 15:13:24 beck Exp $
2 2
3# Connect a client to a server. Both can be current libressl, or 3# Connect a client to a server. Both can be current libressl, or
4# openssl 1.0.2, or openssl 1.1. Create lists of supported ciphers 4# openssl 1.0.2, or openssl 1.1. Create lists of supported ciphers
@@ -103,7 +103,11 @@ DHPARAM_${cipher}_${slib} = -p dh.param
103DHPARAM_${cipher}_${slib} = 103DHPARAM_${cipher}_${slib} =
104.endif 104.endif
105 105
106.if ("${clib}" == "libressl" || "${slib}" == "libressl")
106REGRESS_TARGETS += run-cipher-${cipher}-client-${clib}-server-${slib} 107REGRESS_TARGETS += run-cipher-${cipher}-client-${clib}-server-${slib}
108.else
109REGRESS_SLOW_TARGETS += run-cipher-${cipher}-client-${clib}-server-${slib}
110.endif
107run-cipher-${cipher}-client-${clib}-server-${slib} \ 111run-cipher-${cipher}-client-${clib}-server-${slib} \
108client-cipher-${cipher}-client-${clib}-server-${slib}.out \ 112client-cipher-${cipher}-client-${clib}-server-${slib}.out \
109server-cipher-${cipher}-client-${clib}-server-${slib}.out: dh.param \ 113server-cipher-${cipher}-client-${clib}-server-${slib}.out: dh.param \
@@ -122,7 +126,11 @@ server-cipher-${cipher}-client-${clib}-server-${slib}.out: dh.param \
122 { sleep 1; grep -q '^success$$' ${@:S/^run/server/}.out; } 126 { sleep 1; grep -q '^success$$' ${@:S/^run/server/}.out; }
123 grep -q '^success$$' ${@:S/^run/client/}.out 127 grep -q '^success$$' ${@:S/^run/client/}.out
124 128
129.if ("${clib}" == "libressl" || "${slib}" == "libressl")
125REGRESS_TARGETS += check-cipher-${cipher}-client-${clib}-server-${slib} 130REGRESS_TARGETS += check-cipher-${cipher}-client-${clib}-server-${slib}
131.else
132REGRESS_SLOW_TARGETS += check-cipher-${cipher}-client-${clib}-server-${slib}
133.endif
126check-cipher-${cipher}-client-${clib}-server-${slib}: \ 134check-cipher-${cipher}-client-${clib}-server-${slib}: \
127 client-cipher-${cipher}-client-${clib}-server-${slib}.out \ 135 client-cipher-${cipher}-client-${clib}-server-${slib}.out \
128 server-cipher-${cipher}-client-${clib}-server-${slib}.out 136 server-cipher-${cipher}-client-${clib}-server-${slib}.out
diff --git a/src/regress/lib/libssl/interop/version/Makefile b/src/regress/lib/libssl/interop/version/Makefile
index 0f1d891f34..420b236421 100644
--- a/src/regress/lib/libssl/interop/version/Makefile
+++ b/src/regress/lib/libssl/interop/version/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.1 2020/09/14 00:51:04 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.2 2020/09/21 15:13:24 beck Exp $
2 2
3# Connect a client to a server. Both can be current libressl, or 3# Connect a client to a server. Both can be current libressl, or
4# openssl 1.0.2, or openssl 1.1. Pin client or server to a fixed TLS 4# openssl 1.0.2, or openssl 1.1. Pin client or server to a fixed TLS
@@ -31,7 +31,11 @@ FAIL_${cver}_${sver} = !
31.if ("${clib}" != openssl && "${slib}" != openssl) || \ 31.if ("${clib}" != openssl && "${slib}" != openssl) || \
32 ("${cver}" != TLS1_3 && "${sver}" != TLS1_3) 32 ("${cver}" != TLS1_3 && "${sver}" != TLS1_3)
33 33
34.if ("${clib}" == "libressl" || "${slib}" == "libressl")
34REGRESS_TARGETS += run-version-client-${clib}-${cver}-server-${slib}-${sver} 35REGRESS_TARGETS += run-version-client-${clib}-${cver}-server-${slib}-${sver}
36.else
37REGRESS_SLOW_TARGETS += run-version-client-${clib}-${cver}-server-${slib}-${sver}
38.endif
35 39
36run-version-client-${clib}-${cver}-server-${slib}-${sver} \ 40run-version-client-${clib}-${cver}-server-${slib}-${sver} \
37client-version-client-${clib}-${cver}-server-${slib}-${sver}.out \ 41client-version-client-${clib}-${cver}-server-${slib}-${sver}.out \
@@ -56,7 +60,11 @@ server-version-client-${clib}-${cver}-server-${slib}-${sver}.out: \
56 60
57.if empty(${FAIL_${cver}_${sver}}) 61.if empty(${FAIL_${cver}_${sver}})
58 62
63.if ("${clib}" == "libressl" || "${slib}" == "libressl")
59REGRESS_TARGETS += check-version-client-${clib}-${cver}-server-${slib}-${sver} 64REGRESS_TARGETS += check-version-client-${clib}-${cver}-server-${slib}-${sver}
65.else
66REGRESS_SLOW_TARGETS += check-version-client-${clib}-${cver}-server-${slib}-${sver}
67.endif
60 68
61check-version-client-${clib}-${cver}-server-${slib}-${sver}: \ 69check-version-client-${clib}-${cver}-server-${slib}-${sver}: \
62 client-version-client-${clib}-${cver}-server-${slib}-${sver}.out \ 70 client-version-client-${clib}-${cver}-server-${slib}-${sver}.out \