From c269f5b1c4007492714c4ba55a4d11e18063ddaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 10 Jun 2007 08:04:24 +0000 Subject: [PATCH] Test for random device before running the tests. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21045 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hcrypto/test_crypto.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hcrypto/test_crypto.in b/lib/hcrypto/test_crypto.in index 1d6afc1a1..93b8bb94e 100644 --- a/lib/hcrypto/test_crypto.in +++ b/lib/hcrypto/test_crypto.in @@ -40,6 +40,8 @@ rsa="${TESTS_ENVIRONMENT} ./test_rsa" engine="${TESTS_ENVIRONMENT} ./test_engine_dso" rand="${TESTS_ENVIRONMENT} ./test_rand" +${engine} --test-random > /dev/null || { echo "missing random"; exit 77; } + ${rsa} --key=${srcdir}/rsakey.der || \ { echo "rsa test failed" ; exit 1; }