Commit e1039109 authored by Petr Machata's avatar Petr Machata Committed by Jakub Kicinski
Browse files

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: default avatarPetr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/9a357f8cf34f5ececac08d43a3eb023008996035.1711464583.git.petrm@nvidia.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent e16a8d20
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -199,25 +199,28 @@ ets_set_dwrr_two_bands()
ets_test_strict()
{
	ets_set_strict
	ets_dwrr_test_01
	ets_dwrr_test_12
	xfail_on_slow ets_dwrr_test_01
	xfail_on_slow ets_dwrr_test_12
}

ets_test_mixed()
{
	ets_set_mixed
	ets_dwrr_test_01
	ets_dwrr_test_12
	xfail_on_slow ets_dwrr_test_01
	xfail_on_slow ets_dwrr_test_12
}

ets_test_dwrr()
{
	ets_set_dwrr_uniform
	ets_dwrr_test_012
	xfail_on_slow ets_dwrr_test_012

	ets_set_dwrr_varying
	ets_dwrr_test_012
	xfail_on_slow ets_dwrr_test_012

	ets_change_quantum
	ets_dwrr_test_012
	xfail_on_slow ets_dwrr_test_012

	ets_set_dwrr_two_bands
	ets_dwrr_test_01
	xfail_on_slow ets_dwrr_test_01
}
+5 −5
Original line number Diff line number Diff line
@@ -451,35 +451,35 @@ uninstall_qdisc()
ecn_test()
{
	install_qdisc ecn
	do_ecn_test $BACKLOG
	xfail_on_slow do_ecn_test $BACKLOG
	uninstall_qdisc
}

ecn_nodrop_test()
{
	install_qdisc ecn nodrop
	do_ecn_nodrop_test $BACKLOG
	xfail_on_slow do_ecn_nodrop_test $BACKLOG
	uninstall_qdisc
}

red_test()
{
	install_qdisc
	do_red_test $BACKLOG
	xfail_on_slow do_red_test $BACKLOG
	uninstall_qdisc
}

red_qevent_test()
{
	install_qdisc qevent early_drop block 10
	do_red_qevent_test $BACKLOG
	xfail_on_slow do_red_qevent_test $BACKLOG
	uninstall_qdisc
}

ecn_qevent_test()
{
	install_qdisc ecn qevent mark block 10
	do_ecn_qevent_test $BACKLOG
	xfail_on_slow do_ecn_qevent_test $BACKLOG
	uninstall_qdisc
}

+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ do_tbf_test()
	local nr=$(rate $t2 $t3 10)
	local nr_pct=$((100 * (nr - er) / er))
	((-5 <= nr_pct && nr_pct <= 5))
	check_err $? "Expected rate $(humanize $er), got $(humanize $nr), which is $nr_pct% off. Required accuracy is +-5%."
	xfail_on_slow check_err $? "Expected rate $(humanize $er), got $(humanize $nr), which is $nr_pct% off. Required accuracy is +-5%."

	log_test "TC $((vlan - 10)): TBF rate ${mbit}Mbit"
}