diff options
| author | bluhm <> | 2018-11-11 00:15:04 +0000 |
|---|---|---|
| committer | bluhm <> | 2018-11-11 00:15:04 +0000 |
| commit | 50da4d90eb521ba89a43af23da2b26ada631c4d1 (patch) | |
| tree | 2e2f3822b8e0eb71ba45a900f399e61fb573f4b2 /src/regress/lib/libssl/interop/openssl | |
| parent | 53421fd94339bb9af842ae49a732315507d719b2 (diff) | |
| download | openbsd-50da4d90eb521ba89a43af23da2b26ada631c4d1.tar.gz openbsd-50da4d90eb521ba89a43af23da2b26ada631c4d1.tar.bz2 openbsd-50da4d90eb521ba89a43af23da2b26ada631c4d1.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/Makefile | 25 |
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) |
| 4 | regress: | 4 | regress: |
| @@ -13,15 +13,13 @@ LDADD = -lssl -lcrypto | |||
| 13 | DPADD = /usr/local/lib/eopenssl/libssl.a \ | 13 | DPADD = /usr/local/lib/eopenssl/libssl.a \ |
| 14 | /usr/local/lib/eopenssl/libcrypto.a | 14 | /usr/local/lib/eopenssl/libcrypto.a |
| 15 | LD_LIBRARY_PATH = /usr/local/lib/eopenssl | 15 | LD_LIBRARY_PATH = /usr/local/lib/eopenssl |
| 16 | REGRESS_TARGETS = run-self | 16 | REGRESS_TARGETS = run-self-client-server |
| 17 | .for p in ${PROGS} | 17 | .for p in ${PROGS} |
| 18 | REGRESS_TARGETS += run-ldd-$p run-$p | 18 | REGRESS_TARGETS += run-ldd-$p run-version-$p run-protocol-$p |
| 19 | .for x in nc self | ||
| 20 | REGRESS_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 | |||
| 25 | run-ldd-$p: ldd-$p.out | 23 | run-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 | 31 | run-version-$p: $p-self.out |
| 35 | run-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 | ||
| 40 | run-protocol-$o: $o.out | 36 | run-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> |
