diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2017-09-21 05:46:28 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2017-09-21 05:46:28 +0000 |
commit | 7abea82d178e804351caa8224fe02efdc698b23d (patch) | |
tree | af12303a99e7ec21de330877541d4fd69c80e7fa /tests/sys/opencrypto | |
parent | 6b43e060291b7510b162579fd8c8dd9d6a274d2e (diff) | |
download | src-7abea82d178e804351caa8224fe02efdc698b23d.tar.gz src-7abea82d178e804351caa8224fe02efdc698b23d.zip |
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
Notes
Notes:
svn path=/head/; revision=323843
Diffstat (limited to 'tests/sys/opencrypto')
-rw-r--r-- | tests/sys/opencrypto/cryptotest.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sys/opencrypto/cryptotest.py b/tests/sys/opencrypto/cryptotest.py index 46d9261f2a78..f528164ea3b7 100644 --- a/tests/sys/opencrypto/cryptotest.py +++ b/tests/sys/opencrypto/cryptotest.py @@ -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' ] |