From 6a2e937b3f465e016480ad3fab2cc794c16edb72 Mon Sep 17 00:00:00 2001 From: cem Date: Thu, 21 Sep 2017 05:46:28 +0000 Subject: [PATCH] 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(+) 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 @@ 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' ]