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