Lines Matching full:then

104 		if $checksum; then
190 # It can be empty, no need to print anything then
218 if [ ${rc} = ${KSFT_PASS} ]; then
220 elif [ ${rc} = ${KSFT_SKIP} ]; then
243 if ! "${@}"; then
251 if [ "${#only_tests_ids[@]}" -eq 0 ] && [ "${#only_tests_names[@]}" -eq 0 ]; then
257 if [ "$((MPTCP_LIB_TEST_COUNTER+1))" -eq "${i}" ]; then
262 if [ "${TEST_NAME}" = "${i}" ]; then
272 if [ ${last_test_failed} -eq 1 ]; then
274 elif [ ${last_test_skipped} -eq 1 ]; then
276 elif [ ${last_test_ignored} -ne 1 ]; then
294 if skip_test; then
302 if [ "${init}" != "1" ]; then
320 if ! nstat -asz "${counter}" | grep -wq "${counter}"; then
346 if [ $ip -eq 6 ]; then
356 -j DROP; then
412 if [ $ip -eq 6 ]; then
445 if [ ${rc} -eq ${KSFT_SKIP} ]; then
478 -j "${target}"; then
487 if ! mptcp_lib_subtest_is_flaky; then
491 if [ ${#} -gt 0 ]; then
496 if [ ${last_test_failed} -eq 0 ]; then
521 if [ -n "$bytes" ]; then
525 if [ $out_size -ne $bytes ]; then
540 if [ $check_invert -eq 0 ] || [ $sum -ne $((0xff)) ]; then
560 if ! ip netns exec ${connector_ns} ping -q -c 1 $connect_addr >/dev/null; then
569 if [ -z "$FAILING_LINKS" ]; then
697 if [ -z "${id}" ]; then
719 if [ -n "${fullmesh}" ]; then
726 if [ $addr_nr_ns1 != "0" ] || [ $addr_nr_ns2 != "0" ]; then
730 if [ $addr_nr_ns1 -gt 0 ]; then
736 if mptcp_lib_is_v6 "${connect_addr}"; then
746 elif [ $addr_nr_ns1 -lt 0 ]; then
748 if [ $rm_nr_ns1 -lt 8 ]; then
758 if [ $i = "id" ]; then
759 if [ $counter -eq $rm_nr_ns1 ]; then
771 elif [ $rm_nr_ns1 -eq 8 ]; then
773 elif [ $rm_nr_ns1 -eq 9 ]; then
782 if [ $addr_nr_ns2 -gt 0 ]; then
788 if mptcp_lib_is_v6 "${connect_addr}"; then
798 elif [ $addr_nr_ns2 -lt 0 ]; then
800 if [ $rm_nr_ns2 -lt 8 ]; then
810 if [ $i = "id" ]; then
811 if [ $counter -eq $rm_nr_ns2 ]; then
826 elif [ $rm_nr_ns2 -eq 8 ]; then
828 elif [ $rm_nr_ns2 -eq 9 ]; then
830 if mptcp_lib_is_v6 "${connect_addr}"; then
839 if [ -n "${sflags}" ]; then
853 if [ $i = "id" ]; then
872 if [ -z "$count" ]; then
874 elif [ "$count" != "$cestab" ]; then
884 if [ -n "${cestab_ns1}" ]; then
887 if [ -n "${cestab_ns2}" ]; then
898 if $capture; then
900 if [ -z $SUDO_USER ]; then
918 if $capture; then
955 if [ $speed = "fast" ]; then
957 elif [ $speed = "slow" ]; then
959 elif [ $speed -gt 0 ]; then
966 if [ -n "${fastclose}" ]; then
967 if [ ${test_linkfail} -le 1 ]; then
976 if [ ${side} = "client" ]; then
979 elif [ ${side} = "server" ]; then
989 if [ "$test_linkfail" -gt 1 ];then
1005 if [ "$test_linkfail" -eq 0 ];then
1010 elif [ "$test_linkfail" -eq 1 ] || [ "$test_linkfail" -eq 2 ];then
1041 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
1048 if [ "$test_linkfail" -gt 1 ];then
1054 if [ "$test_linkfail" -eq 0 ];then
1086 if [ "$test_linkfail" -gt 2 ]; then
1089 if [ -z "$cinfail" ]; then
1095 elif [ "$test_linkfail" -ne 0 ] && [ -z "$cinfail" ]; then
1108 if [ "$test_linkfail" -gt 2 ]; then
1111 if [ -z "$sinfail" ]; then
1115 elif [ "$test_linkfail" -eq 2 ] && [ -z "$sinfail" ]; then
1144 if [[ "${csum_ns1}" = "+"* ]]; then
1148 if [[ "${csum_ns2}" = "+"* ]]; then
1155 if [ -n "$count" ] && [ "$count" != "$csum_ns1" ]; then
1158 if [ -z "$count" ]; then
1161 { [ "$count" -lt $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 1 ]; }; then
1169 if [ -n "$count" ] && [ "$count" != "$csum_ns2" ]; then
1172 if [ -z "$count" ]; then
1175 { [ "$count" -lt $csum_ns2 ] && [ $allow_multi_errors_ns2 -eq 1 ]; }; then
1198 if [[ $ns_invert = "invert" ]]; then
1205 if [[ "${fail_tx}" = "-"* ]]; then
1209 if [[ "${fail_rx}" = "-"* ]]; then
1216 if [ -n "$count" ] && [ "$count" != "$fail_tx" ]; then
1219 if [ -z "$count" ]; then
1222 { [ "$count" -gt "$fail_tx" ] && [ $allow_tx_lost -eq 1 ]; }; then
1230 if [ -n "$count" ] && [ "$count" != "$fail_rx" ]; then
1233 if [ -z "$count" ]; then
1236 { [ "$count" -gt "$fail_rx" ] && [ $allow_rx_lost -eq 1 ]; }; then
1256 if [[ $ns_invert = "invert" ]]; then
1265 if [ -z "$count" ]; then
1267 elif [ "$count" != "$fclose_tx" ]; then
1275 if [ -z "$count" ]; then
1277 elif [ "$count" != "$fclose_rx" ]; then
1295 if [[ $ns_invert = "invert" ]]; then
1304 if [ -z "$count" ]; then
1308 { [ $rst_tx -eq 0 ] && [ $count -ne 0 ]; }; then
1316 if [ -z "$count" ]; then
1320 { [ $rst_rx -eq 0 ] && [ $count -ne 0 ]; }; then
1335 if [ -z "$count" ]; then
1337 elif [ "$count" != "$infi_tx" ]; then
1345 if [ -z "$count" ]; then
1347 elif [ "$count" != "$infi_rx" ]; then
1364 if [ -z "$count" ]; then
1366 elif [ "$count" != "$syn_tx" ]; then
1373 if [ -z "$count" ]; then
1375 elif [ "$count" != "$create" ]; then
1382 if [ -z "$count" ]; then
1384 elif [ "$count" != "$bind" ]; then
1391 if [ -z "$count" ]; then
1393 elif [ "$count" != "$connect" ]; then
1418 if [ "${corrupted_pkts}" -gt 0 ]; then
1423 if [ -z "$count" ]; then
1425 elif [ "$count" != "$syn_nr" ]; then
1433 if [ -z "$count" ]; then
1435 elif [ "$count" != "$syn_ack_nr" ]; then
1439 if [ "$with_cookie" != 2 ] || [ "$count" -le "$syn_ack_nr" ] || [ "$count" -gt "$syn_nr" ]; then
1447 if [ -z "$count" ]; then
1449 elif [ "$count" != "0" ]; then
1456 if [ -z "$count" ]; then
1458 elif [ "$count" != "$ack_nr" ]; then
1465 if [ -z "$count" ]; then
1467 elif [ "$count" != "0" ]; then
1474 if [ -z "$count" ]; then
1476 elif [ "$count" != "$syn_rej" ]; then
1487 if $validate_checksum; then
1514 if [ -z "$stale_nr" ] || [ -z "$recover_nr" ]; then
1518 [ $((stale_nr - recover_nr)) -ne $stale_delta ]; then
1527 if [ "${dump_stats}" = 1 ]; then
1552 if [[ $ns_invert = "invert" ]]; then
1563 if [ -z "$count" ]; then
1565 # if the test configured a short timeout tolerate greater then expected
1567 elif [ "$count" != "$add_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_nr" ]; }; then
1575 if [ -z "$count" ]; then
1577 elif [ "$count" != "$echo_nr" ]; then
1583 if [ $port_nr -gt 0 ]; then
1586 if [ -z "$count" ]; then
1588 elif [ "$count" != "$port_nr" ]; then
1596 if [ -z "$count" ]; then
1598 elif [ "$count" != "$syn_nr" ]; then
1607 if [ -z "$count" ]; then
1609 elif [ "$count" != "$syn_ack_nr" ]; then
1618 if [ -z "$count" ]; then
1620 elif [ "$count" != "$ack_nr" ]; then
1629 if [ -z "$count" ]; then
1631 elif [ "$count" != "$mis_syn_nr" ]; then
1640 if [ -z "$count" ]; then
1642 elif [ "$count" != "$mis_ack_nr" ]; then
1662 if [ -z "$count" ]; then
1664 # if the test configured a short timeout tolerate greater then expected
1666 …if [ "$count" != "$add_tx_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_tx_nr" ]; }; then
1674 if [ -z "$count" ]; then
1676 elif [ "$count" != "$echo_tx_nr" ]; then
1703 if [ "$invert" = "true" ]; then
1712 if [ -z "$count" ]; then
1714 elif [ "$count" != "$rm_addr_nr" ]; then
1722 if [ -z "$count" ]; then
1724 elif [ -n "$simult" ]; then
1732 if [ "$count" != "$rm_subflow_nr" ]; then
1737 [ "$count" -le "$((rm_subflow_nr *2 ))" ]; then
1742 elif [ "$count" != "$rm_subflow_nr" ]; then
1757 if [ -z "$count" ]; then
1759 elif [ "$count" != "$rm_addr_tx_nr" ]; then
1776 if [ -z "$count" ]; then
1778 elif [ "$count" != "$mp_prio_nr_tx" ]; then
1786 if [ -z "$count" ]; then
1788 elif [ "$count" != "$mp_prio_nr_rx" ]; then
1796 if [ -z "$count" ]; then
1798 elif [ "$count" != "$mpj_syn" ]; then
1806 if [ -z "$count" ]; then
1808 elif [ "$count" != "$mpj_syn_ack" ]; then
1827 if [ "$cnt1" != "$subflow_nr" ] || [ "$cnt2" != "$subflow_nr" ]; then
1834 if [ "${dump_stats}" = 1 ]; then
1859 if [ "$cnt1" != "$exp1" ] || [ "$cnt2" != "$exp2" ]; then
1866 if [ "$dump_stats" = 1 ]; then
1882 if [ -n "$(ss -N $ns1 -inmHM | mptcp_lib_get_info_value $info $info)" ]; then
1895 if [ "$1" != "$cnt1" ] || [ "$2" != "$cnt2" ]; then
1902 if [ "$dump_stats" = 1 ]; then
1923 [ $tx_rate -gt $((expected_rate + tolerance)) ]; then
1957 if reset "no JOIN"; then
1963 if reset "single subflow, limited by client"; then
1972 if reset "single subflow, limited by server"; then
1982 if reset "single subflow"; then
1991 if reset "multiple subflows"; then
2001 if reset "multiple subflows, limited by server"; then
2012 if reset "single subflow, dev"; then
2025 if reset "no MPC reuse with single endpoint"; then
2038 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2051 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2066 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2088 if reset "unused signal address"; then
2097 if reset "signal address"; then
2110 if reset "subflow and signal"; then
2123 if reset "subflow and signal together"; then
2136 if reset "multiple subflows and signal"; then
2148 if reset "signal addresses"; then
2160 if reset "signal invalid addresses"; then
2173 if reset "signal addresses race test"; then
2192 if ! mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2207 if reset "multiple flows, signal, link failure"; then
2229 if reset "multi flows, signal, bidi, link fail"; then
2245 if reset "backup subflow unused, link failure"; then
2260 if reset "backup flow used, multi links fail"; then
2276 if reset "backup flow used, bidi, link failure"; then
2294 if reset_with_add_addr_timeout "signal address, ADD_ADDR timeout"; then
2306 if reset_with_add_addr_timeout "signal address, ADD_ADDR6 timeout" 6; then
2317 if reset_with_add_addr_timeout "signal addresses, ADD_ADDR timeout"; then
2329 if reset_with_add_addr_timeout "invalid address, ADD_ADDR timeout"; then
2345 if reset "remove single subflow"; then
2358 if reset "remove multiple subflows"; then
2371 if reset "remove single address"; then
2384 if reset "remove subflow and signal"; then
2398 if reset "remove subflows and signal"; then
2413 if reset "remove addresses"; then
2428 if reset "remove invalid addresses"; then
2445 if reset "flush subflows and signal"; then
2460 if reset "flush subflows"; then
2470 if mptcp_lib_kversion_ge 5.18; then
2480 if reset "flush addresses"; then
2495 if reset "flush invalid addresses"; then
2511 if reset "remove id 0 subflow"; then
2523 if reset "remove id 0 address"; then
2539 if reset "add single subflow"; then
2549 if reset "add signal address"; then
2560 if reset "add multiple subflows"; then
2570 if reset "add multiple subflows IPv6"; then
2580 if reset "add multiple addresses IPv6"; then
2594 if reset "single subflow IPv6"; then
2604 if reset "unused signal address IPv6"; then
2613 if reset "single address IPv6"; then
2624 if reset "remove single address IPv6"; then
2636 if reset "remove subflow and signal IPv6"; then
2652 if reset "single subflow IPv4-mapped"; then
2661 if reset "signal address IPv4-mapped"; then
2671 if reset "single subflow v4-map-v6"; then
2680 if reset "signal address v4-map-v6"; then
2690 if reset "single subflow v6-map-v4"; then
2699 if reset "signal address v6-map-v4"; then
2709 if reset "no JOIN with diff families v4-v6"; then
2718 if reset "no JOIN with diff families v4-v6-2"; then
2726 # no subflow IPv4 to v6 address, no need to slow down too then
2727 if reset "no JOIN with diff families v6-v4"; then
2739 continue_if mptcp_lib_kversion_ge 6.3; then
2750 continue_if mptcp_lib_kversion_ge 6.3; then
2761 continue_if mptcp_lib_kversion_ge 6.3; then
2774 continue_if mptcp_lib_kversion_ge 6.3; then
2789 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
2827 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2839 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2848 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2867 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2876 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2893 if [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CREATED ]; then
2895 elif [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CLOSED ]; then
2903 if ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
2908 if mptcp_lib_verify_listener_events "${@}"; then
2922 if [ ${retl} = 124 ]; then
2924 elif [ ${retl} = 0 ]; then
2931 if [ -z "$count" ]; then
2933 elif [ "$count" != "$attempts" ]; then
2944 if reset "signal address with port"; then
2954 if reset "subflow and signal with port"; then
2966 if reset_with_events "remove single address with port"; then
2984 if reset "remove subflow and signal with port"; then
2997 if reset "flush subflows and signal with port"; then
3011 if reset "multiple addresses with port"; then
3022 if reset "multiple addresses with ports"; then
3032 if reset "port-based signal endpoint must not accept mpc"; then
3052 if reset_with_cookies "single subflow with syn cookies"; then
3061 if reset_with_cookies "multiple subflows with syn cookies"; then
3071 if reset_with_cookies "subflows limited by server w cookies"; then
3082 if reset_with_cookies "signal address with syn cookies"; then
3092 if reset_with_cookies "subflow and signal w cookies"; then
3103 if reset_with_cookies "subflows and signal w. cookies"; then
3120 if reset_with_checksum ${checksum_enable}; then
3132 if reset_with_allow_join_id0 "single subflow allow join id0 ns1" 1 0; then
3141 if reset_with_allow_join_id0 "single subflow allow join id0 ns2" 0 1; then
3151 if reset_with_allow_join_id0 "signal address allow join id0 ns1" 1 0; then
3162 if reset_with_allow_join_id0 "signal address allow join id0 ns2" 0 1; then
3172 if reset_with_allow_join_id0 "subflow and address allow join id0 1" 1 0; then
3182 if reset_with_allow_join_id0 "subflow and address allow join id0 2" 0 1; then
3197 if reset "fullmesh test 2x1"; then
3211 if reset "fullmesh test 1x1"; then
3215 if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
3227 if reset "fullmesh test 1x2"; then
3241 if reset "fullmesh test 1x2, limited"; then
3253 continue_if mptcp_lib_kversion_ge 5.18; then
3265 continue_if mptcp_lib_kversion_ge 5.18; then
3277 continue_if mptcp_lib_kversion_ge 5.18; then
3290 continue_if mptcp_lib_kversion_ge 5.18; then
3304 if reset_check_counter "fastclose test" "MPTcpExtMPFastcloseTx"; then
3313 if reset_check_counter "fastclose server test" "MPTcpExtMPFastcloseRx"; then
3333 if reset_with_fail "Infinite map" 1; then
3345 if reset_with_fail "MP_FAIL MP_RST" 2; then
3435 if [ ${rc} -eq 2 ]; then
3437 elif [ ${rc} -eq 0 ]; then
3439 elif [ ${rc} -eq 1 ]; then
3476 if mptcp_lib_kallsyms_has "mptcp_userspace_pm_dump_addr$"; then
3491 if mptcp_lib_kallsyms_has "mptcp_userspace_pm_get_addr$"; then
3515 ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
3521 if [ "${count}" != "${exp}" ]; then
3532 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3544 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3556 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3568 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3579 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3593 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3607 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3640 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3668 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3689 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3713 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3743 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3768 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3844 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3918 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3952 if [ -n "${1}" ]; then
4037 if [[ "${arg}" =~ ^[0-9]+$ ]]; then
4044 if [ ${#tests[@]} -eq 0 ]; then
4054 if [ ${ret} -ne 0 ]; then