1# $OpenBSD: Makefile,v 1.1 2025/01/15 10:54:17 tb Exp $ 2 3.if ! exists(/usr/local/bin/eopenssl34) 4regress: 5 # install openssl-3.4 from ports for interop tests 6 @echo 'Run "pkg_add openssl--%3.4" to run tests against OpenSSL 3.4' 7 @echo SKIPPED 8.else 9 10PROGS = client server 11CFLAGS += -DOPENSSL_SUPPRESS_DEPRECATED 12CPPFLAGS = -I /usr/local/include/eopenssl34 13LDFLAGS = -L /usr/local/lib/eopenssl34 14LDADD = -lssl -lcrypto 15DPADD = /usr/local/lib/eopenssl34/libssl.a \ 16 /usr/local/lib/eopenssl34/libcrypto.a 17LD_LIBRARY_PATH = /usr/local/lib/eopenssl34 18REGRESS_TARGETS = run-self-client-server 19.for p in ${PROGS} 20REGRESS_TARGETS += run-ldd-$p run-version-$p run-protocol-$p 21.endfor 22 23.for p in ${PROGS} 24 25run-ldd-$p: ldd-$p.out 26 # check that $p is linked with OpenSSL 3.4 27 grep -q /usr/local/lib/eopenssl34/libcrypto.so ldd-$p.out 28 grep -q /usr/local/lib/eopenssl34/libssl.so ldd-$p.out 29 # check that $p is not linked with LibreSSL 30 ! grep -v libc.so ldd-$p.out | grep /usr/lib/ 31 32run-version-$p: $p-self.out 33 # check that runtime version is OpenSSL 3.4 34 grep 'SSLEAY_VERSION: OpenSSL 3.4' $p-self.out 35 36run-protocol-$p: $p-self.out 37 # check that OpenSSL 3.4 protocol version is TLS 1.3 38 grep 'Protocol *: TLSv1.3' $p-self.out 39 40.endfor 41 42.endif # exists(/usr/local/bin/eopenssl34) 43 44.include <bsd.regress.mk> 45