Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/testsuite/grep.tests

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 5  Line 5 
5    
6  # AUDIT:  # AUDIT:
7    
8  . testing.sh  . ./testing.sh
9    
10  # testing "test name" "options" "expected result" "file input" "stdin"  # testing "test name" "options" "expected result" "file input" "stdin"
11  #   file input will be file called "input"  #   file input will be file called "input"
# Line 85  testing "grep is also egrep" "egrep foo" Line 85  testing "grep is also egrep" "egrep foo"
85  testing "egrep is not case insensitive" \  testing "egrep is not case insensitive" \
86   "egrep foo ; [ \$? -ne 0 ] && echo yes" "yes\n" "" "FOO\n"   "egrep foo ; [ \$? -ne 0 ] && echo yes" "yes\n" "" "FOO\n"
87    
88    testing "grep -E -o prints all matches" \
89     "grep -E -o '([[:xdigit:]]{2}[:-]){5}[[:xdigit:]]{2}'" \
90     "00:19:3E:00:AA:5E\n00:1D:60:3D:3A:FB\n00:22:43:49:FB:AA\n" \
91     "" "00:19:3E:00:AA:5E 00:1D:60:3D:3A:FB 00:22:43:49:FB:AA\n"
92    
93    testing "grep -o does not loop forever" \
94     'grep -o "[^/]*$"' \
95     "test\n" \
96     "" "/var/test\n"
97    
98  exit $FAILCOUNT  exit $FAILCOUNT

Legend:
Removed from v.816  
changed lines
  Added in v.984