summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/interop/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libssl/interop/openssl')
-rw-r--r--src/regress/lib/libssl/interop/openssl/Makefile42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/regress/lib/libssl/interop/openssl/Makefile b/src/regress/lib/libssl/interop/openssl/Makefile
deleted file mode 100644
index 181d35aa02..0000000000
--- a/src/regress/lib/libssl/interop/openssl/Makefile
+++ /dev/null
@@ -1,42 +0,0 @@
1# $OpenBSD: Makefile,v 1.8 2020/12/17 00:51:11 bluhm Exp $
2
3.if ! exists(/usr/local/bin/eopenssl)
4regress:
5 # install openssl-1.0.2 from ports for interop tests
6 @echo SKIPPED
7.else
8
9PROGS = client server
10CPPFLAGS = -I /usr/local/include/eopenssl
11LDFLAGS = -L /usr/local/lib/eopenssl
12LDADD = -lssl -lcrypto
13DPADD = /usr/local/lib/eopenssl/libssl.a \
14 /usr/local/lib/eopenssl/libcrypto.a
15LD_LIBRARY_PATH = /usr/local/lib/eopenssl
16REGRESS_TARGETS = run-self-client-server
17.for p in ${PROGS}
18REGRESS_TARGETS += run-ldd-$p run-version-$p run-protocol-$p
19.endfor
20
21.for p in ${PROGS}
22
23run-ldd-$p: ldd-$p.out
24 # check that $p is linked with OpenSSL
25 grep -q /usr/local/lib/eopenssl/libcrypto.so ldd-$p.out
26 grep -q /usr/local/lib/eopenssl/libssl.so ldd-$p.out
27 # check that $p is not linked with LibreSSL
28 ! grep -v libc.so ldd-$p.out | grep /usr/lib/
29
30run-version-$p: $p-self.out
31 # check that runtime version is OpenSSL 1.0.2
32 grep 'SSLEAY_VERSION: OpenSSL 1.0.2' $p-self.out
33
34run-protocol-$p: $p-self.out
35 # check that OpenSSL 1.0.2 protocol version is TLS 1.2
36 grep 'Protocol *: TLSv1.2' $p-self.out
37
38.endfor
39
40.endif # exists(/usr/local/bin/eopenssl)
41
42.include <bsd.regress.mk>