From 697dd085e7b2ce15eefc454509987270131d7f1e Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Sep 25 2018 13:08:48 +0000 Subject: Ensure that an OpenSSL random seed file exists when testing Otherwise some openssl command-line invocations will fail and because of the way the tests are done the error message is not shown. --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 4e40743..fe368dc 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -433,6 +433,9 @@ subdirs += \ endif check: all + if [ ! -e $$HOME/.rnd ] ; then \ + openssl rand -writerand $$HOME/.rnd; \ + fi for required in certutil cmsutil pk12util openssl diff cmp mktemp \ dos2unix unix2dos dbus-launch ; do \ which $$required || exit 1; \