Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2017 05:46:28 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323843 - head/tests/sys/opencrypto
Message-ID:  <201709210546.v8L5kSlC061399@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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' ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709210546.v8L5kSlC061399>