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
1047 if [ "$test_linkfail" -gt 1 ];then
1053 if [ "$test_linkfail" -eq 0 ];then
1085 if [ "$test_linkfail" -gt 2 ]; then
1088 if [ -z "$cinfail" ]; then
1094 elif [ "$test_linkfail" -ne 0 ] && [ -z "$cinfail" ]; then
1107 if [ "$test_linkfail" -gt 2 ]; then
1110 if [ -z "$sinfail" ]; then
1114 elif [ "$test_linkfail" -eq 2 ] && [ -z "$sinfail" ]; then
1143 if [[ "${csum_ns1}" = "+"* ]]; then
1147 if [[ "${csum_ns2}" = "+"* ]]; then
1154 if [ -n "$count" ] && [ "$count" != "$csum_ns1" ]; then
1157 if [ -z "$count" ]; then
1160 { [ "$count" -lt $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 1 ]; }; then
1168 if [ -n "$count" ] && [ "$count" != "$csum_ns2" ]; then
1171 if [ -z "$count" ]; then
1174 { [ "$count" -lt $csum_ns2 ] && [ $allow_multi_errors_ns2 -eq 1 ]; }; then
1197 if [[ $ns_invert = "invert" ]]; then
1204 if [[ "${fail_tx}" = "-"* ]]; then
1208 if [[ "${fail_rx}" = "-"* ]]; then
1215 if [ -n "$count" ] && [ "$count" != "$fail_tx" ]; then
1218 if [ -z "$count" ]; then
1221 { [ "$count" -gt "$fail_tx" ] && [ $allow_tx_lost -eq 1 ]; }; then
1229 if [ -n "$count" ] && [ "$count" != "$fail_rx" ]; then
1232 if [ -z "$count" ]; then
1235 { [ "$count" -gt "$fail_rx" ] && [ $allow_rx_lost -eq 1 ]; }; then
1255 if [[ $ns_invert = "invert" ]]; then
1264 if [ -z "$count" ]; then
1266 elif [ "$count" != "$fclose_tx" ]; then
1274 if [ -z "$count" ]; then
1276 elif [ "$count" != "$fclose_rx" ]; then
1294 if [[ $ns_invert = "invert" ]]; then
1303 if [ -z "$count" ]; then
1307 { [ $rst_tx -eq 0 ] && [ $count -ne 0 ]; }; then
1315 if [ -z "$count" ]; then
1319 { [ $rst_rx -eq 0 ] && [ $count -ne 0 ]; }; then
1334 if [ -z "$count" ]; then
1336 elif [ "$count" != "$infi_tx" ]; then
1344 if [ -z "$count" ]; then
1346 elif [ "$count" != "$infi_rx" ]; then
1363 if [ -z "$count" ]; then
1365 elif [ "$count" != "$syn_tx" ]; then
1372 if [ -z "$count" ]; then
1374 elif [ "$count" != "$create" ]; then
1381 if [ -z "$count" ]; then
1383 elif [ "$count" != "$bind" ]; then
1390 if [ -z "$count" ]; then
1392 elif [ "$count" != "$connect" ]; then
1416 if [ "${corrupted_pkts}" -gt 0 ]; then
1421 if [ -z "$count" ]; then
1423 elif [ "$count" != "$syn_nr" ]; then
1431 if [ -z "$count" ]; then
1433 elif [ "$count" != "$syn_ack_nr" ]; then
1437 if [ "$with_cookie" != 2 ] || [ "$count" -le "$syn_ack_nr" ] || [ "$count" -gt "$syn_nr" ]; then
1445 if [ -z "$count" ]; then
1447 elif [ "$count" != "0" ]; then
1454 if [ -z "$count" ]; then
1456 elif [ "$count" != "$ack_nr" ]; then
1463 if [ -z "$count" ]; then
1465 elif [ "$count" != "0" ]; then
1476 if $validate_checksum; then
1503 if [ -z "$stale_nr" ] || [ -z "$recover_nr" ]; then
1507 [ $((stale_nr - recover_nr)) -ne $stale_delta ]; then
1516 if [ "${dump_stats}" = 1 ]; then
1541 if [[ $ns_invert = "invert" ]]; then
1552 if [ -z "$count" ]; then
1554 # if the test configured a short timeout tolerate greater then expected
1556 elif [ "$count" != "$add_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_nr" ]; }; then
1564 if [ -z "$count" ]; then
1566 elif [ "$count" != "$echo_nr" ]; then
1572 if [ $port_nr -gt 0 ]; then
1575 if [ -z "$count" ]; then
1577 elif [ "$count" != "$port_nr" ]; then
1585 if [ -z "$count" ]; then
1587 elif [ "$count" != "$syn_nr" ]; then
1596 if [ -z "$count" ]; then
1598 elif [ "$count" != "$syn_ack_nr" ]; then
1607 if [ -z "$count" ]; then
1609 elif [ "$count" != "$ack_nr" ]; then
1618 if [ -z "$count" ]; then
1620 elif [ "$count" != "$mis_syn_nr" ]; then
1629 if [ -z "$count" ]; then
1631 elif [ "$count" != "$mis_ack_nr" ]; then
1651 if [ -z "$count" ]; then
1653 # if the test configured a short timeout tolerate greater then expected
1655 …if [ "$count" != "$add_tx_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_tx_nr" ]; }; then
1663 if [ -z "$count" ]; then
1665 elif [ "$count" != "$echo_tx_nr" ]; then
1692 if [ "$invert" = "true" ]; then
1701 if [ -z "$count" ]; then
1703 elif [ "$count" != "$rm_addr_nr" ]; then
1711 if [ -z "$count" ]; then
1713 elif [ -n "$simult" ]; then
1721 if [ "$count" != "$rm_subflow_nr" ]; then
1726 [ "$count" -le "$((rm_subflow_nr *2 ))" ]; then
1731 elif [ "$count" != "$rm_subflow_nr" ]; then
1746 if [ -z "$count" ]; then
1748 elif [ "$count" != "$rm_addr_tx_nr" ]; then
1765 if [ -z "$count" ]; then
1767 elif [ "$count" != "$mp_prio_nr_tx" ]; then
1775 if [ -z "$count" ]; then
1777 elif [ "$count" != "$mp_prio_nr_rx" ]; then
1785 if [ -z "$count" ]; then
1787 elif [ "$count" != "$mpj_syn" ]; then
1795 if [ -z "$count" ]; then
1797 elif [ "$count" != "$mpj_syn_ack" ]; then
1816 if [ "$cnt1" != "$subflow_nr" ] || [ "$cnt2" != "$subflow_nr" ]; then
1823 if [ "${dump_stats}" = 1 ]; then
1848 if [ "$cnt1" != "$exp1" ] || [ "$cnt2" != "$exp2" ]; then
1855 if [ "$dump_stats" = 1 ]; then
1871 if [ -n "$(ss -N $ns1 -inmHM | mptcp_lib_get_info_value $info $info)" ]; then
1884 if [ "$1" != "$cnt1" ] || [ "$2" != "$cnt2" ]; then
1891 if [ "$dump_stats" = 1 ]; then
1912 [ $tx_rate -gt $((expected_rate + tolerance)) ]; then
1946 if reset "no JOIN"; then
1952 if reset "single subflow, limited by client"; then
1961 if reset "single subflow, limited by server"; then
1970 if reset "single subflow"; then
1979 if reset "multiple subflows"; then
1989 if reset "multiple subflows, limited by server"; then
1999 if reset "single subflow, dev"; then
2012 if reset "no MPC reuse with single endpoint"; then
2025 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2038 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2053 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2075 if reset "unused signal address"; then
2084 if reset "signal address"; then
2097 if reset "subflow and signal"; then
2110 if reset "subflow and signal together"; then
2123 if reset "multiple subflows and signal"; then
2135 if reset "signal addresses"; then
2147 if reset "signal invalid addresses"; then
2160 if reset "signal addresses race test"; then
2179 if ! mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2194 if reset "multiple flows, signal, link failure"; then
2216 if reset "multi flows, signal, bidi, link fail"; then
2232 if reset "backup subflow unused, link failure"; then
2247 if reset "backup flow used, multi links fail"; then
2263 if reset "backup flow used, bidi, link failure"; then
2281 if reset_with_add_addr_timeout "signal address, ADD_ADDR timeout"; then
2293 if reset_with_add_addr_timeout "signal address, ADD_ADDR6 timeout" 6; then
2304 if reset_with_add_addr_timeout "signal addresses, ADD_ADDR timeout"; then
2316 if reset_with_add_addr_timeout "invalid address, ADD_ADDR timeout"; then
2332 if reset "remove single subflow"; then
2345 if reset "remove multiple subflows"; then
2358 if reset "remove single address"; then
2371 if reset "remove subflow and signal"; then
2385 if reset "remove subflows and signal"; then
2400 if reset "remove addresses"; then
2415 if reset "remove invalid addresses"; then
2432 if reset "flush subflows and signal"; then
2447 if reset "flush subflows"; then
2457 if mptcp_lib_kversion_ge 5.18; then
2467 if reset "flush addresses"; then
2482 if reset "flush invalid addresses"; then
2498 if reset "remove id 0 subflow"; then
2510 if reset "remove id 0 address"; then
2526 if reset "add single subflow"; then
2536 if reset "add signal address"; then
2547 if reset "add multiple subflows"; then
2557 if reset "add multiple subflows IPv6"; then
2567 if reset "add multiple addresses IPv6"; then
2581 if reset "single subflow IPv6"; then
2591 if reset "unused signal address IPv6"; then
2600 if reset "single address IPv6"; then
2611 if reset "remove single address IPv6"; then
2623 if reset "remove subflow and signal IPv6"; then
2639 if reset "single subflow IPv4-mapped"; then
2648 if reset "signal address IPv4-mapped"; then
2658 if reset "single subflow v4-map-v6"; then
2667 if reset "signal address v4-map-v6"; then
2677 if reset "single subflow v6-map-v4"; then
2686 if reset "signal address v6-map-v4"; then
2696 if reset "no JOIN with diff families v4-v6"; then
2705 if reset "no JOIN with diff families v4-v6-2"; then
2713 # no subflow IPv4 to v6 address, no need to slow down too then
2714 if reset "no JOIN with diff families v6-v4"; then
2726 continue_if mptcp_lib_kversion_ge 6.3; then
2737 continue_if mptcp_lib_kversion_ge 6.3; then
2748 continue_if mptcp_lib_kversion_ge 6.3; then
2761 continue_if mptcp_lib_kversion_ge 6.3; then
2776 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
2814 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2826 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2835 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2854 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2863 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2880 if [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CREATED ]; then
2882 elif [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CLOSED ]; then
2890 if ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
2895 if mptcp_lib_verify_listener_events "${@}"; then
2909 if [ ${retl} = 124 ]; then
2911 elif [ ${retl} = 0 ]; then
2918 if [ -z "$count" ]; then
2920 elif [ "$count" != "$attempts" ]; then
2931 if reset "signal address with port"; then
2941 if reset "subflow and signal with port"; then
2953 if reset_with_events "remove single address with port"; then
2971 if reset "remove subflow and signal with port"; then
2984 if reset "flush subflows and signal with port"; then
2998 if reset "multiple addresses with port"; then
3009 if reset "multiple addresses with ports"; then
3019 if reset "port-based signal endpoint must not accept mpc"; then
3039 if reset_with_cookies "single subflow with syn cookies"; then
3048 if reset_with_cookies "multiple subflows with syn cookies"; then
3058 if reset_with_cookies "subflows limited by server w cookies"; then
3068 if reset_with_cookies "signal address with syn cookies"; then
3078 if reset_with_cookies "subflow and signal w cookies"; then
3089 if reset_with_cookies "subflows and signal w. cookies"; then
3106 if reset_with_checksum ${checksum_enable}; then
3118 if reset_with_allow_join_id0 "single subflow allow join id0 ns1" 1 0; then
3127 if reset_with_allow_join_id0 "single subflow allow join id0 ns2" 0 1; then
3137 if reset_with_allow_join_id0 "signal address allow join id0 ns1" 1 0; then
3148 if reset_with_allow_join_id0 "signal address allow join id0 ns2" 0 1; then
3158 if reset_with_allow_join_id0 "subflow and address allow join id0 1" 1 0; then
3168 if reset_with_allow_join_id0 "subflow and address allow join id0 2" 0 1; then
3183 if reset "fullmesh test 2x1"; then
3197 if reset "fullmesh test 1x1"; then
3201 if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
3213 if reset "fullmesh test 1x2"; then
3227 if reset "fullmesh test 1x2, limited"; then
3239 continue_if mptcp_lib_kversion_ge 5.18; then
3251 continue_if mptcp_lib_kversion_ge 5.18; then
3263 continue_if mptcp_lib_kversion_ge 5.18; then
3276 continue_if mptcp_lib_kversion_ge 5.18; then
3290 if reset_check_counter "fastclose test" "MPTcpExtMPFastcloseTx"; then
3299 if reset_check_counter "fastclose server test" "MPTcpExtMPFastcloseRx"; then
3319 if reset_with_fail "Infinite map" 1; then
3331 if reset_with_fail "MP_FAIL MP_RST" 2; then
3421 if [ ${rc} -eq 2 ]; then
3423 elif [ ${rc} -eq 0 ]; then
3425 elif [ ${rc} -eq 1 ]; then
3462 if mptcp_lib_kallsyms_has "mptcp_userspace_pm_dump_addr$"; then
3477 if mptcp_lib_kallsyms_has "mptcp_userspace_pm_get_addr$"; then
3501 ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
3507 if [ "${count}" != "${exp}" ]; then
3518 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3530 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3542 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3553 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
3577 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3591 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3624 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3652 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3673 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3697 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3727 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3752 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3828 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3902 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3936 if [ -n "${1}" ]; then
4021 if [[ "${arg}" =~ ^[0-9]+$ ]]; then
4028 if [ ${#tests[@]} -eq 0 ]; then
4038 if [ ${ret} -ne 0 ]; then