Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: forwarding: Mark performance-sensitive tests

When run on a slow machine, the scheduler traffic tests can be expected to
fail, and should be reported as XFAIL in that case. Therefore run these
tests through the perf_sensitive wrapper.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/9a357f8cf34f5ececac08d43a3eb023008996035.1711464583.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Petr Machata and committed by
Jakub Kicinski
e1039109 e16a8d20

+17 -14
+11 -8
tools/testing/selftests/net/forwarding/sch_ets_tests.sh
··· 199 199 ets_test_strict() 200 200 { 201 201 ets_set_strict 202 - ets_dwrr_test_01 203 - ets_dwrr_test_12 202 + xfail_on_slow ets_dwrr_test_01 203 + xfail_on_slow ets_dwrr_test_12 204 204 } 205 205 206 206 ets_test_mixed() 207 207 { 208 208 ets_set_mixed 209 - ets_dwrr_test_01 210 - ets_dwrr_test_12 209 + xfail_on_slow ets_dwrr_test_01 210 + xfail_on_slow ets_dwrr_test_12 211 211 } 212 212 213 213 ets_test_dwrr() 214 214 { 215 215 ets_set_dwrr_uniform 216 - ets_dwrr_test_012 216 + xfail_on_slow ets_dwrr_test_012 217 + 217 218 ets_set_dwrr_varying 218 - ets_dwrr_test_012 219 + xfail_on_slow ets_dwrr_test_012 220 + 219 221 ets_change_quantum 220 - ets_dwrr_test_012 222 + xfail_on_slow ets_dwrr_test_012 223 + 221 224 ets_set_dwrr_two_bands 222 - ets_dwrr_test_01 225 + xfail_on_slow ets_dwrr_test_01 223 226 }
+5 -5
tools/testing/selftests/net/forwarding/sch_red.sh
··· 451 451 ecn_test() 452 452 { 453 453 install_qdisc ecn 454 - do_ecn_test $BACKLOG 454 + xfail_on_slow do_ecn_test $BACKLOG 455 455 uninstall_qdisc 456 456 } 457 457 458 458 ecn_nodrop_test() 459 459 { 460 460 install_qdisc ecn nodrop 461 - do_ecn_nodrop_test $BACKLOG 461 + xfail_on_slow do_ecn_nodrop_test $BACKLOG 462 462 uninstall_qdisc 463 463 } 464 464 465 465 red_test() 466 466 { 467 467 install_qdisc 468 - do_red_test $BACKLOG 468 + xfail_on_slow do_red_test $BACKLOG 469 469 uninstall_qdisc 470 470 } 471 471 472 472 red_qevent_test() 473 473 { 474 474 install_qdisc qevent early_drop block 10 475 - do_red_qevent_test $BACKLOG 475 + xfail_on_slow do_red_qevent_test $BACKLOG 476 476 uninstall_qdisc 477 477 } 478 478 479 479 ecn_qevent_test() 480 480 { 481 481 install_qdisc ecn qevent mark block 10 482 - do_ecn_qevent_test $BACKLOG 482 + xfail_on_slow do_ecn_qevent_test $BACKLOG 483 483 uninstall_qdisc 484 484 } 485 485
+1 -1
tools/testing/selftests/net/forwarding/sch_tbf_core.sh
··· 227 227 local nr=$(rate $t2 $t3 10) 228 228 local nr_pct=$((100 * (nr - er) / er)) 229 229 ((-5 <= nr_pct && nr_pct <= 5)) 230 - check_err $? "Expected rate $(humanize $er), got $(humanize $nr), which is $nr_pct% off. Required accuracy is +-5%." 230 + xfail_on_slow check_err $? "Expected rate $(humanize $er), got $(humanize $nr), which is $nr_pct% off. Required accuracy is +-5%." 231 231 232 232 log_test "TC $((vlan - 10)): TBF rate ${mbit}Mbit" 233 233 }