summaryrefslogtreecommitdiff
path: root/testsuite/grep.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/grep.tests')
-rwxr-xr-xtestsuite/grep.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests
index 8cee1b9..7e3dff0 100755
--- a/testsuite/grep.tests
+++ b/testsuite/grep.tests
@@ -85,4 +85,9 @@ testing "grep is also egrep" "egrep foo" "foo\n" "" "foo\nbar\n"
testing "egrep is not case insensitive" \
"egrep foo ; [ \$? -ne 0 ] && echo yes" "yes\n" "" "FOO\n"
+testing "grep -E -o prints all matches" \
+ "grep -E -o '([[:xdigit:]]{2}[:-]){5}[[:xdigit:]]{2}'" \
+ "00:19:3E:00:AA:5E\n00:1D:60:3D:3A:FB\n00:22:43:49:FB:AA\n" \
+ "" "00:19:3E:00:AA:5E 00:1D:60:3D:3A:FB 00:22:43:49:FB:AA\n"
+
exit $FAILCOUNT