summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2020-10-29 06:05:12 +0000
committertb <>2020-10-29 06:05:12 +0000
commit95c9379bd7f97970855501776826f244aaf2482f (patch)
tree2b1c0a41f83390e53f9abaced6a05489fdab1744
parent0ca4c9d221f1ab6d66099fa5e1803a24c8b3331a (diff)
downloadopenbsd-95c9379bd7f97970855501776826f244aaf2482f.tar.gz
openbsd-95c9379bd7f97970855501776826f244aaf2482f.tar.bz2
openbsd-95c9379bd7f97970855501776826f244aaf2482f.zip
Do not fail with obscure error messages on 'make'
Fix some tests that fail with obscure error messages on 'make' if the required package (either version of OpenSSL or Botan 2) isn't installed. This can be avoided by doing 'make regress' instead. I'll try to adjust my finger memory for the many tests outside the LibreSSL tree that have the same "problem". The fix here is unintrusive and I've been wasting enough time with this to want to change it. ok bluhm
-rw-r--r--src/regress/lib/libssl/interop/botan/Makefile6
-rw-r--r--src/regress/lib/libssl/interop/openssl/Makefile6
-rw-r--r--src/regress/lib/libssl/interop/openssl11/Makefile6
3 files changed, 12 insertions, 6 deletions
diff --git a/src/regress/lib/libssl/interop/botan/Makefile b/src/regress/lib/libssl/interop/botan/Makefile
index f6a87dd6d7..cc8016cafb 100644
--- a/src/regress/lib/libssl/interop/botan/Makefile
+++ b/src/regress/lib/libssl/interop/botan/Makefile
@@ -1,10 +1,10 @@
1# $OpenBSD: Makefile,v 1.1 2020/09/15 01:45:16 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.2 2020/10/29 06:05:12 tb Exp $
2 2
3.if ! exists(/usr/local/bin/botan) 3.if ! exists(/usr/local/bin/botan)
4regress: 4regress:
5 # install botan2 from ports for interop tests 5 # install botan2 from ports for interop tests
6 @echo SKIPPED 6 @echo SKIPPED
7.endif 7.else
8 8
9LIBRARIES = libressl 9LIBRARIES = libressl
10.if exists(/usr/local/bin/eopenssl) 10.if exists(/usr/local/bin/eopenssl)
@@ -67,4 +67,6 @@ server.crt: ca.crt ${@:R}.req
67 /usr/local/bin/botan sign_cert ca.crt ca.key ${@:R}.req >$@.tmp 67 /usr/local/bin/botan sign_cert ca.crt ca.key ${@:R}.req >$@.tmp
68 mv $@.tmp $@ 68 mv $@.tmp $@
69 69
70.endif # exists(/usr/local/bin/botan)
71
70.include <bsd.regress.mk> 72.include <bsd.regress.mk>
diff --git a/src/regress/lib/libssl/interop/openssl/Makefile b/src/regress/lib/libssl/interop/openssl/Makefile
index adc93e5ad5..e56312505f 100644
--- a/src/regress/lib/libssl/interop/openssl/Makefile
+++ b/src/regress/lib/libssl/interop/openssl/Makefile
@@ -1,10 +1,10 @@
1# $OpenBSD: Makefile,v 1.6 2018/11/11 00:15:04 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.7 2020/10/29 06:05:12 tb Exp $
2 2
3.if ! exists(/usr/local/bin/eopenssl) 3.if ! exists(/usr/local/bin/eopenssl)
4regress: 4regress:
5 # install openssl-1.0.2 from ports for interop tests 5 # install openssl-1.0.2 from ports for interop tests
6 @echo SKIPPED 6 @echo SKIPPED
7.endif 7.else
8 8
9PROGS = client server 9PROGS = client server
10CPPFLAGS = -I /usr/local/include/eopenssl 10CPPFLAGS = -I /usr/local/include/eopenssl
@@ -40,4 +40,6 @@ run-protocol-$p: $p-self.out
40 40
41.endfor 41.endfor
42 42
43.endif # exists(/usr/local/bin/eopenssl)
44
43.include <bsd.regress.mk> 45.include <bsd.regress.mk>
diff --git a/src/regress/lib/libssl/interop/openssl11/Makefile b/src/regress/lib/libssl/interop/openssl11/Makefile
index 3ea1ef35da..678b1be255 100644
--- a/src/regress/lib/libssl/interop/openssl11/Makefile
+++ b/src/regress/lib/libssl/interop/openssl11/Makefile
@@ -1,10 +1,10 @@
1# $OpenBSD: Makefile,v 1.5 2018/11/11 00:15:04 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.6 2020/10/29 06:05:12 tb Exp $
2 2
3.if ! exists(/usr/local/bin/eopenssl11) 3.if ! exists(/usr/local/bin/eopenssl11)
4regress: 4regress:
5 # install openssl-1.1 from ports for interop tests 5 # install openssl-1.1 from ports for interop tests
6 @echo SKIPPED 6 @echo SKIPPED
7.endif 7.else
8 8
9PROGS = client server 9PROGS = client server
10CPPFLAGS = -I /usr/local/include/eopenssl11 10CPPFLAGS = -I /usr/local/include/eopenssl11
@@ -40,4 +40,6 @@ run-protocol-$p: $p-self.out
40 40
41.endfor 41.endfor
42 42
43.endif # exists(/usr/local/bin/eopenssl11)
44
43.include <bsd.regress.mk> 45.include <bsd.regress.mk>