netconsole: selftest: Split the helpers from the selftest
authorBreno Leitao <leitao@debian.org>
Wed, 8 Jan 2025 11:50:26 +0000 (03:50 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jan 2025 02:06:36 +0000 (18:06 -0800)
commit61f51cc6defeb0faad1f60f1dbc41613e93f31da
tree8ad3f66d163e3cf65f9e3b2bd9ac51b271203a3a
parente51c7478d23bb484d414fc036cd1ff57afe31b67
netconsole: selftest: Split the helpers from the selftest

Split helper functions from the netconsole basic test into a separate
library file to enable reuse across different netconsole tests. This
change only moves the existing helper functions to lib/sh/lib_netcons.sh
while preserving the same test functionality.

The helpers provide common functions for:
- Setting up network namespaces and interfaces
- Managing netconsole dynamic targets
- Setting user data
- Handling test dependencies
- Cleanup operations

Do not make any change in the code, other than the mechanical
separation.

Signed-off-by: Breno Leitao <leitao@debian.org>
Tested-by: Simon Horman <horms@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250108-netcons_overflow_test-v3-2-3d85eb091bec@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
MAINTAINERS
tools/testing/selftests/drivers/net/Makefile
tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh [new file with mode: 0644]
tools/testing/selftests/drivers/net/netcons_basic.sh