]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netconsole: selftest: add task name append testing
authorBreno Leitao <leitao@debian.org>
Fri, 28 Feb 2025 12:50:24 +0000 (04:50 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 4 Mar 2025 14:28:28 +0000 (15:28 +0100)
commitd7a2522426e86036f40fde6ba055aa20de1f3d8a
tree8904af2193e237e503b694b4f7966c00b6a12fd7
parent7010b619830f639bdb930ed1da3766fbb379d5dc
netconsole: selftest: add task name append testing

Add test coverage for the netconsole task name feature to the existing
sysdata selftest script. This extends the test infrastructure to verify
that task names are correctly appended when enabled and absent when
disabled.

The test validates that:
  - Task names appear in the expected format "taskname=<name>"
  - Task names are included when the feature is enabled
  - Task names are excluded when the feature is disabled
  - The feature works correctly alongside other sysdata fields like CPU

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/netcons_sysdata.sh