mirror of
https://github.com/sheumann/hush.git
synced 2024-09-11 09:54:31 +00:00
21 lines
448 B
Plaintext
21 lines
448 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# egrep tests.
|
||
|
# Copyright 2005 by Rob Landley <rob@landley.net>
|
||
|
# Licensed under GPL v2, see file LICENSE for details.
|
||
|
|
||
|
# AUDIT:
|
||
|
|
||
|
[ ${#COMMAND} -eq 0 ] && COMMAND=egrep
|
||
|
. testing.sh
|
||
|
|
||
|
# Depends on FEATURE_GREP_EGREP_ALIAS
|
||
|
_BB_CONFIG_DEP=FEATURE_GREP_EGREP_ALIAS
|
||
|
|
||
|
testing "grep is also egrep" "foo" "foo\n" "" "foo\nbar\n"
|
||
|
testing "egrep is not case insensitive" "foo ; [ \$? -ne 0 ] && echo yes" \
|
||
|
"yes\n" "" "FOO\n"
|
||
|
|
||
|
|
||
|
exit $FAILCOUNT
|