mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Added some testcases for grep and sed (many more could still be added)
This commit is contained in:
parent
d928accbbd
commit
336480fe6f
@ -147,7 +147,14 @@ free
|
|||||||
# freeramdisk
|
# freeramdisk
|
||||||
# fsck.minix - won't test
|
# fsck.minix - won't test
|
||||||
# getopt
|
# getopt
|
||||||
|
|
||||||
# grep
|
# grep
|
||||||
|
grep -l strdup ../*.c
|
||||||
|
grep -c strdup ../*.c
|
||||||
|
# I swear, GNU grep seems broken for this next one
|
||||||
|
grep -lc strdup ../*.c
|
||||||
|
grep -cv strdup ../*.c
|
||||||
|
|
||||||
# gunzip
|
# gunzip
|
||||||
# gzip
|
# gzip
|
||||||
# halt
|
# halt
|
||||||
@ -262,7 +269,13 @@ touch F ; rm F
|
|||||||
# rmmod - won't test: dangerous
|
# rmmod - won't test: dangerous
|
||||||
# route
|
# route
|
||||||
# rpmunpack
|
# rpmunpack
|
||||||
|
|
||||||
# sed - we can do some one-liners here; probably needs it's own input file
|
# sed - we can do some one-liners here; probably needs it's own input file
|
||||||
|
echo foo | sed -ne '/^$/p'
|
||||||
|
sed -e '/test$/d' testcases
|
||||||
|
sed -e '/^echo/d' testcases
|
||||||
|
sed -e '/test/s/dangerous/PELIGROSO/' testcases
|
||||||
|
|
||||||
# setkeycodes
|
# setkeycodes
|
||||||
|
|
||||||
# sh - note that we cannot test the shell interactively here
|
# sh - note that we cannot test the shell interactively here
|
||||||
|
Loading…
Reference in New Issue
Block a user