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' ]
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to