summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-05-04 12:31:46 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-05-04 12:31:46 +0200
commit06ec15d6e4bdde06901bf264f12047d761002597 (patch)
tree7b9d275e62024b0a135001afb79b497535235e28 /tests
parent33517328e4fa7a90baddebca7caf672093ea9b44 (diff)
downloadgnutls-06ec15d6e4bdde06901bf264f12047d761002597.tar.gz
Modified the testrng for Debian's dieharder.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/suite/testrng12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/suite/testrng b/tests/suite/testrng
index 02b1d1c565..c780cf4540 100755
--- a/tests/suite/testrng
+++ b/tests/suite/testrng
@@ -24,11 +24,18 @@ if ! test -x "/usr/bin/dieharder";then
exit 77
fi
+VERSION=`dieharder -l|grep version|cut -d ' ' -f 6`
+
if test "$1" = "full";then
OPTIONS="-a"
else
- OPTIONS="-d 202"
- OPTIONS2="-d 10"
+ if test "$VERSION" = "2.28.1";then
+ OPTIONS="-d 5"
+ OPTIONS2="-d 10"
+ else
+ OPTIONS="-d 202"
+ OPTIONS2="-d 10"
+ fi
fi
OUTFILE=rng.log
@@ -41,6 +48,7 @@ rm -f $RNGFILE2
. $srcdir/../scripts/common.sh
+
RINPUTNO=`dieharder -g -1|grep file_input_raw|cut -d '|' -f 2|cut -d ' ' -f 1`
if test -z "$RINPUTNO";then