From 23c73a1848f9ef64d9699b18595cb13cde943e6a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 9 Sep 2013 11:42:58 +1000 Subject: [PATCH] only test dsa if we have a random device --- bin/tests/system/inline/ns3/sign.sh | 2 ++ bin/tests/system/inline/tests.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/bin/tests/system/inline/ns3/sign.sh b/bin/tests/system/inline/ns3/sign.sh index 96a4ed431f..8eb17e94c2 100644 --- a/bin/tests/system/inline/ns3/sign.sh +++ b/bin/tests/system/inline/ns3/sign.sh @@ -109,6 +109,8 @@ then sh ../../ecdsa/prereq.sh 2> /dev/null || continue fi +test $alg = DSA -a ! -f /dev/random -a ! -f /dev/urandom && continue + k1=`$KEYGEN -q -r $RANDFILE -a $alg -b 1024 -n zone -f KSK $zone` k2=`$KEYGEN -q -r $RANDFILE -a $alg -b 1024 -n zone $zone` k3=`$KEYGEN -q -r $RANDFILE -a $alg -b 1024 -n zone $zone` diff --git a/bin/tests/system/inline/tests.sh b/bin/tests/system/inline/tests.sh index dde216950f..7aec281884 100644 --- a/bin/tests/system/inline/tests.sh +++ b/bin/tests/system/inline/tests.sh @@ -823,6 +823,7 @@ do then sh ../ecdsa/prereq.sh 2>/dev/null || continue; fi + test $alg = 3 -a ! -f /dev/random -a ! -f /dev/random && continue dnskeys=`grep "IN.DNSKEY.25[67] [0-9]* $alg " dig.out.ns3.test$n | wc -l` rrsigs=`grep "RRSIG.DNSKEY $alg " dig.out.ns3.test$n | wc -l`