Lines Matching +full:timeout +full:- +full:sec
2 # SPDX-License-Identifier: GPL-2.0
6 sec=$(date +%s)
7 rndh=$(printf %x $sec)-$(mktemp -u XXXXXX)
8 ns="ns1-$rndh"
21 ip netns pids "${ns}" | xargs --no-run-if-empty kill -SIGUSR1 &>/dev/null
24 [ -z "$(ip netns pids "${ns}")" ] && break
31 ip netns pids "${ns}" | xargs --no-run-if-empty kill -SIGKILL &>/dev/null
38 ip -Version > /dev/null 2>&1
39 if [ $? -ne 0 ];then
43 ss -h | grep -q MPTCP
44 if [ $? -ne 0 ];then
59 local skip="${4:-SKIP}"
64 printf "%-50s" "$msg"
86 __chk_nr "ss -inmHMN $ns | $condition" "$@"
91 __chk_msk_nr "grep -c token:" "$@"
96 local condition="grep -c token:"
98 local timeout=20
106 while [ $i -lt $timeout ]; do
107 nr=$(ss -inmHMN $ns | $condition)
109 [ $nr -gt $max ] && max=$nr
114 printf "%-50s" "$msg"
115 if [ $i -ge $timeout ]; then
116 echo "[ fail ] timeout while expecting $expected max $max last $nr"
117 mptcp_lib_result_fail "${msg} # timeout"
132 __chk_msk_nr "grep -c fallback" "$@"
137 __chk_msk_nr "grep -c remote_key" "$@"
146 __chk_nr "ss -N $ns -Ml '$filter' | grep -c LISTEN" "$expected" "$msg" 0
163 nr=$(ss -Ml $filter | wc -l)
172 listen_nr=$(ss -N "${ns}" -Ml | grep -c LISTEN)
176 if [ $(get_msk_inuse) -eq $expected ];then
211 ip netns exec ${listener_ns} grep -q " 0100007F:${port_hex} " /proc/net/tcp && break
218 ip -n $ns link set dev lo up
221 timeout ${timeout_test} \
223 ./mptcp_connect -p 10000 -l -t ${timeout_poll} -w 20 \
230 timeout ${timeout_test} \
232 ./mptcp_connect -p 10000 -r 0 -t ${timeout_poll} -w 20 \
244 timeout ${timeout_test} \
246 ./mptcp_connect -p 10001 -l -s TCP -t ${timeout_poll} -w 20 \
250 timeout ${timeout_test} \
252 ./mptcp_connect -p 10001 -r 0 -t ${timeout_poll} -w 20 \
264 timeout ${timeout_test} \
266 ./mptcp_connect -p $((I+10001)) -l -w 20 \
267 -t ${timeout_poll} 0.0.0.0 >/dev/null &
273 timeout ${timeout_test} \
275 ./mptcp_connect -p $((I+10001)) -w 20 \
276 -t ${timeout_poll} 127.0.0.1 >/dev/null &