Home
last modified time | relevance | path

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

12345678910>>...56

/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/rust/rust/tests/run-make/symbol-visibility/
DMakefile31 # `grep` regex for symbols produced by either `legacy` or `v0` mangling
43 …[ "$$($(NM) $(TMPDIR)/$(CDYLIB_NAME) | grep -v __imp_ | grep -c public_c_function_from_cdylib)" -e…
45 …[ "$$($(NM) $(TMPDIR)/$(CDYLIB_NAME) | grep -v __imp_ | grep -c public_c_function_from_rlib)" -eq …
47 [ "$$($(NM) $(TMPDIR)/$(CDYLIB_NAME) | grep -v __imp_ | grep -c $(RE_ANY_RUST_SYMBOL))" -eq "0" ]
50 …[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_c_function_from_rust_dylib)…
51 …[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_rust_function_from_rust_dyl…
53 …[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_generic_function_from_rust_…
57 …[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_c_function_from_rlib)" -eq …
58 …[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_rust_function_from_rlib)" -…
60 …[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_generic_function_from_rlib)…
[all …]
/third_party/bzip2/
Dbzgrep6 ## zgrep -- a wrapper around a grep program that decompresses files as needed
13 *egrep) grep=${EGREP-egrep} ;;
14 *fgrep) grep=${FGREP-fgrep} ;;
15 *) grep=${GREP-grep} ;;
21 if test "$grep" = grep; then # grep is buggy with -e on SVR4
22 grep=egrep
36 echo "grep through bzip2 files"
52 bzip2 -cdfq | $grep $opt "$pat"
60 bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
63 bzip2 -cdfq "$i" | $grep $opt "$pat"
[all …]
Dbzgrep.124 .I grep
26 .I grep.
28 if necessary and fed to grep.
30 .I grep.
43 .I grep.
44 If the GREP environment variable is set,
47 .I grep
50 for sh: GREP=fgrep bzgrep string files
51 for csh: (setenv GREP fgrep; bzgrep string files)
56 grep(1), egrep(1), fgrep(1), bzdiff(1), bzmore(1), bzless(1), bzip2(1)
/third_party/rust/rust/tests/run-make/extern-fn-reachable/
DMakefile22 [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun1)" -eq "1" ]
23 [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun2)" -eq "1" ]
24 [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun3)" -eq "1" ]
25 [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun4)" -eq "1" ]
26 [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun5)" -eq "1" ]
/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/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
/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/grpc/test/csharp/codegen/
Dcsharp_codegen_deprecated_test.sh50 # Rather than doing a diff against a known file, just using grep to
56 nmatches=$(grep -c ObsoleteAttribute ${PROTO_OUT}/DepnothingGrpc.cs)
65 nmatches=$(grep -c ObsoleteAttribute ${PROTO_OUT}/DepserviceGrpc.cs)
73 CTX=$(grep -A 2 ObsoleteAttribute ${PROTO_OUT}/DepserviceGrpc.cs)
76 nmatches=$(echo "$CTX" | grep -c "class GreeterServiceLevelDep$" )
83 nmatches=$(echo "$CTX" | grep -c "class GreeterServiceLevelDepBase$" )
90 nmatches=$(echo "$CTX" | grep -c "class GreeterServiceLevelDepClient" )
99 nmatches=$(grep -c ObsoleteAttribute ${PROTO_OUT}/DepmethodGrpc.cs)
106 nmatches=$(grep -A 2 ObsoleteAttribute ${PROTO_OUT}/DepmethodGrpc.cs | grep -c SayHello)
/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 …]
/third_party/mesa3d/.gitlab-ci/
Dvkd3d-runner.sh37 mapfile -t skips < <(grep -vE '^#|^$' "$INSTALL/$GPU_VERSION-vkd3d-skips.txt")
46 if ! vulkaninfo | grep driverInfo | tee /tmp/version.txt | grep -F "Mesa $MESA_VERSION"; then
54 grep -vE '^(#|$)' "$INSTALL/$GPU_VERSION-vkd3d-fails.txt" | sort > "$EXPECTATIONFILE"
61 mapfile -t flakes < <(grep -vE '^#|^$' "$INSTALL/$GPU_VERSION-vkd3d-flakes.txt")
79 if grep -qF "$flake" "$EXPECTATIONFILE"; then
98 if ! grep -E "^Finished" "$LOGFILE" > /dev/null; then
106 if grep -qF "FAILED $flake" "$LOGFILE"; then
118 mapfile -t fails < <(grep -oE "^FAILED .+$" "$LOGFILE" | cut -d' ' -f2 | sort)
128 grep -qF "$flake" <<< "${fails[$idx]}" && unset -v 'fails[$idx]'
134 if ! grep -qE "$failed_test end" "$RESULTS/$failed_test.log"; then
[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/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/protobuf/src/google/protobuf/compiler/
Dzip_output_unittest.sh43 grep 'testing: testzip\.pb\.cc *OK$' $TEST_TMPDIR/testzip.list > /dev/null \
45 grep 'testing: testzip\.pb\.h *OK$' $TEST_TMPDIR/testzip.list > /dev/null \
47 grep 'testing: testzip_pb2\.py *OK$' $TEST_TMPDIR/testzip.list > /dev/null \
49 grep -i 'manifest' $TEST_TMPDIR/testzip.list > /dev/null \
65 grep '^test/jar/Foo\.java$' $TEST_TMPDIR/testzip.list > /dev/null \
67 grep '^test/jar/Bar\.java$' $TEST_TMPDIR/testzip.list > /dev/null \
69 grep '^test/jar/Outer\.java$' $TEST_TMPDIR/testzip.list > /dev/null \
71 grep '^META-INF/MANIFEST\.MF$' $TEST_TMPDIR/testzip.list > /dev/null \
/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/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/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

12345678910>>...56