linux/tools/testing/selftests/net/mptcp
Paolo Abeni b6ab64b074 selftests: mptcp: more stable simult_flows tests
Currently the simult_flows.sh self-tests are not very stable,
especially when running on slow VMs.

The tests measure runtime for transfers on multiple subflows
and check that the time is near the theoretical maximum.

The current test infra introduces a bit of jitter in test
runtime, due to multiple explicit delays. Additionally the
runtime is measured by the shell script wrapper. On a slow
VM, the script overhead is measurable and subject to relevant
jitter.

One solution to make the test more stable would be adding more
slack to the expected time; that could possibly hide real
regressions. Instead move the measurement inside the command
doing the transfer, and drop most unneeded sleeps.

Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-11-01 13:19:49 +00:00
..
.gitignore selftests: mptcp: add mptcp getsockopt test cases 2021-09-18 14:20:01 +01:00
config selftests: mptcp: add ADD_ADDR timeout test case 2020-11-04 17:45:53 -08:00
diag.sh selftests: mptcp: launch mptcp_connect with timeout 2021-04-02 14:21:50 -07:00
Makefile selftests: mptcp: add mptcp getsockopt test cases 2021-09-18 14:20:01 +01:00
mptcp_connect.c selftests: mptcp: more stable simult_flows tests 2021-11-01 13:19:49 +00:00
mptcp_connect.sh selftests: mptcp: display proper reason to abort tests 2021-06-22 09:57:45 -07:00
mptcp_join.sh selftests: mptcp: fix proto type in link_failure tests 2021-11-01 13:19:49 +00:00
mptcp_sockopt.c selftests: mptcp: add mptcp getsockopt test cases 2021-09-18 14:20:01 +01:00
mptcp_sockopt.sh selftests: mptcp: add mptcp getsockopt test cases 2021-09-18 14:20:01 +01:00
pm_netlink.sh mptcp: increase default max additional subflows to 2 2021-10-16 08:46:08 +01:00
pm_nl_ctl.c selftests: mptcp: set and print the fullmesh flag 2021-08-18 10:10:01 +01:00
settings selftests: increase timeout to 10 min 2021-01-27 16:53:55 -08:00
simult_flows.sh selftests: mptcp: more stable simult_flows tests 2021-11-01 13:19:49 +00:00