summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbluhm <>2018-11-09 23:44:32 +0000
committerbluhm <>2018-11-09 23:44:32 +0000
commit450faf95322d31d1696e4721ab1bcfeee092abbf (patch)
tree8e9b613447a4bf5ed236b2357c49293a3fecb887
parent2feae24d2aed9e9b3713ff77dffe7a373ed0039d (diff)
downloadopenbsd-450faf95322d31d1696e4721ab1bcfeee092abbf.tar.gz
openbsd-450faf95322d31d1696e4721ab1bcfeee092abbf.tar.bz2
openbsd-450faf95322d31d1696e4721ab1bcfeee092abbf.zip
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--src/regress/lib/libcrypto/Makefile4
-rw-r--r--src/regress/lib/libcrypto/botan/Makefile19
2 files changed, 22 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/Makefile b/src/regress/lib/libcrypto/Makefile
index 80ffceb128..3f179d3df5 100644
--- a/src/regress/lib/libcrypto/Makefile
+++ b/src/regress/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.33 2018/11/09 19:24:50 tb Exp $ 1# $OpenBSD: Makefile,v 1.34 2018/11/09 23:44:32 bluhm Exp $
2 2
3SUBDIR += aead 3SUBDIR += aead
4SUBDIR += aeswrap 4SUBDIR += aeswrap
@@ -45,6 +45,8 @@ SUBDIR += sha512
45SUBDIR += utf8 45SUBDIR += utf8
46SUBDIR += wycheproof 46SUBDIR += wycheproof
47SUBDIR += x509 47SUBDIR += x509
48# botan tests take 50 seconds, move to the end to fail early in other tests
49SUBDIR += botan
48 50
49install: 51install:
50 52
diff --git a/src/regress/lib/libcrypto/botan/Makefile b/src/regress/lib/libcrypto/botan/Makefile
new file mode 100644
index 0000000000..9aa3f2ef57
--- /dev/null
+++ b/src/regress/lib/libcrypto/botan/Makefile
@@ -0,0 +1,19 @@
1# $OpenBSD: Makefile,v 1.1 2018/11/09 23:44:32 bluhm Exp $
2
3.if ! exists(/usr/local/bin/botan-test)
4regress:
5 # install botan2 from ports for botan tests with libressl provider
6 @echo SKIPPED
7.endif
8
9# The Botan library from ports an be configured to use OpenSSL or
10# LibreSSL as crypto provider. When we run their regression tests,
11# we are actually testing our library. This is far from perfect. A
12# lot of LibreSSL features have not been implemented as Botan provider.
13# Even if provider openssl is specified, botan-test runs a lot of
14# non-openssl tests. This can be improved later.
15
16regress:
17 /usr/local/bin/botan-test --provider=openssl
18
19.include <bsd.regress.mk>