From 7abea82d178e804351caa8224fe02efdc698b23d Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Thu, 21 Sep 2017 05:46:28 +0000 Subject: 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 --- tests/sys/opencrypto/cryptotest.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/sys') 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' ] -- cgit v1.2.3