Changeset 2531
- Timestamp:
- Jul 16, 2008, 11:51:53 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/test/testsuite.sh
r2529 r2531 44 44 ZZOPTS="-s $seed -r $r" 45 45 case $file in 46 *text*) ZZOPTS="$ZZOPTS -P '\ n'" ;;46 *text*) ZZOPTS="$ZZOPTS -P '\\n' -R '\\000'" ;; 47 47 esac 48 48 echo "*** file $file, ratio $r ***" … … 76 76 check "$ZZOPTS" "tail -n 9999 $file" "tail -n 9999" 77 77 check "$ZZOPTS" "tail -n +1 $file" "tail -n +1" 78 check "$ZZOPTS" "grep -a '' $file" "grep -a ''" 78 if grep -a '' /dev/null >/dev/null 2>&1; then 79 check "$ZZOPTS" "grep -a '' $file" "grep -a ''" 80 fi 79 81 check "$ZZOPTS" "sed -e n $file" "sed -e n" 80 82 #check "$ZZOPTS" "cut -b1- $file" "cut -b1-" … … 82 84 check "$ZZOPTS" "-i tail -n 9999 < $file" "|tail -n 9999" 83 85 check "$ZZOPTS" "-i tail -n +1 < $file" "|tail -n +1" 84 check "$ZZOPTS" "-i grep -a '' < $file" "|grep -a ''" 86 if grep -a '' /dev/null >/dev/null 2>&1; then 87 check "$ZZOPTS" "-i grep -a '' < $file" "|grep -a ''" 88 fi 85 89 check "$ZZOPTS" "-i sed -e n < $file" "|sed -e n" 86 90 #check "$ZZOPTS" "-i cut -b1- < $file" "|cut -b1-"
Note: See TracChangeset
for help on using the changeset viewer.