]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netconsole: selftests: Move netconsole selftests to separate target
authorAndre Carvalho <asantostc@gmail.com>
Tue, 27 Jan 2026 19:39:20 +0000 (19:39 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Jan 2026 01:30:48 +0000 (17:30 -0800)
commitb3827c91cc9979fe04d99e016fb9c5f6260f29a0
treedee89ff7b0d09e5b3871c903c291bdf217382c21
parenta010fe8d869635fd15c1d5768ba6a2f48795fa36
netconsole: selftests: Move netconsole selftests to separate target

This patch moves netconsole selftests from drivers/net to its own target
in drivers/net/netconsole.

This change helps saving some resources from CI since tests in
drivers/net automatically run against real hardware which are not used
by netconsole tests as they rely solely on netdevsim.

lib_netcons.sh is kept under drivers/net/lib since it is also used by
bonding selftests. Finally, drivers/net config remains unchanged as
netpoll_basic.py requires netconsole (and does leverage real HW testing).

Reviewed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Andre Carvalho <asantostc@gmail.com>
Link: https://patch.msgid.link/20260127-netcons-selftest-target-v2-1-f509ab65b3bc@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
12 files changed:
MAINTAINERS
tools/testing/selftests/Makefile
tools/testing/selftests/drivers/net/Makefile
tools/testing/selftests/drivers/net/netconsole/Makefile [new file with mode: 0644]
tools/testing/selftests/drivers/net/netconsole/config [new file with mode: 0644]
tools/testing/selftests/drivers/net/netconsole/netcons_basic.sh [moved from tools/testing/selftests/drivers/net/netcons_basic.sh with 98% similarity]
tools/testing/selftests/drivers/net/netconsole/netcons_cmdline.sh [moved from tools/testing/selftests/drivers/net/netcons_cmdline.sh with 97% similarity]
tools/testing/selftests/drivers/net/netconsole/netcons_fragmented_msg.sh [moved from tools/testing/selftests/drivers/net/netcons_fragmented_msg.sh with 98% similarity]
tools/testing/selftests/drivers/net/netconsole/netcons_overflow.sh [moved from tools/testing/selftests/drivers/net/netcons_overflow.sh with 97% similarity]
tools/testing/selftests/drivers/net/netconsole/netcons_resume.sh [moved from tools/testing/selftests/drivers/net/netcons_resume.sh with 98% similarity]
tools/testing/selftests/drivers/net/netconsole/netcons_sysdata.sh [moved from tools/testing/selftests/drivers/net/netcons_sysdata.sh with 99% similarity]
tools/testing/selftests/drivers/net/netconsole/netcons_torture.sh [moved from tools/testing/selftests/drivers/net/netcons_torture.sh with 98% similarity]