diff options
author | Mark Whitley <markw@lineo.com> | 2001-05-14 21:18:54 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-05-14 21:18:54 +0000 |
commit | 336480fe6f6539a9b6f1649157db2243445e3334 (patch) | |
tree | 368ea033fdea69c3a512624154e09af230d61daa | |
parent | d928accbbd59732a5d6c536be0adb68b466d603f (diff) | |
download | busybox-w32-336480fe6f6539a9b6f1649157db2243445e3334.tar.gz busybox-w32-336480fe6f6539a9b6f1649157db2243445e3334.tar.bz2 busybox-w32-336480fe6f6539a9b6f1649157db2243445e3334.zip |
Added some testcases for grep and sed (many more could still be added)
-rw-r--r-- | tests/testcases | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/testcases b/tests/testcases index 5933c3b10..f636e17ea 100644 --- a/tests/testcases +++ b/tests/testcases | |||
@@ -147,7 +147,14 @@ free | |||
147 | # freeramdisk | 147 | # freeramdisk |
148 | # fsck.minix - won't test | 148 | # fsck.minix - won't test |
149 | # getopt | 149 | # getopt |
150 | |||
150 | # grep | 151 | # grep |
152 | grep -l strdup ../*.c | ||
153 | grep -c strdup ../*.c | ||
154 | # I swear, GNU grep seems broken for this next one | ||
155 | grep -lc strdup ../*.c | ||
156 | grep -cv strdup ../*.c | ||
157 | |||
151 | # gunzip | 158 | # gunzip |
152 | # gzip | 159 | # gzip |
153 | # halt | 160 | # halt |
@@ -262,7 +269,13 @@ touch F ; rm F | |||
262 | # rmmod - won't test: dangerous | 269 | # rmmod - won't test: dangerous |
263 | # route | 270 | # route |
264 | # rpmunpack | 271 | # rpmunpack |
272 | |||
265 | # sed - we can do some one-liners here; probably needs it's own input file | 273 | # sed - we can do some one-liners here; probably needs it's own input file |
274 | echo foo | sed -ne '/^$/p' | ||
275 | sed -e '/test$/d' testcases | ||
276 | sed -e '/^echo/d' testcases | ||
277 | sed -e '/test/s/dangerous/PELIGROSO/' testcases | ||
278 | |||
266 | # setkeycodes | 279 | # setkeycodes |
267 | 280 | ||
268 | # sh - note that we cannot test the shell interactively here | 281 | # sh - note that we cannot test the shell interactively here |