Home
last modified time | relevance | path

Searched full:grep (Results 1 – 25 of 2005) sorted by relevance

12345678910>>...81

/freebsd/contrib/netbsd-tests/usr.bin/grep/
H A Dt_grep.sh36 '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"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_status/
H A Dzpool_status_008_pos.ksh61 log_must eval "zpool status -e $TESTPOOL2 | grep $TESTDIR/vdev4 | grep DEGRADED"
66 log_must eval "zpool status -e $TESTPOOL2 | grep $TESTDIR/vdev5 | grep FAULTED"
69 log_mustnot eval "zpool status -e $TESTPOOL2 | grep ONLINE"
74 log_mustnot eval "zpool status -es $TESTPOOL2 | grep ONLINE"
84 log_mustnot eval "zpool status -e $TESTPOOL2 | grep $TESTDIR/vdev6 | grep ONLINE"
85 log_must eval "zpool status -es $TESTPOOL2 | grep $TESTDIR/vdev6 | grep ONLINE"
88 log_must eval "zpool status -e $TESTPOOL2 | grep $TESTPOOL2 | grep DEGRADED"
89 log_must eval "zpool status -e $TESTPOOL2 | grep $raid_type | grep DEGRADED"
95 log_mustnot eval "zpool status -es $TESTPOOL2 | grep $TESTDIR/vdev1 | grep ONLINE"
96 log_mustnot eval "zpool status -es $TESTPOOL2 | grep $TESTDIR/vdev2 | grep ONLINE"
[all …]
H A Dzpool_status_006_pos.ksh77 grep \"Permanent errors have been detected\""
78 log_must eval "zpool status -v | grep '$TESTPOOL2@snap1:/$TESTFILE0'"
79 log_must eval "zpool status -v | grep '$TESTPOOL2/clone1/$TESTFILE0'"
80 log_must eval "zpool status -v | grep '$TESTPOOL2/clone1@snap2:/$TESTFILE0'"
81 log_mustnot eval "zpool status -v | grep '$TESTPOOL2/clone2/$TESTFILE0'"
82 log_mustnot eval "zpool status -v | grep '$TESTPOOL2/clonexx/$TESTFILE0'"
83 log_must eval "zpool status -v | grep '$TESTPOOL2/clone2@snap3:/$TESTFILE0'"
84 log_must eval "zpool status -v | grep '$TESTPOOL2/clone3/$TESTFILE0'"
88 grep \"Permanent errors have been detected\""
89 log_must eval "zpool status -v | grep '$TESTPOOL2/clone1@snap1:/$TESTFILE0'"
[all …]
H A Dzpool_status_007_pos.ksh81 grep \"Permanent errors have been detected\""
82 log_must eval "zpool status -v | grep '$TESTPOOL2/$TESTFS1@snap1:/$TESTFILE0'"
83 log_must eval "zpool status -v | grep '$TESTPOOL2/clone1/$TESTFILE0'"
84 log_must eval "zpool status -v | grep '$TESTPOOL2/clone1@snap2:/$TESTFILE0'"
85 log_mustnot eval "zpool status -v | grep '$TESTPOOL2/clone2/$TESTFILE0'"
86 log_mustnot eval "zpool status -v | grep '$TESTPOOL2/clonexx/$TESTFILE0'"
87 log_must eval "zpool status -v | grep '$TESTPOOL2/clone2@snap3:/$TESTFILE0'"
88 log_must eval "zpool status -v | grep '$TESTPOOL2/clone3/$TESTFILE0'"
92 grep \"Permanent errors have been detected\""
93 log_must eval "zpool status -v | grep '$TESTPOOL2/clone1@snap1:/$TESTFILE0'"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/projectquota/
H A Dprojecttree_002_pos.ksh86 log_must eval "zfs project $PRJDIR/a1/c2 | grep $PRJID1"
89 log_must eval "zfs project -d $PRJDIR/a1/a2/a3 | grep $PRJID2"
92 log_must eval "zfs project -d $PRJDIR/b1/a2 | grep ' P '"
93 log_must eval "zfs project -d $PRJDIR/b1/a2/a3 | grep ' \- '"
97 log_must eval "zfs project -d $PRJDIR/a1/a2/a3 | grep ' P '"
98 log_must eval "zfs project $PRJDIR/a1/a2/a3/c4 | grep $PRJID2"
101 log_must eval "zfs project -cr $PRJDIR/a1/a2 | grep 'inherit flag is not set'"
102 log_must eval "zfs project $PRJDIR/a1/a2/a3/c4 | grep $PRJID2 | grep -v not"
104 log_must eval "zfs project -c -r $PRJDIR/a1/a2 | grep 123 | grep 'not set'"
105 log_mustnot eval "zfs project -cr -p 123 $PRJDIR/a1/a2 | grep c4 | grep -v not"
[all …]
H A Dprojecttree_001_pos.ksh65 if lsattr -V 2>&1 | grep "lsattr 1.44.4"; then
79 log_must eval "zfs project $PRJDIR/a3 | grep '$PRJID1 \-'"
82 log_must eval "lsattr -p $PRJDIR/a3 | grep $PRJID2 | grep -v '\-P[- ]* '"
85 log_must eval "zfs project -d $PRJDIR/a1 | grep '$PRJID1 \-'"
88 log_must eval "lsattr -pd $PRJDIR/a1 | grep $PRJID2 | grep -v '\-P[- ]* '"
91 log_must eval "zfs project -d $PRJDIR/a2 | grep '0 P'"
94 log_must eval "lsattr -pd $PRJDIR/a2 | grep 0 | grep '\-P[- ]* '"
97 log_must eval "zfs project -d $PRJDIR/a1 | grep '$PRJID1 P'"
100 log_must eval "lsattr -pd $PRJDIR/a2 | grep $PRJID2 | grep '\-P[- ]* '"
103 log_must eval "zfs project -d $PRJDIR/a1 | grep '$PRJID1 \-'"
[all …]
H A Dprojectid_001_pos.ksh64 if lsattr -V 2>&1 | grep "lsattr 1.44.4"; then
76 log_must eval "lsattr -p $PRJFILE | grep $PRJID1 | grep -v '\-P[- ]* '"
78 log_must eval "lsattr -pd $PRJDIR | grep $PRJID1 | grep -v '\-P[- ]* '"
81 log_must eval "lsattr -pd $PRJDIR | grep $PRJID1 | grep '\-P[- ]* '"
85 log_must eval "lsattr -p $PRJFILE | grep $PRJID1 | grep -v '\-P[- ]* '"
88 log_must eval "lsattr -pd $PRJDIR/dchild | grep $PRJID1 | grep '\-P[- ]* '"
90 log_must eval "lsattr -p $PRJDIR/fchild | grep $PRJID1"
93 log_must eval "lsattr -p $PRJDIR/dchild/foo | grep $PRJID1"
/freebsd/contrib/atf/atf-sh/
H A Datf_check_test.sh40 grep 'Executing command.*true' stdout >/dev/null || \
45 grep 'Executing command.*false' stdout >/dev/null || \
62 grep 'Executing command.*echo bar' stdout >/dev/null || \
64 grep 'stdout does not match golden output' stderr >/dev/null || \
66 grep 'stderr' stderr >/dev/null && \
68 grep '^-foo' stderr >/dev/null || \
70 grep '^+bar' stderr >/dev/null || \
87 grep 'Executing command.*echo bar' stdout >/dev/null || \
89 grep 'stdout' stderr >/dev/null && \
91 grep 'stderr does not match golden output' stderr >/dev/null || \
[all …]
/freebsd/usr.bin/grep/tests/
H A Dgrep_freebsd_test.sh28 # What grep(1) are we working with?
30 # - 1 : gnu grep (ports)
36 local grep_version=$(grep --version)
39 *"BSD grep"*)
42 *"GNU grep"*)
46 atf_fail "unknown grep type: $grep_version"
57 (cd "$(atf_get_srcdir)" && grep -r --exclude="*.out" -e "test" .) > d_grep_r_implied.out
60 … "(cd $(atf_get_srcdir) && grep -r --exclude=\"*.out\" -e \"test\") | diff d_grep_r_implied.out -"
70 atf_check -o save:d_grep_r_implied.out grep -r --exclude="*.out" -e "test" "$(atf_get_srcdir)"
80 atf_check -o save:grep_alnum.out grep -o '[[:alnum:]]' /COPYRIGHT
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_scrub/
H A Dzpool_error_scrub_003_pos.ksh78 grep \"Permanent errors have been detected\""
79 log_must eval "zpool status -v | grep '$TESTPOOL2/$TESTFS1/$TESTFILE0'"
80 log_must eval "zpool status -v | grep '$TESTPOOL2/$TESTFS1@snap1:/$TESTFILE0'"
81 log_must eval "zpool status -v | grep '$TESTPOOL2/clone1/$TESTFILE0'"
82 log_must eval "zpool status -v | grep '$TESTPOOL2/clone1@snap2:/$TESTFILE0'"
83 log_must eval "zpool status -v | grep '$TESTPOOL2/clone2/$TESTFILE0'"
84 log_must eval "zpool status -v | grep '$TESTPOOL2/clone2@snap3:/$TESTFILE0'"
85 log_must eval "zpool status -v | grep '$TESTPOOL2/clone3/$TESTFILE0'"
89 log_must eval "zpool status -v | grep 'error blocks'"
92 grep \"Permanent errors have been detected\""
[all …]
/freebsd/contrib/kyua/bootstrap/
H A Dtestsuite.at78 AT_CHECK([grep "${re}" stdout], [0], [ignore], [])
89 AT_CHECK([grep "${re}" stdout], [0], [ignore], [])
100 AT_CHECK([grep "${re}" stdout], [0], [ignore], [])
110 AT_CHECK([grep "atf_helpers:fails" stdout], [1], [], [])
111 AT_CHECK([grep "atf_helpers:passes.*passed" stdout], [0], [ignore], [])
112 AT_CHECK([grep "atf_helpers:skips" stdout], [1], [], [])
122 AT_CHECK([grep "atf_helpers:fails.*failed.*Failed on purpose" stdout],
124 AT_CHECK([grep "atf_helpers:passes" stdout], [1], [], [])
125 AT_CHECK([grep "atf_helpers:skips" stdout], [1], [], [])
135 AT_CHECK([grep "atf_helpers:fails" stdout], [1], [], [])
[all …]
/freebsd/contrib/netbsd-tests/net/arp/
H A Dt_dad.sh90 atf_check -s not-exit:0 -x "cat ./out |grep 10.0.0.1 |grep -iq tentative"
93 #atf_check -s exit:0 -x "cat ./out |grep 10.0.0.2 |grep -iq tentative"
101 atf_check -s exit:0 -x "cat ./out |grep -q '$pkt'"
104 atf_check -s not-exit:0 -x "cat ./out |grep -q '$pkt'"
115 atf_check -s exit:0 -x "cat ./out |grep -q '$pkt'"
117 atf_check -s not-exit:0 -x "rump.ifconfig shmif0 |grep 10.0.0.2 |grep -iq tentative"
126 #atf_check -s exit:0 -x "rump.ifconfig shmif0 |grep 10.0.0.3 |grep -iq tentative"
133 atf_check -s exit:0 -x "cat ./out |grep -q '$pkt'"
144 atf_check -s exit:0 -x "cat ./out |grep -q '$pkt'"
146 atf_check -s not-exit:0 -x "rump.ifconfig shmif0 |grep 10.0.0.3 |grep -iq tentative"
[all …]
/freebsd/usr.bin/grep/
H A Dgrep.11 .\" $NetBSD: grep.1,v 1.2 2011/02/16 01:31:33 joerg Exp $
2 .\" $OpenBSD: grep.1,v 1.38 2010/04/05 06:30:59 jmc Exp $
34 .Nm grep ,
40 .Nm grep
60 .Nm grep
70 .Nm grep
82 .Nm grep
181 .Nm grep
235 .Nm grep
251 .Nm grep
[all …]
/freebsd/contrib/kyua/integration/
H A Dcmd_help_test.sh33 grep -E 'kyua .*[0-9]+\.[0-9]+' stdout || atf_fail 'No version reported'
34 grep '^Usage: kyua' stdout || atf_fail 'No usage line printed'
35 grep -- '--loglevel' stdout || atf_fail 'Generic options not printed'
36 if grep -- '--show' stdout; then
39 grep 'about *Shows detailed' stdout || atf_fail 'Commands not printed'
46 grep -E 'kyua .*[0-9]+\.[0-9]+' stdout || atf_fail 'No version reported'
47 grep '^Usage: kyua' stdout || atf_fail 'No usage line printed'
48 grep '^Run tests' stdout || atf_fail 'No description printed'
49 grep -- '--loglevel' stdout || atf_fail 'Generic options not printed'
50 grep -- '--kyuafile' stdout || atf_fail 'Command options not printed'
[all …]
/freebsd/tools/test/stress2/misc/
H A Dbackingstore2.sh43 mount | grep "$mntpoint$m2" | grep -q md$m2 && umount $mntpoint$m2
44 mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
45 mount | grep "$mntpoint$m1" | grep -q md$m1 && umount $mntpoint$m1
46 mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
67 mount | grep "$mntpoint" | grep -q md$m2 && umount $mntpoint$m2
68 mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
69 mount | grep "$mntpoint" | grep -q md$m1 && umount $mntpoint$m1
70 mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
H A Dbackingstore3.sh42 mount | grep "$mntpoint" | grep -q md$m2 && umount $mntpoint$m2
43 mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
44 mount | grep "$mntpoint" | grep -q md$m1 && umount $mntpoint$m1
45 mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
68 mount | grep "$mntpoint" | grep -q md$m2 && umount $mntpoint$m2
69 mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
70 mount | grep "$mntpoint" | grep -q md$m1 && umount $mntpoint$m1
71 mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
H A Dsuj28.sh36 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
37 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
62 mount | grep $mntpoint2 | grep -q /dev/md && umount -f $mntpoint2
63 mdconfig -l | grep -q md$mdstart2 && mdconfig -d -u $mdstart2
67 grep -v "Resource temporarily unavailable"
79 while mount | grep $mntpoint2 | grep -q /dev/md; do
82 mdconfig -l | grep -q md$mdstart2 && mdconfig -d -u $mdstart2
83 while mount | grep "$mntpoint " | grep -q /dev/md; do
H A Dsuj26.sh37 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
38 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
62 mount | grep $mntpoint2 | grep -q /dev/md && umount -f $mntpoint2
63 mdconfig -l | grep -q md$mdstart2 && mdconfig -d -u $mdstart2
67 grep -v "Resource temporarily unavailable"
74 while mount | grep $mntpoint2 | grep -q /dev/md; do
81 while mount | grep $mntpoint | grep -q /dev/md; do
H A Dnfs11.sh35 grep -q $mntpoint /etc/exports ||
40 mount | grep "on $m2 " | grep -q nfs && umount $m2
41 mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
42 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
58 while mount | grep "on $m2 " | grep -q nfs; do
62 while mount | grep "on $mntpoint " | grep -q /dev/md; do
H A Dall.debug.inc32 debug_statfs=`vmstat -m | grep -w statfs | awk '{print $2}'`
33 debug_freework=`vmstat -m | grep -w freework | awk '{print $2}'`
34 debug_newblk=`vmstat -m | grep -w newblk | awk '{print $2}'`
35 debug_pts=`vmstat -m | grep -w pts | awk '{print $2}'`
36 debug_routetbl=`vmstat -m | grep -w routetbl | awk '{print $2}'`
38 debug_geom=`vmstat -m | grep -w GEOM | awk '{print $2}'`
39 # debug_indirdep=`vmstat -m | grep -w indirdep | awk '{print $2}'`
45 debug_new=`vmstat -m | grep -w statfs | awk '{print $2}'`
51 debug_new=`vmstat -m | grep -w freework | awk '{print $2}'`
57 debug_new=`vmstat -m | grep -w newblk | awk '{print $2}'`
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_share/
H A Dzfs_share_013_pos.ksh49 log_must grep -q "::1(" <<< "$output"
53 log_must grep -q "2::3(" <<< "$output"
57 log_must grep -q "::1(" <<< "$output"
58 log_must grep -q "2::3(" <<< "$output"
62 log_must grep -q "::1/64(" <<< "$output"
66 log_must grep -q "2::3/128(" <<< "$output"
70 log_must grep -q "::1/32(" <<< "$output"
71 log_must grep -q "2::3/128(" <<< "$output"
75 log_must grep -q "::1(" <<< "$output"
76 log_must grep -q "2::3/64(" <<< "$output"
[all …]
/freebsd/contrib/one-true-awk/testdir/
H A DT.misc103 grep '\\' foo && echo 1>&2 "BAD: T.misc alexander fails"
110 grep "can't use function foo" foo >/dev/null || echo 1>&2 "BAD: T.misc fcn args"
115 grep "calling undefined function foo" foo >/dev/null || echo 1>&2 "BAD: T.misc undefined function"
136 grep "can.t assign to foo" foo >/dev/null || echo 1>&2 "BAD: T.misc foo bug"
143 grep "syntax error" foo >/dev/null || echo 1>&2 "BAD: T.misc syntax error !x=y fails"
153 grep bbb foo >/dev/null || echo 1>&2 "BAD: T.misc gsub failed"
168 grep 'nonterminated character class' foo >/dev/null || error 'BAD: T.misc nonterminated fails'
175 grep '<12345>' foo >/dev/null || echo 'BAD: T.misc <12345> fails'
187 $awk 'END {print NR}' foo1 | grep 4 >/dev/null || echo 'BAD: T.misc abcdef fails'
227 grep '^' foo && echo 'BAD: test constant change fails'
[all …]
/freebsd/tests/sys/netinet6/
H A Dproxy_ndp.sh54 while [ `jexec ${jname} ifconfig | grep inet6 | grep -c tentative` != "0" ]; do
59 while [ `jexec ${jname} ifmcstat | grep -c undefined` != "0" ]; do
65 t=`jexec ${jname} ifmcstat -i ${epair0}a -f inet6 | grep -A1 'group ff02::1:ff00:2'`
96 while [ `jexec ${jname} ifconfig | grep inet6 | grep -c tentative` != "0" ]; do
101 while [ `jexec ${jname} ifmcstat | grep -c undefined` != "0" ]; do
107 while [ `jexec ${jname} ifmcstat | grep -c undefined` != "0" ]; do
143 while [ `jexec ${jname} ifconfig | grep inet6 | grep -c tentative` != "0" ]; do
148 while [ `jexec ${jname} ifmcstat | grep -c undefined` != "0" ]; do
181 while [ `jexec ${jname_a} ifconfig | grep inet6 | grep -c tentative` != "0" ]; do
185 while [ `jexec ${jname_a} ifmcstat | grep -c undefined` != "0" ]; do
[all …]
/freebsd/contrib/pjdfstest/tests/
H A Dconf28 GREP=grep
31 fs=`mount | grep "on $mountpoint" | sed -e 's/.*(//' -e 's/,.*//g' | tr '[:lower:]' '[:upper:]'`
34 GREP=grep
40 GREP=ggrep
42 fs=`mount -v | ${GREP} -E "^${pattern}" | awk '{print $5}' | \
46 GREP=grep
/freebsd/contrib/netbsd-tests/usr.bin/config/
H A Dt_config.sh170 grep -q '^ a\.c ' $f &&
171 grep -q '^ b\.c ' $f &&
172 grep -q '^ c\.c ' $f &&
191 grep -q '^a\.o:' $f >>tmp
192 grep -q '^b\.o:' $f >>tmp
193 grep -q '^c\.o:' $f >>tmp
215 grep -q '^CFDRIVER_DECL(d, ' $f &&
216 grep -q '&d_cd,' tmp.cfdriver &&
217 grep -q '^extern struct cfattach d_ca;$' $f &&
218 grep -q '^static const struct cfiattrdata \* const d_attrs\[\]' $f &&
[all …]

12345678910>>...81