blob: f5858eaba09cbe76c65493f6aeb397c61dcdd8ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $OpenBSD: Makefile,v 1.8 2023/02/01 16:03:47 tb Exp $
LIBRARIES = libressl
.if exists(/usr/local/bin/eopenssl11)
LIBRARIES += openssl11
.endif
.if exists(/usr/local/bin/eopenssl30)
#LIBRARIES += openssl30
.endif
run-session-client-libressl-server-libressl \
run-session-client-libressl-server-openssl11 \
run-session-client-openssl11-server-libressl \
run-session-client-openssl11-server-openssl11:
# TLS 1.3 needs some extra setup for session reuse
@echo DISABLED
.for clib in ${LIBRARIES}
.for slib in ${LIBRARIES}
REGRESS_TARGETS += run-session-client-${clib}-server-${slib}
run-session-client-${clib}-server-${slib}: \
127.0.0.1.crt ../${clib}/client ../${slib}/server
LD_LIBRARY_PATH=/usr/local/lib/e${slib} \
../${slib}/server >${@:S/^run/server/}.out \
-ss \
127.0.0.1 0
LD_LIBRARY_PATH=/usr/local/lib/e${clib} \
../${clib}/client >${@:S/^run/client/}.out \
-ss \
`sed -n 's/listen sock: //p' ${@:S/^run/server/}.out`
grep '^success$$' ${@:S/^run/server/}.out || \
{ sleep 1; grep '^success$$' ${@:S/^run/server/}.out; }
grep '^success$$' ${@:S/^run/client/}.out
grep '^session 2: new$$' ${@:S/^run/server/}.out
grep '^session 2: new$$' ${@:S/^run/client/}.out
grep '^session 1: reuse$$' ${@:S/^run/server/}.out
grep '^session 1: reuse$$' ${@:S/^run/client/}.out
grep '^session 0: reuse$$' ${@:S/^run/server/}.out
grep '^session 0: reuse$$' ${@:S/^run/client/}.out
.endfor
.endfor
.include <bsd.regress.mk>
|