diff options
author | 2024-03-26 17:54:38 +0100 | |
---|---|---|
committer | 2024-03-28 18:03:43 -0700 | |
commit | e16a8d209c33de2f5b739d01148738b973371daf (patch) | |
tree | bd8eb603ea813d5968b7dc9027b04750a26ab0de /tools/testing/selftests/rtc/.gitignore | |
parent | selftests: forwarding: Convert log_test() to recognize RET values (diff) | |
download | linux-e16a8d209c33de2f5b739d01148738b973371daf.tar.gz linux-e16a8d209c33de2f5b739d01148738b973371daf.tar.bz2 linux-e16a8d209c33de2f5b739d01148738b973371daf.zip |
selftests: forwarding: Support for performance sensitive tests
Several tests in the suite use large amounts of traffic to e.g. cause
congestion and evaluate RED or shaper performance. These tests will not run
well on a slow machine, be it one with heavy debug kernel, or a VM, or e.g.
a single-board computer. Allow users to specify an environment variable,
KSFT_MACHINE_SLOW=yes, to indicate that the tests are being run on one such
machine.
Performance sensitive tests can then use a new helper, xfail_on_slow(), to
mark parts of the test that are sensitive to low-performance machines.
The helper can be used to just mark the whole suite, like so:
xfail_on_slow tests_run
... or, on the other side of the granularity spectrum, to override
individual checks:
xfail_on_slow check_err $? "Expected much, got little."
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/99a376a2d2ffdaeee7752b1910cb0c3ea5d80fbe.1711464583.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rtc/.gitignore')
0 files changed, 0 insertions, 0 deletions