Ignore:
Timestamp:
Jul 18, 2008, 11:28:10 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Make the RNG test shorter... it should not vary across platforms anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test/check-rng

    r2548 r2564  
    1010    mib=20
    1111    echo "*** $mib MiB of zeroes, ratio $r ***"
    12     echo " expected ....... $expect"
    1312    rmax=-1
    1413    rmin=-1
    1514    rtot=0
    16     for x in 0 1 2 3 4 5 6 7 8 9; do
     15    for x in 0 1 2 3 4; do
    1716        ret=`dd if=/dev/zero bs=1048576 count=$mib 2>/dev/null | "$ZZUF" -s $s2 -r $r | "$ZZERO"`
    1817        if [ "$rmax" = -1 -o "$ret" -gt "$rmax" ]; then rmax=$ret; fi
     
    2221        s2=`expr $s2 + 1`
    2322    done
    24     rmean=`expr '(' $rtot + 5 ')' / 10 || true`
     23    rmean=`expr '(' $rtot + 2 ')' / 5 || true`
    2524    delta=`expr $rmean - $expect || true`
    2625    if [ "$delta" -gt -5 -a "$delta" -lt 5 ]; then
     
    3433    fi
    3534    TESTED=$(($TESTED + 1))
    36     echo " min/avg/max $rmin/$rmean/$rmax .......... $result"
     35    echo " expected $expect min/avg/max $rmin/$rmean/$rmax .......... $result"
    3736}
    3837
Note: See TracChangeset for help on using the changeset viewer.