From bb7bf59b27f2841b551d2aac13e012204e220296 Mon Sep 17 00:00:00 2001 From: bluhm <> Date: Sun, 11 Nov 2018 00:15:04 +0000 Subject: Reorganize libssl interop tests. Move netcat tests into separate directory. Keep all log files for easier debugging. Name regress target names consistently. --- src/regress/lib/libssl/interop/openssl/Makefile | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'src/regress/lib/libssl/interop/openssl') 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 @@ -# $OpenBSD: Makefile,v 1.5 2018/11/10 08:33:45 bluhm Exp $ +# $OpenBSD: Makefile,v 1.6 2018/11/11 00:15:04 bluhm Exp $ .if ! exists(/usr/local/bin/eopenssl) regress: @@ -13,15 +13,13 @@ LDADD = -lssl -lcrypto DPADD = /usr/local/lib/eopenssl/libssl.a \ /usr/local/lib/eopenssl/libcrypto.a LD_LIBRARY_PATH = /usr/local/lib/eopenssl -REGRESS_TARGETS = run-self +REGRESS_TARGETS = run-self-client-server .for p in ${PROGS} -REGRESS_TARGETS += run-ldd-$p run-$p -.for x in nc self -REGRESS_TARGETS += run-version-$x-$p run-protocol-$x-$p -.endfor +REGRESS_TARGETS += run-ldd-$p run-version-$p run-protocol-$p .endfor .for p in ${PROGS} + run-ldd-$p: ldd-$p.out @echo '\n======== $@ ========' # check that $p is linked with OpenSSL @@ -29,18 +27,17 @@ run-ldd-$p: ldd-$p.out grep -q /usr/local/lib/eopenssl/libssl.so ldd-$p.out # check that $p is not linked with LibreSSL ! grep -v libc.so ldd-$p.out | grep /usr/lib/ -.endfor -.for o in nc-client nc-server self-client self-server -run-version-$o: $o.out +run-version-$p: $p-self.out @echo '\n======== $@ ========' - # check that runtime version is OpenSSL 1.0 - grep 'SSLEAY_VERSION: OpenSSL 1.0' $o.out + # check that runtime version is OpenSSL 1.0.2 + grep 'SSLEAY_VERSION: OpenSSL 1.0.2' $p-self.out -run-protocol-$o: $o.out +run-protocol-$p: $p-self.out @echo '\n======== $@ ========' - # check that protocol version is TLS 1.2 - grep 'Protocol *: TLSv1.2' $o.out + # check that OpenSSL 1.0.2 protocol version is TLS 1.2 + grep 'Protocol *: TLSv1.2' $p-self.out + .endfor .include -- cgit v1.2.3-55-g6feb