summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/interop/openssl
diff options
context:
space:
mode:
authorbluhm <>2018-11-11 00:15:04 +0000
committerbluhm <>2018-11-11 00:15:04 +0000
commitbb7bf59b27f2841b551d2aac13e012204e220296 (patch)
tree2e2f3822b8e0eb71ba45a900f399e61fb573f4b2 /src/regress/lib/libssl/interop/openssl
parentb6050265797720778c82d37cfa77e5524da4f74a (diff)
downloadopenbsd-bb7bf59b27f2841b551d2aac13e012204e220296.tar.gz
openbsd-bb7bf59b27f2841b551d2aac13e012204e220296.tar.bz2
openbsd-bb7bf59b27f2841b551d2aac13e012204e220296.zip
Reorganize libssl interop tests. Move netcat tests into separate
directory. Keep all log files for easier debugging. Name regress target names consistently.
Diffstat (limited to 'src/regress/lib/libssl/interop/openssl')
-rw-r--r--src/regress/lib/libssl/interop/openssl/Makefile25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/regress/lib/libssl/interop/openssl/Makefile b/src/regress/lib/libssl/interop/openssl/Makefile
index 80f313da3e..adc93e5ad5 100644
--- a/src/regress/lib/libssl/interop/openssl/Makefile
+++ b/src/regress/lib/libssl/interop/openssl/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.5 2018/11/10 08:33:45 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.6 2018/11/11 00:15:04 bluhm Exp $
2 2
3.if ! exists(/usr/local/bin/eopenssl) 3.if ! exists(/usr/local/bin/eopenssl)
4regress: 4regress:
@@ -13,15 +13,13 @@ LDADD = -lssl -lcrypto
13DPADD = /usr/local/lib/eopenssl/libssl.a \ 13DPADD = /usr/local/lib/eopenssl/libssl.a \
14 /usr/local/lib/eopenssl/libcrypto.a 14 /usr/local/lib/eopenssl/libcrypto.a
15LD_LIBRARY_PATH = /usr/local/lib/eopenssl 15LD_LIBRARY_PATH = /usr/local/lib/eopenssl
16REGRESS_TARGETS = run-self 16REGRESS_TARGETS = run-self-client-server
17.for p in ${PROGS} 17.for p in ${PROGS}
18REGRESS_TARGETS += run-ldd-$p run-$p 18REGRESS_TARGETS += run-ldd-$p run-version-$p run-protocol-$p
19.for x in nc self
20REGRESS_TARGETS += run-version-$x-$p run-protocol-$x-$p
21.endfor
22.endfor 19.endfor
23 20
24.for p in ${PROGS} 21.for p in ${PROGS}
22
25run-ldd-$p: ldd-$p.out 23run-ldd-$p: ldd-$p.out
26 @echo '\n======== $@ ========' 24 @echo '\n======== $@ ========'
27 # check that $p is linked with OpenSSL 25 # check that $p is linked with OpenSSL
@@ -29,18 +27,17 @@ run-ldd-$p: ldd-$p.out
29 grep -q /usr/local/lib/eopenssl/libssl.so ldd-$p.out 27 grep -q /usr/local/lib/eopenssl/libssl.so ldd-$p.out
30 # check that $p is not linked with LibreSSL 28 # check that $p is not linked with LibreSSL
31 ! grep -v libc.so ldd-$p.out | grep /usr/lib/ 29 ! grep -v libc.so ldd-$p.out | grep /usr/lib/
32.endfor
33 30
34.for o in nc-client nc-server self-client self-server 31run-version-$p: $p-self.out
35run-version-$o: $o.out
36 @echo '\n======== $@ ========' 32 @echo '\n======== $@ ========'
37 # check that runtime version is OpenSSL 1.0 33 # check that runtime version is OpenSSL 1.0.2
38 grep 'SSLEAY_VERSION: OpenSSL 1.0' $o.out 34 grep 'SSLEAY_VERSION: OpenSSL 1.0.2' $p-self.out
39 35
40run-protocol-$o: $o.out 36run-protocol-$p: $p-self.out
41 @echo '\n======== $@ ========' 37 @echo '\n======== $@ ========'
42 # check that protocol version is TLS 1.2 38 # check that OpenSSL 1.0.2 protocol version is TLS 1.2
43 grep 'Protocol *: TLSv1.2' $o.out 39 grep 'Protocol *: TLSv1.2' $p-self.out
40
44.endfor 41.endfor
45 42
46.include <bsd.regress.mk> 43.include <bsd.regress.mk>