diff options
Diffstat (limited to 'testsuite/grep.tests')
-rwxr-xr-x | testsuite/grep.tests | 12 |
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 | ||
193 | testing "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 | |||
199 | testing "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 |
194 | mkdir -p grep.testdir/foo | 206 | mkdir -p grep.testdir/foo |
195 | echo bar > grep.testdir/foo/file | 207 | echo bar > grep.testdir/foo/file |