From: Jeremy C. Reed Date: Thu, 23 Jun 2016 22:48:09 +0000 (-0400) Subject: Use test random file for tsig test using keygen X-Git-Tag: v9.11.0b1~24 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e8300d72638e7405fc5ee43e47e2a54e094b57cf;p=thirdparty%2Fbind9.git Use test random file for tsig test using keygen This is for #42565: tsig test hangs and KEYGEN and randomdev It was okayed there and is a trivial fix. No changes log needed. --- diff --git a/bin/tests/system/tsig/setup.sh b/bin/tests/system/tsig/setup.sh index 637ef3e256b..f56c5ae39e4 100644 --- a/bin/tests/system/tsig/setup.sh +++ b/bin/tests/system/tsig/setup.sh @@ -14,4 +14,9 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. +SYSTEMTESTTOP=.. +. $SYSTEMTESTTOP/conf.sh + sh clean.sh + +test -r $RANDFILE || $GENRANDOM 400 $RANDFILE diff --git a/bin/tests/system/tsig/tests.sh b/bin/tests/system/tsig/tests.sh index 9055ae19c76..24e04ba0712 100644 --- a/bin/tests/system/tsig/tests.sh +++ b/bin/tests/system/tsig/tests.sh @@ -236,9 +236,9 @@ fi echo "I:check that multiple dnssec-keygen calls don't emit dns_dnssec_findmatchingkeys warning" ret=0 -$KEYGEN -a hmac-sha256 -b 128 -n host example.net > keygen.out1 2>&1 || ret=1 +$KEYGEN -r $RANDFILE -a hmac-sha256 -b 128 -n host example.net > keygen.out1 2>&1 || ret=1 grep dns_dnssec_findmatchingkeys keygen.out1 > /dev/null && ret=1 -$KEYGEN -a hmac-sha256 -b 128 -n host example.net > keygen.out2 2>&1 || ret=1 +$KEYGEN -r $RANDFILE -a hmac-sha256 -b 128 -n host example.net > keygen.out2 2>&1 || ret=1 grep dns_dnssec_findmatchingkeys keygen.out2 > /dev/null && ret=1 if [ $ret -eq 1 ] ; then echo "I: failed"; status=1