Home
last modified time | relevance | path

Searched refs:tst_rhost_run (Results 1 – 25 of 34) sorted by relevance

12

/third_party/ltp/testcases/network/stress/ssh/
Dssh-stress.sh35 [ -n "$RHOST_PIDS" ] && tst_rhost_run -c "kill $RHOST_PIDS" >/dev/null 2>&1
38 [ -n "$RHOST_SSH_CONF" ] && tst_rhost_run -c "pkill -f '^ssh $RHOST_SSH_CONF'"
46 port=$(tst_rhost_run -c "tst_get_unused_port ipv${TST_IPVER} stream")
69 tst_rhost_run -s -c "ssh-keygen -t rsa -N \"\" -f $TST_TMPDIR/id_rsa \
74 tst_rhost_run -s -c "printf \"\
83 tst_rhost_run -c "cat ${TST_TMPDIR}/id_rsa.pub" > authorized_keys
97 tst_rhost_run -c "$RHOST_SSH 'true >/dev/null 2>&1' >/dev/null"
112 pid=$(tst_rhost_run -c "$RHOST_SSH -N </dev/null 1>/dev/null 2>&1 \
121 tst_rhost_run -c "kill $pid" >/dev/null
151 if tst_rhost_run -c "kill -0 $pid" >/dev/null; then
[all …]
/third_party/ltp/testcases/network/tcp_cc/
Dtcp_cc_lib.sh34 tst_rhost_run -c "ip link set txqueuelen $prev_qlen $rmt_dev"
37 tst_rhost_run -c "tc qdisc replace $rmt_dev root $prev_queue"
49 tst_rhost_run -c "modprobe tcp_$alg" > /dev/null 2>&1
50 tst_rhost_run -c "grep -q $alg $proc_cc" || \
69 prev_qlen=$(tst_rhost_run -s -c \
71 tst_rhost_run -s -c "ip link set txqueuelen $qlen dev $rmt_dev"
74 prev_queue=$(tst_rhost_run -s -c \
79 tst_rhost_run -c "tc qdisc replace dev $rmt_dev root $qdisc" >/dev/null
/third_party/ltp/testcases/lib/
Dtst_net.sh55 tst_rhost_run -c "mkdir -p $TST_TMPDIR"
56 tst_rhost_run -c "chmod 777 $TST_TMPDIR"
151 tst_rhost_run() function
254 tst_rhost_run $rsafe -c "$cmd $rparams $@"
270 tst_rhost_run -c "$*" > $log
285 tst_rhost_run -c "$*" > $log
332 rhost) addr=$(tst_rhost_run -s -c "cat $addr_path")
525 if tst_rhost_run -c "ip xfrm state 1>/dev/null 2>&1"; then
526 tst_rhost_run -c "ip xfrm policy flush" || return $?
527 tst_rhost_run -c "ip xfrm state flush" || return $?
[all …]
/third_party/ltp/testcases/network/nfs/nfs_stress/
Dnfs_lib.sh74 tst_rhost_run -c "[ -f /etc/nfs.conf ]" || return 0
75 …config=$(tst_rhost_run -c 'for f in $(grep ^include.*= '/etc/nfs.conf' | cut -d = -f2); do [ -f $f…
77 tst_rhost_run -c "grep -q \"^[# ]*udp *= *y\" /etc/nfs.conf $config"
89 if ! tst_rhost_run -c "test -d $remote_dir"; then
90 tst_rhost_run -s -c "mkdir -p $remote_dir; $export_cmd"
112 tst_rhost_run -c "$mnt_cmd" > mount.log
198 tst_rhost_run -c "test -d $remote_dir && exportfs -u *:$remote_dir"
199 tst_rhost_run -c "test -d $remote_dir && rm -rf $remote_dir"
Dnfs03.sh85 ORIG_NFSD=$(tst_rhost_run -s -c 'ps -ef | grep -w nfsd | grep -v grep | wc -l')
86 tst_rhost_run -s -c "rpc.nfsd $THREAD_NUM"
91 tst_rhost_run -c "rpc.nfsd $ORIG_NFSD"
Dnfs07.sh40 tst_rhost_run -s -c "touch \$(seq -f \"$file_fmt\" -s ' ' $FILE_COUNT)"
41 tst_rhost_run -s -c "mkdir \$(seq -f \"$dir_fmt\" -s ' ' $FILE_COUNT)"
/third_party/ltp/testcases/network/mpls/
Dmpls_lib.sh19 tst_rhost_run -c "$flush_dev lo" > /dev/null
22 [ -n "$rpf_rmt" ] && tst_rhost_run -s -c "sysctl -q net.ipv4.conf.all.rp_filter=$rpf_rmt"
29 tst_rhost_run -c "ip route del $ip_virt_local/32 dev ltp_v0" > /dev/null
30 tst_rhost_run -c "ip route del $ip6_virt_local/128 dev ltp_v0" > /dev/null
47 tst_rhost_run -s -c "sysctl -q net.mpls.conf.$(tst_iface rhost).input=1"
65 tst_rhost_run -s -c "ip route add $ip_loc/$mask encap mpls $((label + 1)) dev ltp_v0"
66 tst_rhost_run -s -c "ip -f mpls route add $label dev lo"
Dmpls02.sh14 tst_rhost_run -c "ip route del $ip_loc/$mask" > /dev/null
17 [ -n "$ip_rmt" ] && tst_rhost_run -c "ip addr del $ip_rmt/$mask dev lo" > \
35 tst_rhost_run -s -c "ip addr add $ip_rmt/$mask dev lo"
36 tst_rhost_run -s -c "ip route add $ip_loc/$mask encap mpls 60 via inet$TST_IPV6 $(tst_ipaddr)"
37 tst_rhost_run -s -c "ip -f mpls route add 50 dev lo"
/third_party/ltp/testcases/network/virt/
Dvirt_lib.sh90 tst_rhost_run -c "ip link delete ltp_v0 2>/dev/null"
162 tst_rhost_run -s -c "ip link add ltp_v0 type $virt_type $@ $opt"
165 tst_rhost_run -s -c "ip link add ltp_v0 type $virt_type $@"
168 tst_rhost_run -s -c "ip -f inet$TST_IPV6 tu add ltp_v0 \
172 tst_rhost_run -s -c "ip link add name ltp_v0 \
176 tst_rhost_run -s -c "ip link add link $(tst_iface rhost) ltp_v0 \
234 tst_rhost_run -s -c "ip addr add ${ip6_virt_remote}/64 dev ltp_v0 nodad"
237 tst_rhost_run -s -c "ip addr add ${ip_virt_remote}/24 dev ltp_v0"
240 tst_rhost_run -s -c "sysctl -q net.ipv6.conf.ltp_v0.accept_dad=0"
243 tst_rhost_run -s -c "ip link set up ltp_v0"
[all …]
Dwireguard_lib.sh25 local port_rmt=$(tst_rhost_run -c "tst_get_unused_port ipv${TST_IPVER} dgram")
28 tst_rhost_run -s -c "echo '$(cat wg1.key)' > wg1.key"
56 tst_rhost_run -s -c \
58 tst_rhost_run -s -c "wg set ltp_v0 peer $pub_key0 \
Dmacsec_lib.sh46 tst_rhost_run -s -c "$cmd tx sa $sa pn 100 on key $keyid1 $key1"
47 tst_rhost_run -s -c "$cmd rx address $h0 port 1"
48 tst_rhost_run -s -c \
/third_party/ltp/testcases/network/stress/ipsec/
Dipsec_lib.sh123 tst_rhost_run -c "ip xfrm state flush && ip xfrm policy flush"
127 tst_rhost_run -c "ip link del $cleanup_vti 2>/dev/null"
203 tst_rhost_run -s -c "ip xfrm state add src $src dst $dst \
205 tst_rhost_run -s -c "ip xfrm state add src $dst dst $src \
208 tst_rhost_run -s -c "ip xfrm policy add src $src dst $dst \
210 tst_rhost_run -s -c "ip xfrm policy add src $dst dst $src dir \
263 tst_rhost_run -s -c \
265 tst_rhost_run -s -c "ip link set $vti up"
269 tst_rhost_run -s -c "$ipx st add $o_dir $p $spi_1 $ALGR $m"
270 tst_rhost_run -s -c "$ipx st add $i_dir $p $spi_2 $ALGR $m"
[all …]
/third_party/ltp/lib/newlib_tests/shell/net/
Dtst_rhost_run.sh15 tst_rhost_run -c 'which grep' > /dev/null || \
18 tst_rhost_run -c "[ -f $file ]" || \
21 tst_rhost_run -s -c "grep -q \"[^ ]\" $file"
22 tst_rhost_run -s -c "grep -q '[^ ]' $file"
/third_party/ltp/testcases/network/busy_poll/
Dbusy_poll01.sh16 tst_rhost_run -c "sysctl -q -w net.core.busy_read=$rbusy_read_old"
18 tst_rhost_run -c "sysctl -q -w net.core.busy_poll=$rbusy_poll_old"
35 rbusy_read_old=$(tst_rhost_run -c 'sysctl -ne net.core.busy_read')
36 rbusy_poll_old=$(tst_rhost_run -c 'sysctl -ne net.core.busy_poll')
Dbusy_poll02.sh14 tst_rhost_run -c "sysctl -q -w net.core.busy_poll=$rbusy_poll_old"
28 rbusy_poll_old=$(tst_rhost_run -c 'sysctl -ne net.core.busy_poll')
Dbusy_poll03.sh16 tst_rhost_run -c "sysctl -q -w net.core.busy_poll=$rbusy_poll_old"
30 rbusy_poll_old=$(tst_rhost_run -c 'sysctl -ne net.core.busy_poll')
/third_party/ltp/testcases/network/tcp_cmds/sendfile/
Dsendfile01.sh25 port=$(tst_rhost_run -s -c "tst_get_unused_port ipv$TST_IPVER stream")
28 tst_rhost_run -s -b -c "$server $(tst_ipaddr rhost) $port"
50 [ -n "$server_started" ] && tst_rhost_run -c "pkill $server"
/third_party/ltp/testcases/network/stress/route/
Droute-redirect.sh30 tst_rhost_run -s -c "ip addr flush dev $rhost_ifname"
39 tst_rhost_run -s -c "ns-icmp_redirector -I $rhost_ifname -b"
44 tst_rhost_run -c "killall -SIGHUP ns-icmp_redirector"
/third_party/ltp/testcases/network/stress/interface/
Dif-mtu-change.sh41 tst_rhost_run -c "ifconfig $iface_rmt mtu $mtu" || ret=1
44 tst_rhost_run -c "ip link set $iface_rmt mtu $mtu" || ret=1
85 tst_rhost_run -c "ip link set $(tst_iface rhost) mtu $saved_mtu"
/third_party/ltp/testcases/network/stress/http/
Dhttp-stress.sh61 tst_rhost_run -s -c "http-stress01-rmt.sh $(tst_ipaddr) \
71 tst_rhost_run -s -c "http-stress02-rmt.sh $(tst_ipaddr) http_file \
/third_party/ltp/testcases/network/tcp_cmds/telnet/
Dtelnet01.sh82 tst_rhost_run -u $RUSER -c "grep -q 9 $RUSER.$RHOST" || return 1
83 tst_rhost_run -u $RUSER -c "rm -f $RUSER.$RHOST"
/third_party/ltp/testcases/network/stress/ftp/
Dftp-download-stress.sh73 tst_rhost_run -s -c "ftp-download-stress01-rmt.sh \
86 tst_rhost_run -s -c "ftp-download-stress02-rmt.sh $(tst_ipaddr) \
/third_party/ltp/testcases/network/stress/ns-tools/
Dtst_net_stress.sh37 tst_rhost_run -c "pkill -13 -x netstress"
107 tst_rhost_run -b -c "netstress -l -H $ip -g $port"
/third_party/ltp/testcases/network/multicast/mc_commo/
Dmc_commo.sh67 tst_rhost_run -b -c "mc_send $GROUP_ADDR $(tst_ipaddr rhost) $PORT $TTL"
69 tst_rhost_run -s -c "pgrep -x mc_send > /dev/null"
/third_party/ltp/testcases/network/stress/multicast/grp-operation/
Dmcast-lib.sh93 tst_rhost_run -c "pkill -SIGHUP -f '$MCAST_RCMD'"
129 tst_rhost_run -s -c "$MCAST_RCMD -S $(tst_ipaddr) -m -w 1000000000 -r 1000 -b"
131 tst_rhost_run -s -c "$MCAST_RCMD -i 1000000000 -r 1 -b"

12