diff options
author | Ron Yorston <rmy@pobox.com> | 2020-08-23 10:59:38 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-08-23 10:59:38 +0100 |
commit | 5dbbfe22dd28c3b3ecd5763cc8e60406136e87ce (patch) | |
tree | 64c983708f9f2a21a2fbec14a06d85057d886dfd /testsuite | |
parent | 64ecd10486934c12336dac84c67a1939dce0e096 (diff) | |
parent | a949399d178f7b052ada2099c62621736eafce44 (diff) | |
download | busybox-w32-5dbbfe22dd28c3b3ecd5763cc8e60406136e87ce.tar.gz busybox-w32-5dbbfe22dd28c3b3ecd5763cc8e60406136e87ce.tar.bz2 busybox-w32-5dbbfe22dd28c3b3ecd5763cc8e60406136e87ce.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/grep.tests | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests index e38278810..66498a989 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests | |||
@@ -96,6 +96,14 @@ testing "grep -x -F (partial match 1)" "grep -x -F foo input ; echo \$?" \ | |||
96 | testing "grep -x -F (partial match 2)" "grep -x -F foo input ; echo \$?" \ | 96 | testing "grep -x -F (partial match 2)" "grep -x -F foo input ; echo \$?" \ |
97 | "1\n" "bar foo\n" "" | 97 | "1\n" "bar foo\n" "" |
98 | 98 | ||
99 | # -L "show filenames which do not match" has inverted exitcode (if it printed something, it's "success") | ||
100 | testing "grep -L exitcode 0" "grep -L qwe input; echo \$?" \ | ||
101 | "input\n0\n" "asd\n" "" | ||
102 | testing "grep -L exitcode 0 #2" "grep -L qwe input -; echo \$?" \ | ||
103 | "(standard input)\n0\n" "qwe\n" "asd\n" | ||
104 | testing "grep -L exitcode 1" "grep -L qwe input; echo \$?" \ | ||
105 | "1\n" "qwe\n" "" | ||
106 | |||
99 | optional EGREP | 107 | optional EGREP |
100 | testing "grep -E supports extended regexps" "grep -E fo+" "foo\n" "" \ | 108 | testing "grep -E supports extended regexps" "grep -E fo+" "foo\n" "" \ |
101 | "b\ar\nfoo\nbaz" | 109 | "b\ar\nfoo\nbaz" |