blob: b11e08488aa2ea7db5cd232c56757ed7e4f32b88 (
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
|
# $OpenBSD: Makefile,v 1.1 2018/11/07 19:09:01 bluhm Exp $
.if ! exists(/usr/local/bin/eopenssl11)
regress:
# install openssl-1.1.1 from ports for interop tests
@echo SKIPPED
.endif
PROGS = client server
CPPFLAGS = -I /usr/local/include/eopenssl11
LDFLAGS = -L /usr/local/lib/eopenssl11
LDADD = -lssl -lcrypto
DPADD = /usr/local/lib/eopenssl11/libssl.a \
/usr/local/lib/eopenssl11/libcrypto.a
LD_LIBRARY_PATH = /usr/local/lib/eopenssl11
.for p in ${PROGS}
run-ldd-$p: ldd-$p.out
@echo '\n======== $@ ========'
# check that $p is linked with OpenSSL 1.1
grep -q /usr/local/lib/eopenssl11/libcrypto.so ldd-$p.out
grep -q /usr/local/lib/eopenssl11/libssl.so ldd-$p.out
# check that $p is not linked with LibreSSL
! grep -v libc.so ldd-$p.out | grep /usr/lib/
run-version-$p: $p.out
@echo '\n======== $@ ========'
# check that runtime version is OpenSSL 1.1
grep 'SSLEAY_VERSION: OpenSSL 1.1' $p.out
.endfor
.include <bsd.regress.mk>
|