linux/tools/testing/selftests/drivers/net/Makefile
Jakub Kicinski ecca75ae5a selftests: drv-net: replace the nsim ring test with a drv-net one
We are trying to move away from netdevsim-only tests and towards
tests which can be run both against netdevsim and real drivers.

Replace the simple bash script we have for checking ethtool -g/-G
on netdevsim with a Python test tweaking those params as well
as channel count.

The new test is not exactly equivalent to the netdevsim one,
but real drivers don't often support random ring sizes,
let alone modifying max values via debugfs.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251029164930.2923448-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-30 17:32:18 -07:00

41 lines
717 B
Makefile

# SPDX-License-Identifier: GPL-2.0
CFLAGS += $(KHDR_INCLUDES)
TEST_INCLUDES := $(wildcard lib/py/*.py) \
$(wildcard lib/sh/*.sh) \
../../net/lib.sh \
TEST_GEN_FILES := \
napi_id_helper \
# end of TEST_GEN_FILES
TEST_PROGS := \
hds.py \
napi_id.py \
napi_threaded.py \
netcons_basic.sh \
netcons_cmdline.sh \
netcons_fragmented_msg.sh \
netcons_overflow.sh \
netcons_sysdata.sh \
netpoll_basic.py \
ping.py \
psp.py \
queues.py \
ring_reconfig.py \
shaper.py \
stats.py \
xdp.py \
# end of TEST_PROGS
# YNL files, must be before "include ..lib.mk"
YNL_GEN_FILES := psp_responder
TEST_GEN_FILES += $(YNL_GEN_FILES)
include ../../lib.mk
# YNL build
YNL_GENS := psp
include ../../net/ynl.mk