|
Lines 214-219
Link Here
|
| 214 |
atf_check -o file:"$(atf_get_srcdir)/d_zgrep.out" zgrep -h line d_input.gz |
214 |
atf_check -o file:"$(atf_get_srcdir)/d_zgrep.out" zgrep -h line d_input.gz |
| 215 |
} |
215 |
} |
| 216 |
|
216 |
|
|
|
217 |
atf_test_case zgrep_combined_flags |
| 218 |
zgrep_combined_flags_head() |
| 219 |
{ |
| 220 |
atf_set "descr" "Checks for zgrep wrapper problems with combined flags (PR 247126)" |
| 221 |
} |
| 222 |
zgrep_combined_flags_body() |
| 223 |
{ |
| 224 |
echo 'foo bar' > test |
| 225 |
|
| 226 |
atf_check -o inline:"foo bar\n" zgrep -we foo test |
| 227 |
} |
| 228 |
|
| 229 |
atf_test_case zgrep_fflag |
| 230 |
zgrep_fflag_head() |
| 231 |
{ |
| 232 |
atf_set "descr" "Checks for zgrep wrapper problems with -f FILE (PR 247126)" |
| 233 |
} |
| 234 |
zgrep_fflag_body() |
| 235 |
{ |
| 236 |
echo foo > pattern |
| 237 |
echo foobar > test |
| 238 |
|
| 239 |
# Avoid hang on reading from stdin in the failure case |
| 240 |
atf_check -o inline:"foobar\n" zgrep -f pattern test </dev/null |
| 241 |
} |
| 242 |
|
| 217 |
atf_test_case nonexistent |
243 |
atf_test_case nonexistent |
| 218 |
nonexistent_head() |
244 |
nonexistent_head() |
| 219 |
{ |
245 |
{ |
|
Lines 826-831
Link Here
|
| 826 |
atf_add_test_case file_exp |
852 |
atf_add_test_case file_exp |
| 827 |
atf_add_test_case egrep |
853 |
atf_add_test_case egrep |
| 828 |
atf_add_test_case zgrep |
854 |
atf_add_test_case zgrep |
|
|
855 |
atf_add_test_case zgrep_combined_flags |
| 856 |
atf_add_test_case zgrep_fflag |
| 829 |
atf_add_test_case nonexistent |
857 |
atf_add_test_case nonexistent |
| 830 |
atf_add_test_case context2 |
858 |
atf_add_test_case context2 |
| 831 |
# Begin FreeBSD |
859 |
# Begin FreeBSD |