mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-10 09:55:38 +02:00
Add a new selftest to verify netconsole module loading with command line arguments. This test exercises the init_netconsole() path and validates proper parsing of the netconsole= parameter format. The test: - Loads netconsole module with cmdline configuration instead of dynamic reconfiguration - Validates message transmission through the configured target - Adds helper functions for cmdline string generation and module validation This complements existing netconsole selftests by covering the module initialization code path that processes boot-time parameters. This test is useful to test issues like the one described in [1]. Link: https://lore.kernel.org/netdev/Z36TlACdNMwFD7wv@dev-ushankar.dev.purestorage.com/ [1] Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20250613-rework-v3-8-0752bf2e6912@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
27 lines
468 B
Makefile
27 lines
468 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 := \
|
|
napi_id.py \
|
|
netcons_basic.sh \
|
|
netcons_cmdline.sh \
|
|
netcons_fragmented_msg.sh \
|
|
netcons_overflow.sh \
|
|
netcons_sysdata.sh \
|
|
ping.py \
|
|
queues.py \
|
|
stats.py \
|
|
shaper.py \
|
|
hds.py \
|
|
# end of TEST_PROGS
|
|
|
|
include ../../lib.mk
|