diff options
author | Geliang Tang <[email protected]> | 2023-11-28 15:18:58 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-11-29 20:06:19 -0800 |
commit | 9d9095bbc24df4432b38fb33a3cf59ea1e9213d0 (patch) | |
tree | 048b6dc6dcb41a5cf501c65654abaf5d3a2913cb /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 3a96dea9f88763cfa29e15f681f95fca8952ec77 (diff) |
selftests: mptcp: add mptcp_lib_check_transfer
To avoid duplicated code in different MPTCP selftests, we can add
and use helpers defined in mptcp_lib.sh.
check_transfer() and print_file_err() helpers are defined both in
mptcp_connect.sh and mptcp_sockopt.sh, export them into mptcp_lib.sh
and rename them with mptcp_lib_ prefix. And use them in all scripts.
Note: In mptcp_sockopt.sh it is OK to drop 'ret=1' in check_transfer()
because it will be set in run_tests() anyway.
Reviewed-by: Matthieu Baerts <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions