Lines Matching refs:test1

98 	printf "xmatch pmatch\n" > test1
100 atf_check -o inline:"pmatch\n" grep -Eow "(match )?pmatch" test1
235 printf "haddock\000cod\000plaice\000" > test1
239 grep -z -A1 cod test1 test2
242 grep -z -B1 cod test1 test2
245 grep -z -C1 cod test1 test2
388 printf "Eggs\n\nCheese" > test1
390 atf_check -o inline:"\n" grep -e "^$" test1
392 atf_check -o inline:"Eggs\nCheese\n" grep -v -e "^$" test1
402 printf "" > test1
407 atf_check -s exit:1 -o empty grep -w -e "" test1
419 printf "" > test1
425 atf_check -s exit:1 -o empty grep -x -e "" test1
497 printf "Foo" > test1
499 atf_check -o inline:"Foo\n" fgrep -e "Foo" test1
501 atf_check -s exit:1 -o empty fgrep -e "Fo." test1
511 printf "Foobar(ed)" > test1
514 atf_check -o inline:"Foo\n" egrep -o -e "F.." test1
516 atf_check -o inline:"Foobar\n" egrep -o -e "F[a-z]*" test1
518 atf_check -o inline:"Fo\n" egrep -o -e "F(o|p)" test1
520 atf_check -o inline:"(ed)\n" egrep -o -e "\(ed\)" test1
534 printf "Foobar(ed)" > test1
537 atf_check -o inline:"Foo\n" grep -o -e "F.." test1
539 atf_check -o inline:"Foobar\n" grep -o -e "F[a-z]*" test1
541 atf_check -o inline:"Fo\n" grep -o -e "F\(o\)" test1
543 atf_check -o inline:"(ed)\n" grep -o -e "(ed)" test1
557 printf "x xx\n" > test1
560 atf_check -o file:test1 grep -w "x" test1
563 atf_check -s exit:1 grep -v -w "x" test1
579 printf "xxx\nyyyy\nzzz\nfoobarbaz\n" > test1
582 atf_check -o inline:"1:1:xx\n" grep -bon "xx$" test1
584 atf_check -o inline:"2:4:yyyy\n" grep -bn "yy" test1
586 atf_check -o inline:"2:6:yy\n" grep -bon "yy$" test1
591 "grep -Eon 'x|y|z|f' test1 | grep -Ev '${check_expr}'"
594 "grep -En 'x|y|z|f' --color=always test1 | grep -Ev '${check_expr}'"
597 "grep -Eon 'x|y|z|f' --color=always test1 | grep -Ev '${check_expr}'"
614 printf "A\nB\nC\n" > test1
616 atf_check -o inline:"1\n" grep -c -C 1 -e "B" test1
617 atf_check -o inline:"1\n" grep -c -B 1 -e "B" test1
618 atf_check -o inline:"1\n" grep -c -A 1 -e "B" test1
619 atf_check -o inline:"1\n" grep -c -C 1 -e "B" test1
621 atf_check -o inline:"test1\n" grep -l -e "B" test1
622 atf_check -o inline:"test1\n" grep -l -B 1 -e "B" test1
623 atf_check -o inline:"test1\n" grep -l -A 1 -e "B" test1
624 atf_check -o inline:"test1\n" grep -l -C 1 -e "B" test1
626 atf_check -o inline:"test1\n" grep -L -e "D" test1
628 atf_check -o empty grep -q -e "B" test1
629 atf_check -o empty grep -q -B 1 -e "B" test1
630 atf_check -o empty grep -q -A 1 -e "B" test1
631 atf_check -o empty grep -q -C 1 -e "B" test1
641 printf "A\nB\nC\n" > test1
643 atf_check -s not-exit:0 -e ignore grep -A "-1" "B" test1
645 atf_check -s not-exit:0 -e ignore grep -B "-1" "B" test1
647 atf_check -s not-exit:0 -e ignore grep -C "-1" "B" test1
649 atf_check -s not-exit:0 -e ignore grep -A "B" "B" test1
651 atf_check -s not-exit:0 -e ignore grep -B "B" "B" test1
653 atf_check -s not-exit:0 -e ignore grep -C "B" "B" test1
663 printf "A\000B\000C" > test1
665 binmatchtext="Binary file test1 matches\n"
668 atf_check -o inline:"${binmatchtext}" grep 'B' test1
669 atf_check -o inline:"${binmatchtext}" grep 'B' -C 1 test1
671 atf_check -o inline:"${binmatchtext}" grep -U 'B' test1
672 atf_check -o inline:"${binmatchtext}" grep -U 'B' -C 1 test1
675 atf_check -o inline:"A\000B\000C\n" grep -a 'B' test1
676 atf_check -o inline:"A\000B\000C\n" grep -a 'B' -C 1 test1
686 atf_check -o inline:"${binmatchtext}" grep --binary-files=binary 'B' test1
687 atf_check -o inline:"A\000B\000C\n" grep --binary-files=text 'B' test1
703 printf "A\nB\nC\n" > test1
705 atf_check -s exit:0 -o inline:"B\n" grep --mmap -oe "B" test1
706 atf_check -s exit:1 grep --mmap -e "Z" test1
716 printf "" > test1
720 atf_check -o inline:"test2:A\ntest3:A\ntest3:B\n" grep "" test1 test2 test3
721 atf_check -o inline:"test3:A\ntest3:B\ntest2:A\n" grep "" test3 test1 test2
722 atf_check -o inline:"test2:A\ntest3:A\ntest3:B\n" grep "" test2 test3 test1
724 atf_check -s exit:1 grep "" test1
734 printf "Foo\nBar\nBaz" > test1
736 atf_check -o inline:"Foo\nBaz\n" grep -F -e "Foo" -e "Baz" test1
737 atf_check -o inline:"Foo\nBaz\n" grep -F -e "Baz" -e "Foo" test1
738 atf_check -o inline:"Bar\nBaz\n" grep -F -e "Bar" -e "Baz" test1
748 printf "Foo\nBar\nBaz" > test1
750 atf_check -o inline:"Foo\nBaz\n" grep -Fi -e "foo" -e "baz" test1
751 atf_check -o inline:"Foo\nBaz\n" grep -Fi -e "baz" -e "foo" test1
752 atf_check -o inline:"Bar\nBaz\n" grep -Fi -e "bar" -e "baz" test1
753 atf_check -o inline:"Bar\nBaz\n" grep -Fi -e "BAR" -e "bAz" test1
763 printf "abcdefghi\n" > test1
765 atf_check -o inline:"a\n" grep -Fo "a" test1
766 atf_check -o inline:"i\n" grep -Fo "i" test1
767 atf_check -o inline:"abc\n" grep -Fo "abc" test1
768 atf_check -o inline:"fgh\n" grep -Fo "fgh" test1
769 atf_check -o inline:"cde\n" grep -Fo "cde" test1
770 atf_check -o inline:"bcd\n" grep -Fo -e "bcd" -e "cde" test1
771 atf_check -o inline:"bcd\nefg\n" grep -Fo -e "bcd" -e "efg" test1
773 atf_check -s exit:1 grep -Fo "xabc" test1
774 atf_check -s exit:1 grep -Fo "abcx" test1
775 atf_check -s exit:1 grep -Fo "xghi" test1
776 atf_check -s exit:1 grep -Fo "ghix" test1
777 atf_check -s exit:1 grep -Fo "abcdefghiklmnopqrstuvwxyz" test1
787 printf "a\nb\nc\n" > test1
789 atf_check -o inline:"1\n" grep -Ec "a" test1
790 atf_check -o inline:"2\n" grep -Ec "a|b" test1
791 atf_check -o inline:"3\n" grep -Ec "a|b|c" test1
793 atf_check -o inline:"test1:2\n" grep -EHc "a|b" test1
803 printf "a\nb\nc\nd\ne\nf\n" > test1
805 atf_check -o inline:"1\n" grep -m 1 -Ec "a" test1
806 atf_check -o inline:"2\n" grep -m 2 -Ec "a|b" test1
807 atf_check -o inline:"3\n" grep -m 3 -Ec "a|b|c|f" test1
809 atf_check -o inline:"test1:2\n" grep -m 2 -EHc "a|b|e|f" test1