svn commit: r323843 - head/tests/sys/opencrypto
Conrad Meyer
cem at FreeBSD.org
Thu Sep 21 05:46:29 UTC 2017
Author: cem
Date: Thu Sep 21 05:46:28 2017
New Revision: 323843
URL: https://svnweb.freebsd.org/changeset/base/323843
Log:
cryptotest.py: Add a seatbelt that we're actually testing anything
Without nist-kat installed, cryptotest.py is a no-op. Showing 'success' in
that case is unhelpful.
Sponsored by: Dell EMC Isilon
Modified:
head/tests/sys/opencrypto/cryptotest.py
Modified: head/tests/sys/opencrypto/cryptotest.py
==============================================================================
--- head/tests/sys/opencrypto/cryptotest.py Thu Sep 21 03:18:11 2017 (r323842)
+++ head/tests/sys/opencrypto/cryptotest.py Thu Sep 21 05:46:28 2017 (r323843)
@@ -40,6 +40,7 @@ from glob import iglob
katdir = '/usr/local/share/nist-kat'
def katg(base, glob):
+ assert os.path.exists(os.path.join(katdir, base)), "Please 'pkg install nist-kat'"
return iglob(os.path.join(katdir, base, glob))
aesmodules = [ 'cryptosoft0', 'aesni0', 'ccr0' ]
More information about the svn-src-head
mailing list