Bernhard Reutner-Fischer | b47a74f | 2005-09-23 15:44:46 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # egrep tests. |
| 4 | # Copyright 2005 by Rob Landley <rob@landley.net> |
| 5 | # Licensed under GPL v2, see file LICENSE for details. |
| 6 | |
| 7 | # AUDIT: |
| 8 | |
| 9 | [ ${#COMMAND} -eq 0 ] && COMMAND=egrep |
| 10 | . testing.sh |
| 11 | |
Rob Landley | 48c6157 | 2005-11-07 08:50:53 +0000 | [diff] [blame] | 12 | optional FEATURE_GREP_EGREP_ALIAS |
Bernhard Reutner-Fischer | b47a74f | 2005-09-23 15:44:46 +0000 | [diff] [blame] | 13 | |
| 14 | testing "grep is also egrep" "foo" "foo\n" "" "foo\nbar\n" |
| 15 | testing "egrep is not case insensitive" "foo ; [ \$? -ne 0 ] && echo yes" \ |
| 16 | "yes\n" "" "FOO\n" |
| 17 | |
| 18 | |
| 19 | exit $FAILCOUNT |