Changeset 4267


Ignore:
Timestamp:
Jan 14, 2010, 1:26:35 AM (7 years ago)
Author:
sam
Message:

Add a check-flag-f test.

Location:
zzuf/trunk/test
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test/Makefile.am

    r4266 r4267  
    44noinst_PROGRAMS = zzero zznop bug-overflow bug-memory bug-div0
    55
    6 TESTS = check-build check-flag-A check-flag-m \
     6TESTS = check-build check-flag-A check-flag-f check-flag-m \
    77        check-overflow check-memory check-div0 check-rng check-utils
    88
  • zzuf/trunk/test/check-flag-A

    r4266 r4267  
    1818# Check -A with no fuzzing: output must match
    1919new_test "zzuf -A -r0 zzcat file-random file-random"
    20 m1=$($ZZUF -m -r0 $ZZCAT "$DIR/file-random" "$DIR/file-random")
    21 m2=$($ZZUF -m -A -r0 $ZZCAT "$DIR/file-random" "$DIR/file-random")
     20m1=$($ZZUF -m -r0 $ZZCAT "$DIR/file-random" "$DIR/file-random" | cut -f2 -d' ')
     21m2=$($ZZUF -m -A -r0 $ZZCAT "$DIR/file-random" "$DIR/file-random" | cut -f2 -d' ')
    2222if [ "$m1" = "$m2" ]; then
    2323    pass_test "ok"
     
    2828# Check -A with fuzzing: output must be different
    2929new_test "zzuf -A -r0.1 zzcat file-random file-random"
    30 m1=$($ZZUF -m -r0.1 $ZZCAT "$DIR/file-random" "$DIR/file-random")
    31 m2=$($ZZUF -m -A -r0.1 $ZZCAT "$DIR/file-random" "$DIR/file-random")
     30m1=$($ZZUF -m -r0.1 $ZZCAT "$DIR/file-random" "$DIR/file-random" | cut -f2 -d' ')
     31m2=$($ZZUF -m -A -r0.1 $ZZCAT "$DIR/file-random" "$DIR/file-random" | cut -f2 -d' ')
    3232if [ "$m1" != "$m2" ]; then
    3333    pass_test "ok"
Note: See TracChangeset for help on using the changeset viewer.