2005-09-23 21:14:46 +05:30
|
|
|
#!/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
|
|
|
|
|
2005-11-07 14:20:53 +05:30
|
|
|
optional FEATURE_GREP_EGREP_ALIAS
|
2005-09-23 21:14:46 +05:30
|
|
|
|
|
|
|
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
|