Lines Matching refs:test1
98 printf "xmatch pmatch\n" > test1
100 atf_check -o inline:"pmatch\n" grep -Eow "(match )?pmatch" test1
314 printf "haddock\000cod\000plaice\000" > test1
318 grep -z -A1 cod test1 test2
321 grep -z -B1 cod test1 test2
324 grep -z -C1 cod test1 test2
467 printf "Eggs\n\nCheese" > test1
469 atf_check -o inline:"\n" grep -e "^$" test1
471 atf_check -o inline:"Eggs\nCheese\n" grep -v -e "^$" test1
481 printf "" > test1
486 atf_check -s exit:1 -o empty grep -w -e "" test1
498 printf "" > test1
503 atf_check -s exit:1 -o empty grep -x -e "" test1
591 printf "Foo" > test1
593 atf_check -o inline:"Foo\n" fgrep -e "Foo" test1
595 atf_check -s exit:1 -o empty fgrep -e "Fo." test1
605 printf "Foobar(ed)" > test1
608 atf_check -o inline:"Foo\n" egrep -o -e "F.." test1
610 atf_check -o inline:"Foobar\n" egrep -o -e "F[a-z]*" test1
612 atf_check -o inline:"Fo\n" egrep -o -e "F(o|p)" test1
614 atf_check -o inline:"(ed)\n" egrep -o -e "\(ed\)" test1
628 printf "Foobar(ed)" > test1
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
651 printf "x xx\n" > test1
654 atf_check -o file:test1 grep -w "x" test1
657 atf_check -s exit:1 grep -v -w "x" test1
673 printf "xxx\nyyyy\nzzz\nfoobarbaz\n" > test1
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
708 printf "A\nB\nC\n" > test1
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
735 printf "A\nB\nC\n" > 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
757 printf "A\000B\000C" > 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
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
797 printf "A\nB\nC\n" > test1
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
810 printf "" > 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
828 printf "Foo\nBar\nBaz" > 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
842 printf "Foo\nBar\nBaz" > 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
857 printf "abcdefghi\n" > 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
881 printf "a\nb\nc\n" > 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
897 printf "a\nb\nc\nd\ne\nf\n" > 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
913 printf "foo\nfoo\nbar\nfoo\nbar\nfoo\nbar\n" > 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
929 echo foo > test1
931 atf_check -o inline:"test1:foo\ntest2:foo\n" zgrep foo test1 test2
933 echo bar > test1
934 atf_check -o inline:"test2:foo\n" zgrep foo test1 test2
937 atf_check -s exit:1 zgrep foo test1 test2
954 echo foobar > tester2/test1