diff options
Diffstat (limited to 'testsuite/grep.tests')
-rwxr-xr-x | testsuite/grep.tests | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests index ffce033e6..006a215e1 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | . ./testing.sh | 8 | . ./testing.sh |
9 | 9 | ||
10 | # testing "test name" "options" "expected result" "file input" "stdin" | 10 | # testing "test name" "commands" "expected result" "file input" "stdin" |
11 | # file input will be file called "input" | 11 | # file input will be file called "input" |
12 | # test can create a file "actual" instead of writing to stdout | 12 | # test can create a file "actual" instead of writing to stdout |
13 | 13 | ||
@@ -103,4 +103,20 @@ testing "grep -o does not loop forever on zero-length match" \ | |||
103 | "" \ | 103 | "" \ |
104 | "" "test\n" | 104 | "" "test\n" |
105 | 105 | ||
106 | testing "grep -f EMPTY_FILE" \ | ||
107 | "grep -f input" \ | ||
108 | "" \ | ||
109 | "" \ | ||
110 | "test\n" | ||
111 | |||
112 | testing "grep -v -f EMPTY_FILE" \ | ||
113 | "grep -v -f input" \ | ||
114 | "test\n" \ | ||
115 | "" \ | ||
116 | "test\n" | ||
117 | |||
118 | # testing "test name" "commands" "expected result" "file input" "stdin" | ||
119 | # file input will be file called "input" | ||
120 | # test can create a file "actual" instead of writing to stdout | ||
121 | |||
106 | exit $FAILCOUNT | 122 | exit $FAILCOUNT |