| de94e869 | 18-Feb-2025 |
Jakub Kicinski <[email protected]> |
selftests: drv-net: store addresses in dict indexed by ipver
Looks like more and more tests want to iterate over IP version, run the same test over ipv4 and ipv6. The current naming of members in th
selftests: drv-net: store addresses in dict indexed by ipver
Looks like more and more tests want to iterate over IP version, run the same test over ipv4 and ipv6. The current naming of members in the env class makes it a bit awkward, we have separate members for ipv4 and ipv6 parameters.
Store the parameters inside dicts, so that tests can easily index them with ip version.
Reviewed-by: Willem de Bruijn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
show more ...
|
| 3337064f | 07-Feb-2025 |
Jakub Kicinski <[email protected]> |
selftests: drv-net: add helper for path resolution
Refering to C binaries from Python code is going to be a common need. Add a helper to convert from path in relation to the test. Meaning, if the te
selftests: drv-net: add helper for path resolution
Refering to C binaries from Python code is going to be a common need. Add a helper to convert from path in relation to the test. Meaning, if the test is in the same directory as the binary, the call would be simply: cfg.rpath("binary").
The helper name "rpath" is not great. I can't think of a better name that would be accurate yet concise.
Reviewed-by: Petr Machata <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
show more ...
|
| 7dcb6535 | 08-Jan-2025 |
Breno Leitao <[email protected]> |
netconsole: selftest: Delete all userdata keys
Modify the cleanup function to remove all userdata keys created during the test, instead of just deleting a single predefined key. This ensures a more
netconsole: selftest: Delete all userdata keys
Modify the cleanup function to remove all userdata keys created during the test, instead of just deleting a single predefined key. This ensures a more thorough cleanup of temporary resources.
Move the KEY_PATH variable definition inside the set_user_data function to reduce global variables and improve encapsulation. The KEY_PATH variable is now dynamically created when setting user data.
This change has no effect on the current test, while improving an upcoming test that would create several userdata entries.
Signed-off-by: Breno Leitao <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
show more ...
|
| 61f51cc6 | 08-Jan-2025 |
Breno Leitao <[email protected]> |
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 c
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 <[email protected]> Tested-by: Simon Horman <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
show more ...
|