selftests: mptcp: tweak simult_flows for debug kernels
authorPaolo Abeni <pabeni@redhat.com>
Fri, 8 Jul 2022 17:14:09 +0000 (10:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jul 2022 11:19:23 +0000 (12:19 +0100)
commitd0d9c8f2df60c6d1495201981f4b424628601113
treedd23e8c9bf90f19693d9d0b0e7c6df6d4bd9c234
parentf7657ff4a7097eaf5220776456b7d75eb09062cb
selftests: mptcp: tweak simult_flows for debug kernels

The mentioned test measures the transfer run-time to verify
that the user-space program is able to use the full aggregate B/W.

Even on (virtual) link-speed-bound tests, debug kernel can slow
down the transfer enough to cause sporadic test failures.

Instead of unconditionally raising the maximum allowed run-time,
tweak when the running kernel is a debug one, and use some simple/
rough heuristic to guess such scenarios.

Note: this intentionally avoids looking for /boot/config-<version> as
the latter file is not always available in our reference CI
environments.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Co-developed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/simult_flows.sh