Ignore:
Timestamp:
Jul 16, 2008, 10:36:14 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Add a unit test for MD5 hashes.
File:
1 edited

Legend:

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

    r2545 r2548  
    2323echo "*** bug-overflow < /file-00"
    2424if ! $PROGRAM < "$DIR/file-00"; then
    25     echo "unexpected exit status $?"
     25    echo " unexpected exit status $?"
    2626    FAILED="$(($FAILED + 1))"
    2727else
    28     echo "*** test OK ***"
     28    echo " OK"
    2929fi
    3030TESTED="$(($TESTED + 1))"
     
    3232echo "*** zzuf -qi -r0 bug-overflow < /file-00"
    3333if ! "$ZZUF" -r0 -qi "$PROGRAM" < "$DIR/file-00"; then
    34     echo "unexpected exit status $?"
     34    echo " unexpected exit status $?"
    3535    FAILED="$(($FAILED + 1))"
    3636else
    37     echo "*** test OK ***"
     37    echo " OK"
    3838fi
    3939TESTED="$(($TESTED + 1))"
     
    4141echo "*** zzuf -qi bug-overflow < file-00"
    4242if "$ZZUF" -qi "$PROGRAM" < "$DIR/file-00"; then
    43     echo "unexpected exit status $?"
     43    echo " unexpected exit status $?"
    4444    FAILED="$(($FAILED + 1))"
    4545else
    46     echo "*** test OK ***"
     46    echo " OK"
    4747fi
    4848TESTED="$(($TESTED + 1))"
    4949
    50 echo ""
    5150if [ "$FAILED" != 0 ]; then
    5251    echo "*** $FAILED tests failed out of $TESTED ***"
Note: See TracChangeset for help on using the changeset viewer.