Changeset 2551 for zzuf/trunk/test
- Timestamp:
- Jul 16, 2008, 11:03:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/test/check-utils
r2550 r2551 40 40 # initially. (Linux sed doesn't, but OS X sed does.) 41 41 check "$ZZOPTS" "head -n 9999 $file" "head -n 9999" 42 check "$ZZOPTS" " tail -n 9999 $file" "tail -n9999"43 check "$ZZOPTS" " tail -n +1 $file" "tail -n +1"42 check "$ZZOPTS" "${TAILN}9999 $file" "${TAILN}9999" 43 check "$ZZOPTS" "${TAILP}1 $file" "${TAILP}1" 44 44 if grep -a '' /dev/null >/dev/null 2>&1; then 45 45 check "$ZZOPTS" "grep -a '' $file" "grep -a ''" … … 48 48 #check "$ZZOPTS" "cut -b1- $file" "cut -b1-" 49 49 check "$ZZOPTS" "-i head -n 9999 < $file" "|head -n 9999" 50 check "$ZZOPTS" "-i tail -n 9999 < $file" "|tail -n9999"51 check "$ZZOPTS" "-i tail -n +1 < $file" "|tail -n +1"50 check "$ZZOPTS" "-i ${TAILN}9999 < $file" "|${TAILN}9999" 51 check "$ZZOPTS" "-i ${TAILP}1 < $file" "|${TAILP}1" 52 52 if grep -a '' /dev/null >/dev/null 2>&1; then 53 53 check "$ZZOPTS" "-i grep -a '' < $file" "|grep -a ''" … … 98 98 STATIC_DD=1 99 99 fi 100 if tail -n 1 /dev/null >/dev/null 2>&1; then 101 TAILN="tail -n " 102 TAILP="tail -n +" 103 else 104 TAILN="tail -" 105 TAILP="tail +" 106 fi 100 107 FAILED=0 101 108 TESTED=0
Note: See TracChangeset
for help on using the changeset viewer.