Lines Matching full:grep

36 	    'jot 10000 | grep 123'
48 atf_check -o file:"$(atf_get_srcdir)/d_binary.out" grep foobar test.file
62 atf_check -o file:"$(atf_get_srcdir)/d_recurse.out" -x "grep -r haddock recurse | sort"
75 atf_expect_fail "this test doesn't pass with gnu grep from ports"
84 grep -rS string test
95 grep -w separated $(atf_get_srcdir)/d_input
100 atf_check -o inline:"pmatch\n" grep -Eow "(match )?pmatch" test1
112 grep ^Front "$(atf_get_srcdir)/d_input"
115 grep ending$ "$(atf_get_srcdir)/d_input"
126 grep -i Upper "$(atf_get_srcdir)/d_input"
137 grep -v fish "$(atf_get_srcdir)/d_invert.in"
148 grep -x matchme "$(atf_get_srcdir)/d_input"
158 atf_check -s ne:0 grep "not a hope in hell" "$(atf_get_srcdir)/d_input"
170 atf_check -o file:d_context_a.out grep -C2 bamboo d_context_a.in
171 atf_check -o file:d_context_b.out grep -A3 tilt d_context_a.in
172 atf_check -o file:d_context_c.out grep -B4 Whig d_context_a.in
173 atf_check -o file:d_context_d.out grep -C1 pig d_context_a.in d_context_b.in
175 grep -E -C1 '(banana|monkey)' d_context_e.in
177 grep -Ev -B2 '(banana|monkey|fruit)' d_context_e.in
179 grep -Ev -A1 '(banana|monkey|fruit)' d_context_e.in
190 'jot 21 -1 1.00 | grep -f '"$(atf_get_srcdir)"'/d_file_exp.in'
304 atf_check -s ne:0 grep -s foobar nonexistent
318 grep -z -A1 cod test1 test2
321 grep -z -B1 cod test1 test2
324 grep -z -C1 cod test1 test2
328 # What grep(1) are we working with?
330 # - 1 : gnu grep 2.51 (base)
331 # - 2 : gnu grep (ports)
339 local grep_version=$(grep --version)
342 *"BSD grep"*)
345 *"GNU grep"*)
356 atf_fail "unknown grep type: $grep_version"
368 atf_expect_fail "this test doesn't pass with gnu grep in base"
372 grep -Eo '(^|:)0*' "$(atf_get_srcdir)/d_oflag_zerolen_a.in"
375 grep -Eo '(^|:)0*' "$(atf_get_srcdir)/d_oflag_zerolen_b.in"
378 grep -Eo '[[:alnum:]]*' "$(atf_get_srcdir)/d_oflag_zerolen_c.in"
380 atf_check -o empty grep -Eo '' "$(atf_get_srcdir)/d_oflag_zerolen_d.in"
383 grep -o -e 'ab' -e 'bc' "$(atf_get_srcdir)/d_oflag_zerolen_e.in"
386 grep -o -e 'bc' -e 'ab' "$(atf_get_srcdir)/d_oflag_zerolen_e.in"
398 grep -xf pattern_file match_file
410 atf_expect_fail "this test doesn't pass with gnu grep in base"
418 grep --color=auto -e '.*' -e 'a' "$(atf_get_srcdir)/d_color_a.in"
421 grep --color=auto -f grepfile "$(atf_get_srcdir)/d_color_b.in"
424 grep --color=always -f grepfile "$(atf_get_srcdir)/d_color_b.in"
436 atf_check -s exit:1 grep -f nulpat "$(atf_get_srcdir)/d_f_file_empty.in"
446 atf_check -s exit:1 grep -o 'f.o\.' "$(atf_get_srcdir)/d_escmap.in"
447 atf_check -o not-empty grep -o 'f.o.' "$(atf_get_srcdir)/d_escmap.in"
469 atf_check -o inline:"\n" grep -e "^$" test1
471 atf_check -o inline:"Eggs\nCheese\n" grep -v -e "^$" test1
486 atf_check -s exit:1 -o empty grep -w -e "" test1
488 atf_check -o file:test2 grep -vw -e "" test2
490 atf_check -s exit:1 -o empty grep -w -e "" test3
492 atf_check -o file:test4 grep -vw -e "" test4
503 atf_check -s exit:1 -o empty grep -x -e "" test1
505 atf_check -o file:test2 grep -x -e "" test2
507 atf_check -s exit:1 -o empty grep -x -e "" test3
509 atf_check -s exit:1 -o empty grep -x -e "" test4
513 # Simple checks that grep -x with an empty pattern isn't matching every
516 atf_check -o save:xpositive.count grep -Fxc '' /COPYRIGHT
517 atf_check -o save:xnegative.count grep -Fvxc '' /COPYRIGHT
539 atf_check -o file:target grep -Fxf patlist1 target
540 atf_check -o file:matches grep -Fxf patlist1 target_spacelines
541 atf_check -o file:matches_not2 grep -Fxf patlist2 target
544 atf_check -s exit:1 -o empty grep -Fvxf patlist1 target
545 atf_check -o file:spacelines grep -Fxvf patlist1 target_spacelines
573 atf_expect_fail "this test does not pass with GNU grep in base"
580 atf_check -s exit:0 -x '[ $(grep -o x test.in | wc -l) -eq 4096 ]'
581 atf_check -s exit:1 -x 'grep -on x test.in | grep -v "1:x"'
624 atf_set "descr" "Check for basic grep sanity, BREs only"
631 atf_check -o inline:"Foo\n" grep -o -e "F.." test1
633 atf_check -o inline:"Foobar\n" grep -o -e "F[a-z]*" test1
635 atf_check -o inline:"Fo\n" grep -o -e "F\(o\)" test1
637 atf_check -o inline:"(ed)\n" grep -o -e "(ed)" test1
639 atf_check -o inline:"M{1}\n" grep -o -e "M{1}" test2
641 atf_check -o inline:"M\n" grep -o -e "M\{1\}" test2
654 atf_check -o file:test1 grep -w "x" test1
655 atf_check -o file:test2 grep -w "x" test2
657 atf_check -s exit:1 grep -v -w "x" test1
658 atf_check -s exit:1 grep -v -w "x" test2
670 atf_expect_fail "this test does not pass with GNU grep in base"
676 atf_check -o inline:"1:1:xx\n" grep -bon "xx$" test1
678 atf_check -o inline:"2:4:yyyy\n" grep -bn "yy" test1
680 atf_check -o inline:"2:6:yy\n" grep -bon "yy$" test1
682 # These checks ensure that grep isn't producing bogus line numbering
685 "grep -Eon 'x|y|z|f' test1 | grep -Ev '${check_expr}'"
688 "grep -En 'x|y|z|f' --color=always test1 | grep -Ev '${check_expr}'"
691 "grep -Eon 'x|y|z|f' --color=always test1 | grep -Ev '${check_expr}'"
705 atf_expect_fail "this test does not pass with GNU grep in base"
710 atf_check -o inline:"1\n" grep -c -C 1 -e "B" test1
711 atf_check -o inline:"1\n" grep -c -B 1 -e "B" test1
712 atf_check -o inline:"1\n" grep -c -A 1 -e "B" test1
713 atf_check -o inline:"1\n" grep -c -C 1 -e "B" test1
715 atf_check -o inline:"test1\n" grep -l -e "B" test1
716 atf_check -o inline:"test1\n" grep -l -B 1 -e "B" test1
717 atf_check -o inline:"test1\n" grep -l -A 1 -e "B" test1
718 atf_check -o inline:"test1\n" grep -l -C 1 -e "B" test1
720 atf_check -o inline:"test1\n" grep -L -e "D" test1
722 atf_check -o empty grep -q -e "B" test1
723 atf_check -o empty grep -q -B 1 -e "B" test1
724 atf_check -o empty grep -q -A 1 -e "B" test1
725 atf_check -o empty grep -q -C 1 -e "B" test1
737 atf_check -s not-exit:0 -e ignore grep -A "-1" "B" test1
739 atf_check -s not-exit:0 -e ignore grep -B "-1" "B" test1
741 atf_check -s not-exit:0 -e ignore grep -C "-1" "B" test1
743 atf_check -s not-exit:0 -e ignore grep -A "B" "B" test1
745 atf_check -s not-exit:0 -e ignore grep -B "B" "B" test1
747 atf_check -s not-exit:0 -e ignore grep -C "B" "B" test1
762 atf_check -o inline:"${binmatchtext}" grep 'B' test1
763 atf_check -o inline:"${binmatchtext}" grep 'B' -C 1 test1
765 atf_check -o inline:"${binmatchtext}" grep -U 'B' test1
766 atf_check -o inline:"${binmatchtext}" grep -U 'B' -C 1 test1
769 atf_check -o inline:"A\000B\000C\n" grep -a 'B' test1
770 atf_check -o inline:"A\000B\000C\n" grep -a 'B' -C 1 test1
773 atf_check -o inline:"\000B\n" grep -a 'B' test2
774 atf_check -o inline:"A\n\000B\n\000C\n" grep -a 'B' -C 1 test2
777 atf_check -s exit:1 grep -I 'B' test2
780 atf_check -o inline:"${binmatchtext}" grep --binary-files=binary 'B' test1
781 atf_check -o inline:"A\000B\000C\n" grep --binary-files=text 'B' test1
782 atf_check -s exit:1 grep --binary-files=without-match 'B' test2
794 atf_expect_fail "gnu grep from ports has no --mmap option"
799 atf_check -s exit:0 -o inline:"B\n" grep --mmap -oe "B" test1
800 atf_check -s exit:1 grep --mmap -e "Z" test1
814 atf_check -o inline:"test2:A\ntest3:A\ntest3:B\n" grep "" test1 test2 test3
815 atf_check -o inline:"test3:A\ntest3:B\ntest2:A\n" grep "" test3 test1 test2
816 atf_check -o inline:"test2:A\ntest3:A\ntest3:B\n" grep "" test2 test3 test1
818 atf_check -s exit:1 grep "" test1
830 atf_check -o inline:"Foo\nBaz\n" grep -F -e "Foo" -e "Baz" test1
831 atf_check -o inline:"Foo\nBaz\n" grep -F -e "Baz" -e "Foo" test1
832 atf_check -o inline:"Bar\nBaz\n" grep -F -e "Bar" -e "Baz" test1
844 atf_check -o inline:"Foo\nBaz\n" grep -Fi -e "foo" -e "baz" test1
845 atf_check -o inline:"Foo\nBaz\n" grep -Fi -e "baz" -e "foo" test1
846 atf_check -o inline:"Bar\nBaz\n" grep -Fi -e "bar" -e "baz" test1
847 atf_check -o inline:"Bar\nBaz\n" grep -Fi -e "BAR" -e "bAz" test1
859 atf_check -o inline:"a\n" grep -Fo "a" test1
860 atf_check -o inline:"i\n" grep -Fo "i" test1
861 atf_check -o inline:"abc\n" grep -Fo "abc" test1
862 atf_check -o inline:"fgh\n" grep -Fo "fgh" test1
863 atf_check -o inline:"cde\n" grep -Fo "cde" test1
864 atf_check -o inline:"bcd\n" grep -Fo -e "bcd" -e "cde" test1
865 atf_check -o inline:"bcd\nefg\n" grep -Fo -e "bcd" -e "efg" test1
867 atf_check -s exit:1 grep -Fo "xabc" test1
868 atf_check -s exit:1 grep -Fo "abcx" test1
869 atf_check -s exit:1 grep -Fo "xghi" test1
870 atf_check -s exit:1 grep -Fo "ghix" test1
871 atf_check -s exit:1 grep -Fo "abcdefghiklmnopqrstuvwxyz" test1
883 atf_check -o inline:"1\n" grep -Ec "a" test1
884 atf_check -o inline:"2\n" grep -Ec "a|b" test1
885 atf_check -o inline:"3\n" grep -Ec "a|b|c" test1
887 atf_check -o inline:"test1:2\n" grep -EHc "a|b" test1
899 atf_check -o inline:"1\n" grep -m 1 -Ec "a" test1
900 atf_check -o inline:"2\n" grep -m 2 -Ec "a|b" test1
901 atf_check -o inline:"3\n" grep -m 3 -Ec "a|b|c|f" test1
903 atf_check -o inline:"test1:2\n" grep -m 2 -EHc "a|b|e|f" test1
916 atf_check -o inline:"foo\nfoo\n" grep -A1 -m1 foo test1
919 atf_check -o inline:"1:foo\n2-foo\n" grep -A1 -nm1 foo test1