summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-11-09 23:44:33 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-11-09 23:44:33 +0000
commita2bd3ed455c00f8f665468aa9430f283665f41c0 (patch)
treea056292fa900fc247136a6be0285bc7d2fffa1b5
parent0d55b4b332ad80eeeff3e81d8d7af447a22dc479 (diff)
The Botan library from ports an be configured to use OpenSSL or
LibreSSL as crypto provider. When we run their regression tests, we are actually testing our library. This is far from perfect. A lot of LibreSSL features have not been implemented as Botan provider. Even if provider openssl is specified, botan-test runs a lot of non-openssl tests. This can be improved later.
-rw-r--r--regress/lib/libcrypto/Makefile4
-rw-r--r--regress/lib/libcrypto/botan/Makefile19
2 files changed, 22 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/Makefile b/regress/lib/libcrypto/Makefile
index 80ffceb1282..3f179d3df5f 100644
--- a/regress/lib/libcrypto/Makefile
+++ b/regress/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.33 2018/11/09 19:24:50 tb Exp $
+# $OpenBSD: Makefile,v 1.34 2018/11/09 23:44:32 bluhm Exp $
SUBDIR += aead
SUBDIR += aeswrap
@@ -45,6 +45,8 @@ SUBDIR += sha512
SUBDIR += utf8
SUBDIR += wycheproof
SUBDIR += x509
+# botan tests take 50 seconds, move to the end to fail early in other tests
+SUBDIR += botan
install:
diff --git a/regress/lib/libcrypto/botan/Makefile b/regress/lib/libcrypto/botan/Makefile
new file mode 100644
index 00000000000..9aa3f2ef57b
--- /dev/null
+++ b/regress/lib/libcrypto/botan/Makefile
@@ -0,0 +1,19 @@
+# $OpenBSD: Makefile,v 1.1 2018/11/09 23:44:32 bluhm Exp $
+
+.if ! exists(/usr/local/bin/botan-test)
+regress:
+ # install botan2 from ports for botan tests with libressl provider
+ @echo SKIPPED
+.endif
+
+# The Botan library from ports an be configured to use OpenSSL or
+# LibreSSL as crypto provider. When we run their regression tests,
+# we are actually testing our library. This is far from perfect. A
+# lot of LibreSSL features have not been implemented as Botan provider.
+# Even if provider openssl is specified, botan-test runs a lot of
+# non-openssl tests. This can be improved later.
+
+regress:
+ /usr/local/bin/botan-test --provider=openssl
+
+.include <bsd.regress.mk>