]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Modified the testrng for Debian's dieharder.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 4 May 2014 10:31:46 +0000 (12:31 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 4 May 2014 10:31:46 +0000 (12:31 +0200)
tests/suite/testrng

index 02b1d1c56567ce971bcaba1c3a6170d3202369d8..c780cf454036017eeae21f18cac457aafedf706f 100755 (executable)
@@ -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