aboutsummaryrefslogtreecommitdiff
path: root/testsuite/grep.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/grep.tests')
-rwxr-xr-xtestsuite/grep.tests12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests
index 9c1f35499..e38278810 100755
--- a/testsuite/grep.tests
+++ b/testsuite/grep.tests
@@ -190,6 +190,18 @@ testing "grep -x -v -e EXP1 -e EXP2 finds nothing if either EXP matches" \
190 "" \ 190 "" \
191 " aa bb cc\n" 191 " aa bb cc\n"
192 192
193testing "grep PATTERN can be a newline-delimited list" \
194 'grep -Fv "$(printf "foo\nbar\n")"' \
195 "baz\n" \
196 "" \
197 "foo\nbar\nbaz\n"
198
199testing "grep -e PATTERN can be a newline-delimited list" \
200 'grep -Fv -e "$(printf "foo\nbar\n")"' \
201 "baz\n" \
202 "" \
203 "foo\nbar\nbaz\n"
204
193# -r on symlink to dir should recurse into dir 205# -r on symlink to dir should recurse into dir
194mkdir -p grep.testdir/foo 206mkdir -p grep.testdir/foo
195echo bar > grep.testdir/foo/file 207echo bar > grep.testdir/foo/file