Home
last modified time | relevance | path

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

12345678910>>...44

/third_party/toybox/tests/
Dgrep.test10 testing "-c" "grep -c 123 input" "3\n" "123\ncount 123\n123\nfasdfasdf" ""
15 testing "-l" "grep -l test foo foo2 foo3" "foo\nfoo2\n" "" ""
18 testing "-q" "grep -q test input && echo yes" "yes\n" "this is a test\n" ""
19 testing "-E" "grep -E '[0-9]' input" "1234123asdfas123123\n1\n" \
21 testing "-e" "grep -e '[0-9]' input" "1234123asdfas123123\n1\n" \
23 testing "-e -e" "grep -e one -e two -e three input" \
25 testing "-F" "grep -F is input" "this is test\nthis is test2\n" \
31 testing "-H" "grep -H is foo foo2 foo3" "foo:this is test\nfoo:this is test2\nfoo2:hello this is te…
34 testing "-b" "grep -b is input" "0:this is test\n13:this is test2\n" \
36 testing "-i" "grep -i is input" "thisIs test\nthis is test2\n" \
[all …]
Difconfig.test6 # Commands used: grep, grep -i, ip link, ip tuntap, wc -l
45 "ifconfig dummy0 down && ifconfig | grep dummy | wc -l" \
51 "ifconfig dummy0 up && ifconfig dummy0 | grep dummy | wc -l" \
58 "ifconfig dummy0 10.240.240.240 && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \
65 "ifconfig dummy0 netmask 255.255.240.0 && ifconfig dummy0 | grep 255\.255\.240\.0 | wc -l" \
72 "ifconfig dummy0 broadcast 10.240.240.255 && ifconfig dummy0 | grep 10\.240\.240\.255 | wc -l" \
79 "ifconfig dummy0 default && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \
86 "ifconfig dummy0 mtu 1269 && ifconfig dummy0 | grep 1269 | wc -l" \
93 "ifconfig dummy0 add ::2 2>&1 | grep No\ buffer\ space\ available | wc -l" \
100 "ifconfig dummy0 mtu 2000 && ifconfig dummy0 | grep 2000 | wc -l" \
[all …]
Dgroupadd.test20 # Redirecting all output to /dev/null for grep and delgroup
26 grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
29 grep '^toy1Test2Group3:' /etc/group $arg && groupdel toy1Test2Group3 $arg &&
32 grep '^987654321:' /etc/group $arg && groupdel 987654321 $arg &&
35 grep '^toy.1Test-2Group.3:' /etc/group $arg &&
40 grep '^$_s210:' /etc/group $arg && groupdel $_s210 $arg && echo 'yes'" \
43 grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
46 "groupadd -g 49999 -S toyTestGroup && grep '^toyTestGroup:' /etc/group $arg &&
49 grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
52 grep '^toyTestGroup:' /etc/group $arg && groupadd $USER toyTestGroup &&
[all …]
Duseradd.test15 # Redirecting all output to /dev/null for grep, adduser and deluser
25 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
31 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
37 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
43 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
50 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
56 grep '^$user:.*dir' /etc/passwd $arg && [ -d $PWD/dir ] &&
63 grep '^$user:.*$gecos' /etc/passwd $arg && [ -d /home/$user ] &&
69 grep '^$user:.*$shl$' /etc/passwd $arg && [ -d /home/$user ] &&
74 g_id=`grep $g_name':.*:.*' /etc/group | cut -d : -f 3`
[all …]
Dmktemp.test7 testing "default template uses \$TMPDIR" "TMPDIR=. mktemp | grep -q '^./tmp\...........$' && echo y…
12 testing "TEMPLATE does not use \$TMPDIR" "TMPDIR=/t mktemp -u hello.XXXXXXXX | grep -q '^hello\....…
13 testing "/ in TEMPLATE works but ignores \$TMPDIR" "TMPDIR=/t mktemp -u /x/hello.XXXXXXXX | grep -q…
15 testing "-t TEMPLATE uses \$TMPDIR" "TMPDIR=/t mktemp -u -t hello.XXXXXXXX | grep -q '^/t/hello\...…
16 testing "-t and TEMPLATE but no \$TMPDIR uses /tmp" "TMPDIR= mktemp -u -t hello.XXXXXXXX | grep -q …
17 testing "-p DIR and TEMPLATE should use DIR" "TMPDIR=/t mktemp -u -p DIR hello.XXXXXXXX | grep -q '…
18 testing "-p DIR and -t: -t wins" "TMPDIR=/t mktemp -u -p DIR -t hello.XXXXXXXX | grep -q '^/t/hello…
19 …but no \$TMPDIR (DIR wins)" "TMPDIR= mktemp -u -p DIR -t hello.XXXXXXXX | grep -q '^DIR/hello\....…
21 "mktemp -u -p /proc | grep -q '^/proc/tmp\...........\$' && echo yes" "yes\n" \
28 "TMPDIR= mktemp -u helloXXX --tmpdir | grep -q '^/tmp/hello...\$' && echo yes" \
[all …]
Dgroupdel.test15 # Redirecting all output to /dev/null for grep and delgroup
21 grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
24 grep '^toy1Test2Group3:' /etc/group $arg && groupdel toy1Test2Group3 $arg &&
27 grep '^987654321:' /etc/group $arg && groupdel 987654321 $arg &&
30 grep '^toy.1Test-2Group.3:' /etc/group $arg &&
33 grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
/third_party/libwebsockets/scripts/
Dautobahn-test-server.sh64 R=`cat /tmp/ji | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavi…
71 …cat /tmp/ji | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavior…
78 R=`cat /tmp/jis | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behav…
86 …cat /tmp/jis | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavio…
Dmozilla-trust-gen.sh69 ISS=`cat _trust/c1 | grep Issuer: | sed "s/.*://g" | sed "s/^\ *//g"`
70 SER=`cat _trust/c1 | grep "Serial Number:" | sed "s/.*://g" | sed "s/^\ *//g" | sed "s/\ .*//g"`
75 grep ':' | grep -v ': ' | grep -v ':$' | grep -v U | grep -v k | grep -v T | grep -v "i" | \
76 grep -v "S" | grep -v "V" | sed "s/^\ *//g"`
79 na=`cat _trust/c1 | grep "Not\ After\ :" | sed "s/.*\ :\ //g"`
95 cat _trust/single | grep -v -- '---' | base64 -d > _trust/webroot/der/$safe
103 DERSIZ=`cat _trust/single | grep -v -- '---' | base64 -d | wc -c | cut -d' ' -f1`
105 cat _trust/single | grep -v -- '---' | base64 -d | hexdump -C | tr -s ' ' | sed 's/\ $//g' | \
106 …cut -d' ' -f 2-17 | cut -d'|' -f1 | grep -v 000 | sed "s/\ //g" | sed ':a;N;$!ba;s/\n//g' | xxd -r…
181 cut -d' ' -f 2-17 | cut -d'|' -f1 | grep -v 000 | sed "s/\ /,\ 0x/g" | sed "s/^/0x/g" | \
/third_party/ltp/testcases/network/rpc/basic_tests/rpcinfo/
Drpcinfo01.sh16 rpcinfo -p $(tst_ipaddr) | grep tcp | sed -n 2p > rpc_out
17 rpcinfo -p $(tst_ipaddr) | grep udp | sed -n 2p >> rpc_out
19 wc -l rpc_out | grep -q "2" || \
23 TPNUM=$(grep tcp rpc_out | awk '{print $1}')
24 TVNUM=$(grep tcp rpc_out | awk '{print $2}')
25 TCPNAME=$(grep tcp rpc_out | awk '{print $5}')
26 UPNUM=$(grep udp rpc_out | awk '{print $1}')
27 UVNUM=$(grep udp rpc_out | awk '{print $2}')
28 UDPNAME=$(grep udp rpc_out | awk '{print $5}')
35 EXPECT_RHOST_PASS rpcinfo -p $thost | grep -q portmapper
/third_party/mindspore/mindspore-src/source/tests/st/networks/models/bert/bert_performance/
Drun_ge.sh28 result=`ps -ef | grep test_bert_tdt_ge.py | grep -v grep | wc -l`
34 result=`ps -ef | grep test_bert_tdt_ge.py | grep -v grep | wc -l`
39 ps aux | grep 'test_bert_tdt_ge.py' | grep -v grep | awk '{print $2}' | xargs kill -9
/third_party/ffmpeg/tools/
Dmurge3 grep -A99999 '^<<<<<<<' | grep -B99999 '^>>>>>>>' >murge.X
4 grep -A99999 '^====' murge.X | egrep -v '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)' >murge.theirs
5 grep -B99999 '^||||' murge.X | egrep -v '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)' >murge.ours
6 grep -B99999 '^====' murge.X | grep -A99999 '^||||' | egrep -v '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\…
9 grep . murge.common > /dev/null && colordiff -du $* murge.common murge.theirs
10 grep . murge.common > /dev/null && colordiff -du $* murge.common murge.ours
Dpatcheck11 GREP=grep
15 #FILES=$($GREP '^+++' $* | sed 's/+++ //g')
32 $GREP $OPT '^+' $* | $GREP -v ':+++'| $EGREP --color=always -- "$arg"> $TMP && printf "\n$msg\n"
41 …$GREP $OPT '^+' $* | $GREP -v ':+++' | $EGREP -v -- "$varg" | $EGREP --color=always -- "$arg" > $T…
96 #$EGREP $OPT '^\+.*const ' $*| $GREP -v 'static'> $TMP && printf '\nnon static const\n'
111 for i in $($GREP -H '^+.*@param' $*| sed 's/^\([^:]*\):.*@param\(\[.*\]\|\) *\([a-zA-Z0-9_]*\) .*$/…
114 …$GREP " *$doxpar *[),]" $file | $GREP -v '@param' >/dev/null || $GREP --color=always "@param *$dox…
127 $GREP -v '(' | $EGREP -v '\Wgoto\W' |\
129 $GREP -o '[* ][* ]*[a-zA-Z][0-9a-zA-Z_]* *[,;=]' |\
132 echo $i | $GREP '^NULL$' && continue
[all …]
/third_party/elfutils/tests/
Drun-debuginfod-federation-metrics.sh62 -a prog | grep 'Build ID' | cut -d ' ' -f 7`
119 # we'll grep for the two patterns in vlog$PORT1
122 grep UA:TESTCURL vlog$PORT1
123 grep XFF:TESTXFF vlog$PORT1
127 -a L/foo | grep 'Build ID' | cut -d ' ' -f 7`
156 curl -s http://127.0.0.1:$PORT1/metrics | grep -q 'http_responses_total.*result.*error'
157 curl -s http://127.0.0.1:$PORT2/metrics | grep -q 'http_responses_total.*result.*upstream'
158 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_duration_milliseconds_count'
159 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_duration_milliseconds_sum'
160 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_count'
[all …]
Drun-debuginfod-find.sh25 bsdtar --version | grep -q zstd && zstd=true || zstd=false
105 | grep "$what" | awk '{print $NF}')"
138 ps -q $PID1 -e -L -o '%p %c %a' | grep groom
139 ps -q $PID1 -e -L -o '%p %c %a' | grep scan
140 ps -q $PID1 -e -L -o '%p %c %a' | grep traverse
157 -a prog | grep 'Build ID' | cut -d ' ' -f 7`
191 bytecount_before=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_cou…
193 bytecount_after=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_coun…
202 bytecount_before=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_cou…
204 bytecount_after=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_coun…
[all …]
Drun-debuginfod-response-headers.sh64 rpms=$(find R -name \*rpm | grep -v nothing | wc -l)
80 grep 'Headers:' vlog-find$PORT1.1
81 grep -i 'X-DEBUGINFOD-FILE: prog' vlog-find$PORT1.1
82 grep -i 'X-DEBUGINFOD-SIZE: ' vlog-find$PORT1.1
90 grep 'Headers:' vlog-find$PORT1.2
91 grep -i 'X-DEBUGINFOD-FILE: ' vlog-find$PORT1.2
92 grep -i 'X-DEBUGINFOD-SIZE: ' vlog-find$PORT1.2
93 grep -i 'X-DEBUGINFOD-ARCHIVE: ' vlog-find$PORT1.2
99 x_debuginfod_size=$(grep -i 'X-DEBUGINFOD-SIZE' $file | head -1 | grep -E -o '[0-9]+')
105 -a F/prog | grep 'Build ID' | cut -d ' ' -f 7`
/third_party/unity/test/
DMakefile46 ./$(TARGET) | grep 'Tests\|]]]' -A1
49 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
53 ./$(TARGET) | grep 'Tests\|]]]' -A1
56 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
60 ./$(TARGET) | grep 'Tests\|]]]' -A1
63 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
67 ./$(TARGET) | grep 'Tests\|]]]' -A1
70 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
74 ./$(TARGET) | grep 'Tests\|]]]' -A1
77 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
[all …]
/third_party/ltp/testcases/kernel/security/smack/
Dsmack_set_cipso.sh28 old_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
31 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
35 right=$(echo "$new_rule" | grep ' 2')
41 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
45 right=$(echo $new_rule | grep '/55')
51 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
55 right=$(echo "$new_rule" | grep '/17,33')
Dsmack_set_load.sh27 old_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
30 new_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
40 new_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
/third_party/ffmpeg/tests/fate/
Dsource-check.sh8 git grep -L -E "This file is part of FFmpeg|This file is part of libswresample|"\
17 "This file is placed in the public domain" | grep -E '\.c$|\.h$|\.S$|\.asm$'
20 for f in `git ls-files | grep '\.h$'` ; do
30 git grep -L "^#define $macro$" $f
34 git grep -E 'av_clip *\(.*, *0 *, *(3|7|15|31|63|127|255|511|1023|2047|4095|8191|'\
36 '33554431|67108863|134217727|268435455|536870911|1073741823) *\)' | grep -v fate/source
39 git grep -E 'av_clip *\(.*, *(-2 *, *1|-4 *, *3|-8 *, *7|-16 *, *15|-32 *, *31|-64'\
45 '268435455|-536870912 *, *536870911|-1073741824 *, *1073741823) *\)'| grep -v fate/source
/third_party/ltp/testcases/network/iproute/
Dip_tests.sh26 lsmod | grep -q dummy || rm_dummy=1
54 [ "$ip4_addr" ] && ip route show | grep -q $ip4_addr && ip route del $ip4_addr
82 ip link show $iface | grep $iface > /dev/null
103 ip addr show dev lo | grep 127.6.6.6 > /dev/null
116 ip addr show dev lo | grep 127.6.6.6 > /dev/null
160 ip neigh show | grep $taddr | grep -v ' FAILED$' > /dev/null
182 ip route show | grep "$ip4_addr via 127.0.0.1 dev lo" > tst_ip.out 2>&1
198 ip route show | grep 127.0.0.1 > /dev/null
224 ip maddr show | grep "66:66:00:00:00:66" > tst_ip.out 2>&1
244 ip maddr show | grep "66:66:00:00:00:66" > /dev/null
/third_party/libfuse/util/
Dinit_script27 if ! grep -qw fuse /proc/filesystems; then
38 if grep -qw fusectl /proc/filesystems && \
39 ! grep -qw $MOUNTPOINT /proc/mounts; then
52 if ! grep -qw fuse /proc/filesystems; then
56 if grep -qw $MOUNTPOINT /proc/mounts; then
66 if grep -qw "^fuse" /proc/modules; then
79 if ! grep -qw fuse /proc/filesystems; then
/third_party/ltp/testcases/kernel/controllers/
Dtest_controllers.sh42 CPU_CONTROLLER=`grep -w cpu /proc/cgroups | cut -f1`;
43 CPU_CONTROLLER_VALUE=`grep -w cpu /proc/cgroups | cut -f4`;
44 MEM_CONTROLLER=`grep -w memory /proc/cgroups | cut -f1`;
45 MEM_CONTROLLER_VALUE=`grep -w memory /proc/cgroups | cut -f4`;
46 IOTHROTTLE_CONTROLLER=`grep -w blockio /proc/cgroups | cut -f1`;
47 IOTHROTTLE_CONTROLLER_VALUE=`grep -w blockio /proc/cgroups | cut -f4`;
48 FREEZER=`grep -w freezer /proc/cgroups | cut -f1`;
49 FREEZER_VALUE=`grep -w freezer /proc/cgroups | cut -f4`;
50 CPUACCOUNT_CONTROLLER=`grep -w cpuacct /proc/cgroups | cut -f1`
51 CPUACCOUNT_CONTROLLER_VALUE=`grep -w cpuacct /proc/cgroups | cut -f4`
/third_party/ltp/testcases/network/multicast/mc_member/
Dmc_member.sh46 DIGIT=`ps -ef | grep mc_member.sh | grep -v grep | wc -l`
73 grep "cannot join group" $ERRFILE
83 grep "cannot join group" $ERRFILE
93 netstat -gn | grep $agroup
104 netstat -gn | grep $agroup
117 count=`grep 105 $ERRFILE | wc -l`
/third_party/python/Lib/idlelib/idle_test/
Dtest_grep.py2 Non-gui unit tests for grep.GrepDialog methods.
8 from idlelib import grep
30 grep_it = grep.GrepDialog.grep_it
53 filelist = list(grep.findfiles('invaliddir', '*.*', False))
59 ff = grep.findfiles
68 ff = grep.findfiles
85 filelist = list(ff(self.path, 'grep.*', False))
90 ff = grep.findfiles
92 grepfile = os.path.join(parent, 'grep.py')
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_keys.sh9 TST_NEEDS_CMDS="cmp cut grep sed"
31 if echo $line | grep -q 'template=' && ! echo $line | grep -q 'template=ima-buf'; then
41 if ! grep -E "$pattern" $TST_TMPDIR/policy.txt; then
60 keyrings=$(for i in $keycheck_lines; do echo "$i" | grep "keyrings" | \
67 templates=$(for i in $keycheck_lines; do echo "$i" | grep "template" | \
73 grep -E "($templates).*($keyrings)" $ASCII_MEASUREMENTS | while read line
124 grep $keyring_name $ASCII_MEASUREMENTS | tail -n1 | cut -d' ' -f6 | \

12345678910>>...44