Skip to content

Commit

Permalink
selftests: mptcp: add iperf check for check_tools
Browse files Browse the repository at this point in the history
MPTCPv1 protocol support has been added in iperf3 recently.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
  • Loading branch information
Geliang Tang committed Jan 20, 2025
1 parent 911c00b commit 0ed3327
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/testing/selftests/net/mptcp/mptcp_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,12 @@ mptcp_lib_check_tools() {
exit ${KSFT_SKIP}
fi
;;
"iperf"*)
if ! iperf3 -h | grep -q mptcp; then
mptcp_lib_pr_skip "iperf tool does not support MPTCP"
exit ${KSFT_SKIP}
fi
;;
*)
mptcp_lib_pr_fail "Internal error: unsupported tool: ${tool}"
exit ${KSFT_FAIL}
Expand Down

0 comments on commit 0ed3327

Please sign in to comment.