Lines Matching full:then

103 		if $checksum; then
189 # It can be empty, no need to print anything then
217 if [ ${rc} = ${KSFT_PASS} ]; then
219 elif [ ${rc} = ${KSFT_SKIP} ]; then
242 if ! "${@}"; then
250 if [ "${#only_tests_ids[@]}" -eq 0 ] && [ "${#only_tests_names[@]}" -eq 0 ]; then
256 if [ "$((MPTCP_LIB_TEST_COUNTER+1))" -eq "${i}" ]; then
261 if [ "${TEST_NAME}" = "${i}" ]; then
271 if [ ${last_test_failed} -eq 1 ]; then
273 elif [ ${last_test_skipped} -eq 1 ]; then
275 elif [ ${last_test_ignored} -ne 1 ]; then
293 if skip_test; then
301 if [ "${init}" != "1" ]; then
319 if ! nstat -asz "${counter}" | grep -wq "${counter}"; then
345 if [ $ip -eq 6 ]; then
355 -j DROP; then
411 if [ $ip -eq 6 ]; then
444 if [ ${rc} -eq ${KSFT_SKIP} ]; then
477 -j "${target}"; then
486 if ! mptcp_lib_subtest_is_flaky; then
490 if [ ${#} -gt 0 ]; then
495 if [ ${last_test_failed} -eq 0 ]; then
520 if [ -n "$bytes" ]; then
524 if [ $out_size -ne $bytes ]; then
539 if [ $check_invert -eq 0 ] || [ $sum -ne $((0xff)) ]; then
559 if ! ip netns exec ${connector_ns} ping -q -c 1 $connect_addr >/dev/null; then
568 if [ -z "$FAILING_LINKS" ]; then
696 if [ -z "${id}" ]; then
718 if [ -n "${fullmesh}" ]; then
725 if [ $addr_nr_ns1 != "0" ] || [ $addr_nr_ns2 != "0" ]; then
729 if [ $addr_nr_ns1 -gt 0 ]; then
735 if mptcp_lib_is_v6 "${connect_addr}"; then
745 elif [ $addr_nr_ns1 -lt 0 ]; then
747 if [ $rm_nr_ns1 -lt 8 ]; then
757 if [ $i = "id" ]; then
758 if [ $counter -eq $rm_nr_ns1 ]; then
770 elif [ $rm_nr_ns1 -eq 8 ]; then
772 elif [ $rm_nr_ns1 -eq 9 ]; then
781 if [ $addr_nr_ns2 -gt 0 ]; then
787 if mptcp_lib_is_v6 "${connect_addr}"; then
797 elif [ $addr_nr_ns2 -lt 0 ]; then
799 if [ $rm_nr_ns2 -lt 8 ]; then
809 if [ $i = "id" ]; then
810 if [ $counter -eq $rm_nr_ns2 ]; then
825 elif [ $rm_nr_ns2 -eq 8 ]; then
827 elif [ $rm_nr_ns2 -eq 9 ]; then
829 if mptcp_lib_is_v6 "${connect_addr}"; then
838 if [ -n "${sflags}" ]; then
852 if [ $i = "id" ]; then
871 if [ -z "$count" ]; then
873 elif [ "$count" != "$cestab" ]; then
883 if [ -n "${cestab_ns1}" ]; then
886 if [ -n "${cestab_ns2}" ]; then
897 if $capture; then
899 if [ -z $SUDO_USER ]; then
917 if $capture; then
954 if [ $speed = "fast" ]; then
956 elif [ $speed = "slow" ]; then
958 elif [ $speed -gt 0 ]; then
965 if [ -n "${fastclose}" ]; then
966 if [ ${test_linkfail} -le 1 ]; then
975 if [ ${side} = "client" ]; then
978 elif [ ${side} = "server" ]; then
988 if [ "$test_linkfail" -gt 1 ];then
1004 if [ "$test_linkfail" -eq 0 ];then
1009 elif [ "$test_linkfail" -eq 1 ] || [ "$test_linkfail" -eq 2 ];then
1040 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
1052 if [ "$test_linkfail" -gt 1 ];then
1058 if [ "$test_linkfail" -eq 0 ];then
1090 if [ "$test_linkfail" -gt 2 ]; then
1093 if [ -z "$cinfail" ]; then
1099 elif [ "$test_linkfail" -ne 0 ] && [ -z "$cinfail" ]; then
1112 if [ "$test_linkfail" -gt 2 ]; then
1115 if [ -z "$sinfail" ]; then
1119 elif [ "$test_linkfail" -eq 2 ] && [ -z "$sinfail" ]; then
1148 if [[ "${csum_ns1}" = "+"* ]]; then
1152 if [[ "${csum_ns2}" = "+"* ]]; then
1159 if [ -n "$count" ] && [ "$count" != "$csum_ns1" ]; then
1162 if [ -z "$count" ]; then
1165 { [ "$count" -lt $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 1 ]; }; then
1173 if [ -n "$count" ] && [ "$count" != "$csum_ns2" ]; then
1176 if [ -z "$count" ]; then
1179 { [ "$count" -lt $csum_ns2 ] && [ $allow_multi_errors_ns2 -eq 1 ]; }; then
1202 if [[ $ns_invert = "invert" ]]; then
1209 if [[ "${fail_tx}" = "-"* ]]; then
1213 if [[ "${fail_rx}" = "-"* ]]; then
1220 if [ -n "$count" ] && [ "$count" != "$fail_tx" ]; then
1223 if [ -z "$count" ]; then
1226 { [ "$count" -gt "$fail_tx" ] && [ $allow_tx_lost -eq 1 ]; }; then
1234 if [ -n "$count" ] && [ "$count" != "$fail_rx" ]; then
1237 if [ -z "$count" ]; then
1240 { [ "$count" -gt "$fail_rx" ] && [ $allow_rx_lost -eq 1 ]; }; then
1260 if [[ $ns_invert = "invert" ]]; then
1269 if [ -z "$count" ]; then
1271 elif [ "$count" != "$fclose_tx" ]; then
1279 if [ -z "$count" ]; then
1281 elif [ "$count" != "$fclose_rx" ]; then
1299 if [[ $ns_invert = "invert" ]]; then
1308 if [ -z "$count" ]; then
1312 { [ $rst_tx -eq 0 ] && [ $count -ne 0 ]; }; then
1320 if [ -z "$count" ]; then
1324 { [ $rst_rx -eq 0 ] && [ $count -ne 0 ]; }; then
1339 if [ -z "$count" ]; then
1341 elif [ "$count" != "$infi_tx" ]; then
1349 if [ -z "$count" ]; then
1351 elif [ "$count" != "$infi_rx" ]; then
1368 if [ -z "$count" ]; then
1370 elif [ "$count" != "$syn_tx" ]; then
1377 if [ -z "$count" ]; then
1379 elif [ "$count" != "$create" ]; then
1386 if [ -z "$count" ]; then
1388 elif [ "$count" != "$bind" ]; then
1395 if [ -z "$count" ]; then
1397 elif [ "$count" != "$connect" ]; then
1421 if [ "${corrupted_pkts}" -gt 0 ]; then
1426 if [ -z "$count" ]; then
1428 elif [ "$count" != "$syn_nr" ]; then
1436 if [ -z "$count" ]; then
1438 elif [ "$count" != "$syn_ack_nr" ]; then
1442 if [ "$with_cookie" != 2 ] || [ "$count" -le "$syn_ack_nr" ] || [ "$count" -gt "$syn_nr" ]; then
1450 if [ -z "$count" ]; then
1452 elif [ "$count" != "$ack_nr" ]; then
1463 if $validate_checksum; then
1490 if [ -z "$stale_nr" ] || [ -z "$recover_nr" ]; then
1494 [ $((stale_nr - recover_nr)) -ne $stale_delta ]; then
1503 if [ "${dump_stats}" = 1 ]; then
1528 if [[ $ns_invert = "invert" ]]; then
1539 if [ -z "$count" ]; then
1541 # if the test configured a short timeout tolerate greater then expected
1543 elif [ "$count" != "$add_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_nr" ]; }; then
1551 if [ -z "$count" ]; then
1553 elif [ "$count" != "$echo_nr" ]; then
1559 if [ $port_nr -gt 0 ]; then
1562 if [ -z "$count" ]; then
1564 elif [ "$count" != "$port_nr" ]; then
1572 if [ -z "$count" ]; then
1574 elif [ "$count" != "$syn_nr" ]; then
1583 if [ -z "$count" ]; then
1585 elif [ "$count" != "$syn_ack_nr" ]; then
1594 if [ -z "$count" ]; then
1596 elif [ "$count" != "$ack_nr" ]; then
1605 if [ -z "$count" ]; then
1607 elif [ "$count" != "$mis_syn_nr" ]; then
1616 if [ -z "$count" ]; then
1618 elif [ "$count" != "$mis_ack_nr" ]; then
1638 if [ -z "$count" ]; then
1640 # if the test configured a short timeout tolerate greater then expected
1642 …if [ "$count" != "$add_tx_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_tx_nr" ]; }; then
1650 if [ -z "$count" ]; then
1652 elif [ "$count" != "$echo_tx_nr" ]; then
1679 if [ "$invert" = "true" ]; then
1688 if [ -z "$count" ]; then
1690 elif [ "$count" != "$rm_addr_nr" ]; then
1698 if [ -z "$count" ]; then
1700 elif [ -n "$simult" ]; then
1708 if [ "$count" != "$rm_subflow_nr" ]; then
1713 [ "$count" -le "$((rm_subflow_nr *2 ))" ]; then
1718 elif [ "$count" != "$rm_subflow_nr" ]; then
1733 if [ -z "$count" ]; then
1735 elif [ "$count" != "$rm_addr_tx_nr" ]; then
1752 if [ -z "$count" ]; then
1754 elif [ "$count" != "$mp_prio_nr_tx" ]; then
1762 if [ -z "$count" ]; then
1764 elif [ "$count" != "$mp_prio_nr_rx" ]; then
1772 if [ -z "$count" ]; then
1774 elif [ "$count" != "$mpj_syn" ]; then
1782 if [ -z "$count" ]; then
1784 elif [ "$count" != "$mpj_syn_ack" ]; then
1803 if [ "$cnt1" != "$subflow_nr" ] || [ "$cnt2" != "$subflow_nr" ]; then
1810 if [ "${dump_stats}" = 1 ]; then
1835 if [ "$cnt1" != "$exp1" ] || [ "$cnt2" != "$exp2" ]; then
1842 if [ "$dump_stats" = 1 ]; then
1858 if [ -n "$(ss -N $ns1 -inmHM | mptcp_lib_get_info_value $info $info)" ]; then
1871 if [ "$1" != "$cnt1" ] || [ "$2" != "$cnt2" ]; then
1878 if [ "$dump_stats" = 1 ]; then
1899 [ $tx_rate -gt $((expected_rate + tolerance)) ]; then
1933 if reset "no JOIN"; then
1939 if reset "single subflow, limited by client"; then
1948 if reset "single subflow, limited by server"; then
1957 if reset "single subflow"; then
1966 if reset "multiple subflows"; then
1976 if reset "multiple subflows, limited by server"; then
1986 if reset "single subflow, dev"; then
1999 if reset "no MPC reuse with single endpoint"; then
2012 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2025 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2040 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2062 if reset "unused signal address"; then
2071 if reset "signal address"; then
2084 if reset "subflow and signal"; then
2097 if reset "subflow and signal together"; then
2110 if reset "multiple subflows and signal"; then
2122 if reset "signal addresses"; then
2134 if reset "signal invalid addresses"; then
2147 if reset "signal addresses race test"; then
2166 if ! mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2181 if reset "multiple flows, signal, link failure"; then
2203 if reset "multi flows, signal, bidi, link fail"; then
2219 if reset "backup subflow unused, link failure"; then
2234 if reset "backup flow used, multi links fail"; then
2250 if reset "backup flow used, bidi, link failure"; then
2268 if reset_with_add_addr_timeout "signal address, ADD_ADDR timeout"; then
2280 if reset_with_add_addr_timeout "signal address, ADD_ADDR6 timeout" 6; then
2291 if reset_with_add_addr_timeout "signal addresses, ADD_ADDR timeout"; then
2303 if reset_with_add_addr_timeout "invalid address, ADD_ADDR timeout"; then
2319 if reset "remove single subflow"; then
2332 if reset "remove multiple subflows"; then
2345 if reset "remove single address"; then
2358 if reset "remove subflow and signal"; then
2372 if reset "remove subflows and signal"; then
2387 if reset "remove addresses"; then
2402 if reset "remove invalid addresses"; then
2419 if reset "flush subflows and signal"; then
2434 if reset "flush subflows"; then
2444 if mptcp_lib_kversion_ge 5.18; then
2454 if reset "flush addresses"; then
2469 if reset "flush invalid addresses"; then
2485 if reset "remove id 0 subflow"; then
2497 if reset "remove id 0 address"; then
2513 if reset "add single subflow"; then
2523 if reset "add signal address"; then
2534 if reset "add multiple subflows"; then
2544 if reset "add multiple subflows IPv6"; then
2554 if reset "add multiple addresses IPv6"; then
2568 if reset "single subflow IPv6"; then
2578 if reset "unused signal address IPv6"; then
2587 if reset "single address IPv6"; then
2598 if reset "remove single address IPv6"; then
2610 if reset "remove subflow and signal IPv6"; then
2626 if reset "single subflow IPv4-mapped"; then
2635 if reset "signal address IPv4-mapped"; then
2645 if reset "single subflow v4-map-v6"; then
2654 if reset "signal address v4-map-v6"; then
2664 if reset "single subflow v6-map-v4"; then
2673 if reset "signal address v6-map-v4"; then
2683 if reset "no JOIN with diff families v4-v6"; then
2692 if reset "no JOIN with diff families v4-v6-2"; then
2700 # no subflow IPv4 to v6 address, no need to slow down too then
2701 if reset "no JOIN with diff families v6-v4"; then
2713 continue_if mptcp_lib_kversion_ge 6.3; then
2724 continue_if mptcp_lib_kversion_ge 6.3; then
2735 continue_if mptcp_lib_kversion_ge 6.3; then
2748 continue_if mptcp_lib_kversion_ge 6.3; then
2763 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2775 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2788 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2801 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2813 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2822 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2841 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2850 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2867 if [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CREATED ]; then
2869 elif [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CLOSED ]; then
2877 if ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
2882 if mptcp_lib_verify_listener_events "${@}"; then
2896 if [ ${retl} = 124 ]; then
2898 elif [ ${retl} = 0 ]; then
2905 if [ -z "$count" ]; then
2907 elif [ "$count" != "$attempts" ]; then
2918 if reset "signal address with port"; then
2928 if reset "subflow and signal with port"; then
2940 if reset_with_events "remove single address with port"; then
2958 if reset "remove subflow and signal with port"; then
2971 if reset "flush subflows and signal with port"; then
2985 if reset "multiple addresses with port"; then
2996 if reset "multiple addresses with ports"; then
3006 if reset "port-based signal endpoint must not accept mpc"; then
3026 if reset_with_cookies "single subflow with syn cookies"; then
3035 if reset_with_cookies "multiple subflows with syn cookies"; then
3045 if reset_with_cookies "subflows limited by server w cookies"; then
3055 if reset_with_cookies "signal address with syn cookies"; then
3065 if reset_with_cookies "subflow and signal w cookies"; then
3076 if reset_with_cookies "subflows and signal w. cookies"; then
3093 if reset_with_checksum ${checksum_enable}; then
3105 if reset_with_allow_join_id0 "single subflow allow join id0 ns1" 1 0; then
3114 if reset_with_allow_join_id0 "single subflow allow join id0 ns2" 0 1; then
3124 if reset_with_allow_join_id0 "signal address allow join id0 ns1" 1 0; then
3135 if reset_with_allow_join_id0 "signal address allow join id0 ns2" 0 1; then
3145 if reset_with_allow_join_id0 "subflow and address allow join id0 1" 1 0; then
3155 if reset_with_allow_join_id0 "subflow and address allow join id0 2" 0 1; then
3170 if reset "fullmesh test 2x1"; then
3184 if reset "fullmesh test 1x1"; then
3188 if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
3200 if reset "fullmesh test 1x2"; then
3214 if reset "fullmesh test 1x2, limited"; then
3226 continue_if mptcp_lib_kversion_ge 5.18; then
3238 continue_if mptcp_lib_kversion_ge 5.18; then
3250 continue_if mptcp_lib_kversion_ge 5.18; then
3263 continue_if mptcp_lib_kversion_ge 5.18; then
3277 if reset_check_counter "fastclose test" "MPTcpExtMPFastcloseTx"; then
3286 if reset_check_counter "fastclose server test" "MPTcpExtMPFastcloseRx"; then
3306 if reset_with_fail "Infinite map" 1; then
3318 if reset_with_fail "MP_FAIL MP_RST" 2; then
3408 if [ ${rc} -eq 2 ]; then
3410 elif [ ${rc} -eq 0 ]; then
3412 elif [ ${rc} -eq 1 ]; then
3449 if mptcp_lib_kallsyms_has "mptcp_userspace_pm_dump_addr$"; then
3464 if mptcp_lib_kallsyms_has "mptcp_userspace_pm_get_addr$"; then
3488 ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
3494 if [ "${count}" != "${exp}" ]; then
3505 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3517 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3529 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3540 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3551 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3564 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3578 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3611 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3639 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3660 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3684 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3714 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3739 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3815 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3889 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3923 if [ -n "${1}" ]; then
4008 if [[ "${arg}" =~ ^[0-9]+$ ]]; then
4015 if [ ${#tests[@]} -eq 0 ]; then
4025 if [ ${ret} -ne 0 ]; then