Home
last modified time | relevance | path

Searched refs:run_cmd (Results 1 – 25 of 47) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/net/
H A Dfib_nexthops.sh103 run_cmd() function
330 run_cmd "$IP nexthop add id $nhidstr via $ipstr$iter dev veth1"
346 run_cmd "$IP nexthop add id $grpidstr group $grpstr"
352 run_cmd "$IP nexthop list"
369 run_cmd "$IP nexthop add id 100 via $ipstr dev veth1"
370 run_cmd "$IP nexthop add id 1000 group 100 type resilient buckets $buckets"
371 run_cmd "$IP nexthop bucket list"
455 run_cmd "$IP nexthop add id 61 via 2001:db8:91::2 fdb"
456 run_cmd "$IP nexthop add id 62 via 2001:db8:91::3 fdb"
457 run_cmd "$IP nexthop add id 102 group 61/62 fdb"
[all …]
H A Dtest_bridge_backup_port.sh92 run_cmd() function
254 run_cmd "tc -n $sw1 qdisc replace dev swp1 clsact"
255run_cmd "tc -n $sw1 filter replace dev swp1 egress pref 1 handle 101 proto ip flower src_mac $smac…
257 run_cmd "tc -n $sw1 qdisc replace dev vx0 clsact"
258run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto ip flower src_mac $smac …
260 run_cmd "bridge -n $sw1 fdb replace $dmac dev swp1 master static vlan 10"
265run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t …
271 run_cmd "ip -n $sw1 link set dev swp1 carrier off"
275run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t …
281 run_cmd "ip -n $sw1 link set dev swp1 carrier on"
[all …]
H A Dtest_bridge_neigh_suppress.sh100 run_cmd() function
300 run_cmd "tc -n $sw1 qdisc replace dev vx0 clsact"
301run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto 0x0806 flower indev swp1…
305 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
312 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress on"
313 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress on\""
316 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
324 run_cmd "bridge -n $sw1 fdb replace $h2_mac dev vx0 master static vlan $vid"
327 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
334 run_cmd "ip -n $sw1 neigh replace $tip lladdr $h2_mac nud permanent dev br0.$vid"
[all …]
H A Dtest_vxlan_mdb.sh169 run_cmd() function
338 run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"
340 run_cmd "bridge -n $ns1 -d -s mdb show dev vx0 | grep \"$grp_key\""
343 run_cmd "bridge -n $ns1 mdb replace dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"
345 run_cmd "bridge -n $ns1 -d -s mdb show dev vx0 | grep \"$grp_key\""
348 run_cmd "bridge -n $ns1 mdb del dev vx0 port vx0 $grp_key dst $vtep_ip src_vni 10010"
350 run_cmd "bridge -n $ns1 -d -s mdb show dev vx0 | grep \"$grp_key\""
353 run_cmd "bridge -n $ns1 mdb del dev vx0 port vx0 $grp_key dst $vtep_ip src_vni 10010"
357 run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"
358 run_cmd "bridge -n $ns1 -d -s mdb show dev vx0 | grep \"$grp_key\" | grep \"proto static\""
[all …]
H A Dfcnal-test.sh218 run_cmd() function
238 run_cmd ${cmd}
304 run_cmd sysctl -q -w $*
582 run_cmd ping -c1 -w1 ${a}
586 run_cmd ping -c1 -w1 -I ${NSA_DEV} ${a}
590 run_cmd ping -c1 -w1 -I ${NSA_LO_IP} ${a}
599 run_cmd ping -c 1 -w 1 -r ${a}
605 run_cmd ping -c 1 -w 1 -r ${a}
624 run_cmd ping -c1 -w1 ${a}
634 run_cmd ping -c1 -w1 -I ${NSA_DEV} ${a}
[all …]
H A Dfib_tests.sh504 run_cmd "ip netns exec ns2 ping -w1 -c1 192.0.2.1"
507 run_cmd "ip netns exec ns2 ping -w1 -c1 127.0.0.1"
839 run_cmd() function
908 run_cmd "$IP -6 ro flush ${pfx}"
917 run_cmd "$IP -6 ro add ${pfx} ${nh}"
1005 run_cmd "$IP -6 ro add 2001:db8:104::/64 via 2001:db8:103::2"
1010 run_cmd "$IP -6 ro add 2001:db8:104::/64 dev veth3"
1015 run_cmd "$IP -6 ro add unreachable 2001:db8:104::/64"
1021 run_cmd "$IP -6 ro append 2001:db8:104::/64 via 2001:db8:103::2"
1031 run_cmd "$IP -6 ro add 2001:db8:104::/64 nexthop via 2001:db8:101::2 nexthop via 2001:db8:103::2"
[all …]
H A Dpmtu.sh376 run_cmd() { function
439 run_cmd ${ns_a} ip fou add port 5555 ipproto ${ipproto} || return $ksft_skip
440run_cmd ${ns_a} ip link add ${encap}_a type ${type} ${mode} local ${a_addr} remote ${b_addr} encap…
442 run_cmd ${ns_b} ip fou add port 5556 ipproto ${ipproto}
443run_cmd ${ns_b} ip link add ${encap}_b type ${type} ${mode} local ${b_addr} remote ${a_addr} encap…
446 run_cmd ${ns_a} ip addr add ${tunnel4_a_addr}/${tunnel4_mask} dev ${encap}_a
447 run_cmd ${ns_b} ip addr add ${tunnel4_b_addr}/${tunnel4_mask} dev ${encap}_b
449 run_cmd ${ns_a} ip addr add ${tunnel6_a_addr}/${tunnel6_mask} dev ${encap}_a
450 run_cmd ${ns_b} ip addr add ${tunnel6_b_addr}/${tunnel6_mask} dev ${encap}_b
453 run_cmd ${ns_a} ip link set ${encap}_a up
[all …]
H A Dtest_vxlan_nolocalbypass.sh61 run_cmd() function
125 run_cmd "bridge -n ns1 fdb add $dmac dev vx0 self static dst 192.0.2.1 port 4790"
127 run_cmd "tc -n ns1 qdisc add dev vx1 clsact"
128run_cmd "tc -n ns1 filter add dev vx1 ingress pref 1 handle 101 proto all flower src_mac $smac dst…
130 run_cmd "tc -n ns1 qdisc add dev lo clsact"
131run_cmd "tc -n ns1 filter add dev lo ingress pref 1 handle 101 proto ip flower ip_proto udp dst_po…
133run_cmd "ip -n ns1 -d -j link show dev vx0 | jq -e '.[][\"linkinfo\"][\"info_data\"][\"localbypass…
136 run_cmd "ip netns exec ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
141 run_cmd "ip -n ns1 link set dev vx0 type vxlan nolocalbypass"
143run_cmd "ip -n ns1 -d -j link show dev vx0 | jq -e '.[][\"linkinfo\"][\"info_data\"][\"localbypass…
[all …]
H A Dicmp_redirect.sh94 run_cmd() function
281 run_cmd ip -netns h2 li set eth0 mtu ${mtu}
282 run_cmd ip -netns r2 li set eth2 mtu ${mtu}
294 run_cmd ip -netns h1 ro get ${H1_VRF_ARG} ${H2_N2_IP}
295 run_cmd ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6}
337 run_cmd ip netns exec h1 ping -q -M want -i 0.5 -c 10 -w 2 -s ${sz} ${H1_PING_ARG} ${H2_N2_IP}
338 run_cmd ip netns exec h1 ${ping6} -q -M want -i 0.5 -c 10 -w 2 -s ${sz} ${H1_PING_ARG} ${H2_N2_IP6}
344 run_cmd ip -netns r1 nexthop replace id 1 via ${R2_N1_IP} dev eth0
345 run_cmd ip -netns r1 nexthop replace id 2 via ${R2_LLADDR} dev eth0
350 run_cmd ip -netns r1 nexthop flush
[all …]
H A Dl2tp.sh45 run_cmd() function
234 run_cmd host-1 ip xfrm policy add \
238 run_cmd host-1 ip xfrm policy add \
242 run_cmd host-2 ip xfrm policy add \
246 run_cmd host-2 ip xfrm policy add \
273 run_cmd host-1 ip -6 xfrm policy add \
277 run_cmd host-1 ip -6 xfrm policy add \
281 run_cmd host-2 ip -6 xfrm policy add \
285 run_cmd host-2 ip -6 xfrm policy add \
312 run_cmd host-1 ip xfrm state flush
[all …]
H A Dtest_vxlan_vnifiltering.sh130 run_cmd() function
159 run_cmd "ip netns exec vm-11 ping -c 1 -W 1 10.0.10.12"
162 run_cmd "ip netns exec vm-21 ping -c 1 -W 1 10.0.10.22"
334run_cmd "ip -netns testns link add vxlan100 type vxlan id 100 local $localip dev veth-testns dstpo…
338run_cmd "ip -netns testns link add vxlan-ext1 type vxlan vnifilter local $localip dev veth-testns …
341run_cmd "ip -netns testns link add vxlan-ext1 type vxlan external vnifilter local $localip dev vet…
344 run_cmd "bridge -netns testns vni add dev vxlan-ext1 vni 100"
347 run_cmd "bridge -netns testns vni add dev vxlan-ext1 vni 200"
350run_cmd "ip -netns testns link add vxlan-ext2 type vxlan external vnifilter local $localip dev vet…
353 run_cmd "bridge -netns testns vni add dev vxlan-ext2 vni 200"
[all …]
H A Dfib_nexthop_multiprefix.sh47 run_cmd() function
158 run_cmd ip -netns h${hostid} li set eth0 mtu ${mtu}
159 run_cmd ip -netns r1 li set eth${hostid} mtu ${mtu}
176 run_cmd ip netns exec h0 ping -s ${ping_sz} -c5 -w5 ${dst}
205 run_cmd ip netns exec h0 ${ping6} -s ${ping_sz} -c5 -w5 ${dst}
245 run_cmd taskset -c ${c} ip netns exec h0 ping -c1 -w1 172.16.10${i}.1
248 run_cmd taskset -c ${c} ip netns exec h0 ${ping6} -c1 -w1 2001:db8:10${i}::1
H A Dfib_nexthop_nongw.sh42 run_cmd() function
114 run_cmd ip -netns h1 route get 192.168.1.1
116 run_cmd ip netns exec h1 ping -c1 192.168.1.1
/openbmc/linux/tools/bootconfig/scripts/
H A Dbconf2ftrace.sh41 run_cmd() { # command function
80 run_cmd "echo '$val' >> $2"
87 run_cmd "echo '$line' >> $2"
171 run_cmd "echo '`print_one_histogram ${1}`' >> ${2}"
192 run_cmd "echo 1 > ${eventdir}"
199 run_cmd "echo 'p:kprobes/$3 $line' >> $TRACEFS/kprobe_events"
203 run_cmd "echo '`compose_synth $3 ${branch}.fields`' >> $TRACEFS/synthetic_events"
213 run_cmd "echo 1 > ${eventdir}/enable"
226 run_cmd "echo 1 > $TRACEFS/instances/$2/events/enable"
228 run_cmd "echo 1 > $TRACEFS/events/enable"
[all …]
/openbmc/openbmc/meta-arm/meta-arm/lib/oeqa/runtime/cases/
H A Dfvp_devices.py8 def run_cmd(self, cmd, check=True, retry=3): member in FvpDevicesTest
36 _, output = self.run_cmd(cmd)
48 _, output = self.run_cmd(cmd)
57 self.run_cmd(cmd)
61 self.run_cmd(
65 _, output = self.run_cmd(
81 _, cpus = self.run_cmd('find /sys/firmware/devicetree/base/cpus/'
93 _, cpus = self.run_cmd('grep -c "processor" /proc/cpuinfo')
117 self.run_cmd('hwclock')
132 self.run_cmd('wget -O /dev/null "https://www.arm.com"')
[all …]
/openbmc/u-boot/scripts/
H A Dcoccicheck156 run_cmd() { function
231 run_cmd $SPATCH -D patch \
233 run_cmd $SPATCH -D report \
235 run_cmd $SPATCH -D context \
237 run_cmd $SPATCH -D org \
240 run_cmd $SPATCH -D report \
242 run_cmd $SPATCH -D context \
245 run_cmd $SPATCH -D $MODE $FLAGS --cocci-file $COCCI $OPT $OPTIONS || exit 1
/openbmc/linux/scripts/
H A Dcoccicheck175 run_cmd() { function
247 run_cmd $SPATCH -D patch \
249 run_cmd $SPATCH -D report \
251 run_cmd $SPATCH -D context \
253 run_cmd $SPATCH -D org \
256 run_cmd $SPATCH -D report \
258 run_cmd $SPATCH -D context \
261 run_cmd $SPATCH -D $MODE $FLAGS --cocci-file $COCCI $OPT $OPTIONS || exit 1
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dgitarchive.py66 repo.run_cmd('add .', env_update)
70 repo.run_cmd(['rm', '--cached', '--ignore-unmatch'] + [f for f in exclude], env_update)
72 tree = repo.run_cmd('write-tree', env_update)
81 commit = repo.run_cmd(git_cmd, env_update)
86 repo.run_cmd(['notes', '--ref', ref, 'add',
91 repo.run_cmd(git_cmd)
96 repo.run_cmd('reset --hard')
118 tags_refs = repo.run_cmd(cmd)
128 tags_refs = repo.run_cmd(cmd)
135 tags = repo.run_cmd(cmd).splitlines()
[all …]
H A Dgit.py56 def run_cmd(self, git_args, env_update=None): member in GitRepo
67 return self.run_cmd(['rev-parse', '--verify', revision])
76 return self.run_cmd(['symbolic-ref', 'HEAD'])[11:]
/openbmc/qemu/tests/functional/qemu_test/
H A Dtesseract.py11 from . import has_cmd, run_cmd
17 (stdout, stderr, ret) = run_cmd([ 'tesseract', '--version'])
26 (stdout, stderr, ret) = run_cmd(['tesseract', image_path,
H A Dlinuxkernel.py9 from .cmd import run_cmd, wait_for_console_pattern
42 (stdout, stderr, ret) = run_cmd(['ar', 't', deb_path])
44 run_cmd(['ar', 'x', deb_path, file_path])
H A Dtestcase.py27 from .cmd import run_cmd
102 def run_cmd(self, bin_path, args=[]): member in QemuUserTest
134 self._machinehelp = run_cmd([self.qemu_bin, '-M', 'help'])[0];
162 netdevhelp = run_cmd([self.qemu_bin,
168 devhelp = run_cmd([self.qemu_bin,
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dgitarchivetests.py37 repo.run_cmd(["remote", "add", "origin", "."])
41 repo.run_cmd(["add", fake_data_file])
42 repo.run_cmd(["commit", "-m", "\"Add fake data\""])
44 repo.run_cmd(["tag", tag])
52 for tag in git_obj.run_cmd(["tag"]).splitlines():
H A Dkerneldevelopment.py55 repo.run_cmd('add %s' % readme)
56 repo.run_cmd(['commit', '-m', 'KERNEL_DEV_TEST_CASE'])
57 repo.run_cmd(['format-patch', '-1'])
/openbmc/openbmc/poky/meta/lib/oeqa/buildperf/
H A Dtest_basic.py34 self.run_cmd(['bitbake', self.build_target])
35 self.run_cmd(['bitbake', self.build_target, '-c', 'cleansstate'])
68 self.run_cmd(['bitbake', self.build_target])
100 self.run_cmd(['bitbake', '-c', 'do_populate_sdk_ext',

12