diff options
Diffstat (limited to 'testsuite/egrep.tests')
-rwxr-xr-x | testsuite/egrep.tests | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/egrep.tests b/testsuite/egrep.tests new file mode 100755 index 000000000..b634649bb --- /dev/null +++ b/testsuite/egrep.tests | |||
@@ -0,0 +1,20 @@ | |||
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 | |||
12 | # Depends on FEATURE_GREP_EGREP_ALIAS | ||
13 | _BB_CONFIG_DEP=FEATURE_GREP_EGREP_ALIAS | ||
14 | |||
15 | testing "grep is also egrep" "foo" "foo\n" "" "foo\nbar\n" | ||
16 | testing "egrep is not case insensitive" "foo ; [ \$? -ne 0 ] && echo yes" \ | ||
17 | "yes\n" "" "FOO\n" | ||
18 | |||
19 | |||
20 | exit $FAILCOUNT | ||