aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-05-14 21:18:54 +0000
committerMark Whitley <markw@lineo.com>2001-05-14 21:18:54 +0000
commit336480fe6f6539a9b6f1649157db2243445e3334 (patch)
tree368ea033fdea69c3a512624154e09af230d61daa
parentd928accbbd59732a5d6c536be0adb68b466d603f (diff)
downloadbusybox-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/testcases13
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
152grep -l strdup ../*.c
153grep -c strdup ../*.c
154# I swear, GNU grep seems broken for this next one
155grep -lc strdup ../*.c
156grep -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
274echo foo | sed -ne '/^$/p'
275sed -e '/test$/d' testcases
276sed -e '/^echo/d' testcases
277sed -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