diff options
author | bluhm <> | 2018-11-11 00:15:04 +0000 |
---|---|---|
committer | bluhm <> | 2018-11-11 00:15:04 +0000 |
commit | bb7bf59b27f2841b551d2aac13e012204e220296 (patch) | |
tree | 2e2f3822b8e0eb71ba45a900f399e61fb573f4b2 /src/regress/lib/libssl/interop/openssl11 | |
parent | b6050265797720778c82d37cfa77e5524da4f74a (diff) | |
download | openbsd-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/openssl11')
-rw-r--r-- | src/regress/lib/libssl/interop/openssl11/Makefile | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/src/regress/lib/libssl/interop/openssl11/Makefile b/src/regress/lib/libssl/interop/openssl11/Makefile index ef625dffb8..3ea1ef35da 100644 --- a/src/regress/lib/libssl/interop/openssl11/Makefile +++ b/src/regress/lib/libssl/interop/openssl11/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.4 2018/11/10 08:33:45 bluhm Exp $ | 1 | # $OpenBSD: Makefile,v 1.5 2018/11/11 00:15:04 bluhm Exp $ |
2 | 2 | ||
3 | .if ! exists(/usr/local/bin/eopenssl11) | 3 | .if ! exists(/usr/local/bin/eopenssl11) |
4 | regress: | 4 | regress: |
@@ -13,20 +13,13 @@ LDADD = -lssl -lcrypto | |||
13 | DPADD = /usr/local/lib/eopenssl11/libssl.a \ | 13 | DPADD = /usr/local/lib/eopenssl11/libssl.a \ |
14 | /usr/local/lib/eopenssl11/libcrypto.a | 14 | /usr/local/lib/eopenssl11/libcrypto.a |
15 | LD_LIBRARY_PATH = /usr/local/lib/eopenssl11 | 15 | LD_LIBRARY_PATH = /usr/local/lib/eopenssl11 |
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 | 19 | .endfor |
22 | .endfor | ||
23 | |||
24 | run-protocol-nc-client run-protocol-nc-server: | ||
25 | @echo '\n======== $@ ========' | ||
26 | # LibreSSL does not support TLS 1.3 yet | ||
27 | @echo DISABLED | ||
28 | 20 | ||
29 | .for p in ${PROGS} | 21 | .for p in ${PROGS} |
22 | |||
30 | run-ldd-$p: ldd-$p.out | 23 | run-ldd-$p: ldd-$p.out |
31 | @echo '\n======== $@ ========' | 24 | @echo '\n======== $@ ========' |
32 | # check that $p is linked with OpenSSL 1.1 | 25 | # check that $p is linked with OpenSSL 1.1 |
@@ -34,18 +27,17 @@ run-ldd-$p: ldd-$p.out | |||
34 | grep -q /usr/local/lib/eopenssl11/libssl.so ldd-$p.out | 27 | grep -q /usr/local/lib/eopenssl11/libssl.so ldd-$p.out |
35 | # check that $p is not linked with LibreSSL | 28 | # check that $p is not linked with LibreSSL |
36 | ! grep -v libc.so ldd-$p.out | grep /usr/lib/ | 29 | ! grep -v libc.so ldd-$p.out | grep /usr/lib/ |
37 | .endfor | ||
38 | 30 | ||
39 | .for o in nc-client nc-server self-client self-server | 31 | run-version-$p: $p-self.out |
40 | run-version-$o: $o.out | ||
41 | @echo '\n======== $@ ========' | 32 | @echo '\n======== $@ ========' |
42 | # check that runtime version is OpenSSL 1.1 | 33 | # check that runtime version is OpenSSL 1.1 |
43 | grep 'SSLEAY_VERSION: OpenSSL 1.1' $o.out | 34 | grep 'SSLEAY_VERSION: OpenSSL 1.1' $p-self.out |
44 | 35 | ||
45 | run-protocol-$o: $o.out | 36 | run-protocol-$p: $p-self.out |
46 | @echo '\n======== $@ ========' | 37 | @echo '\n======== $@ ========' |
47 | # check that protocol version is TLS 1.3 | 38 | # check that OpenSSL 1.1 protocol version is TLS 1.3 |
48 | grep 'Protocol *: TLSv1.3' $o.out | 39 | grep 'Protocol *: TLSv1.3' $p-self.out |
40 | |||
49 | .endfor | 41 | .endfor |
50 | 42 | ||
51 | .include <bsd.regress.mk> | 43 | .include <bsd.regress.mk> |