Add YNL test framework and library improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 6 repliesIn review 2 of 3 applied
- v43 patches 5 repliesSuperseded
- v33 patches 11 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 3 patches | 6 replies | Superseded | |
| v1 | 3 patches | 19 replies | Superseded |
Patches in v5 2 of 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tools: ynl: Add MAC address parsing supporttools/ | +9 | 0 replies | Applied |
| 2/3 | netlink: specs: support ipv4-or-v6 for dual-stack fieldsDocumentation/ Documentation/ Documentation/ +5 more | +23 | 0 replies | Applied |
| 3/3 | tools: ynl: add YNL test frameworktools/ tools/ tools/ +2 more | +593 | 6 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Donald Hunter | Asbjørn Sloth Tønnesen | Matthieu Baerts (NGI0) |
|---|---|---|---|
| 1/3 | R-b | ||
| 2/3 | R-b | R-b | |
| 3/3 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCHv5 net-next 0/3] Add YNL test framework and library improvements
This series enhances YNL tools with some functionalities and adds YNL test framework.
Changes include:
- Add MAC address parsing support in YNL library
- Support ipv4-or-v6 display hint for dual-stack fields
- Add tests covering CLI and ethtool functionality
The tests provide usage examples and regression testing for YNL tools.
# make run_tests TAP version 13 1..9 ok 1 YNL CLI list families ok 2 YNL CLI netdev operations ok 3 YNL CLI ethtool operations ok 4 YNL CLI rt-route operations ok 5 YNL CLI rt-addr operations ok 6 YNL CLI rt-link operations ok 7 YNL CLI rt-neigh operations ok 8 YNL CLI rt-rule operations ok 9 YNL CLI nlctrl getfamily # Totals: pass:9 fail:0 xfail:0 xpass:0 skip:0 error:0 TAP version 13 1..8 ok 1 YNL ethtool device info ok 2 YNL ethtool statistics ok 3 YNL ethtool ring parameters (show/set) ok 4 YNL ethtool coalesce parameters (show/set) ok 5 YNL ethtool pause parameters (show/set) ok 6 YNL ethtool features info (show/set) ok 7 YNL ethtool channels info (show/set) ok 8 YNL ethtool time stamping # Totals: pass:8 fail:0 xfail:0 xpass:0 skip:0 error:0
v5: add a comment about why disable shellcheck (Matthieu Baerts)
move ktap_set_plan after setup (Matthieu Baerts) Use TESTS_NO to track the test number (Matthieu Baerts)
v4: Use KTAP helper to report the test result (Matthieu Baerts)
iterate through $(TESTS) instead of being hard coded (Donald Hunter)
Link: https://lore.kernel.org/netdev/[email protected]v3: add make run_tests to run all the tests at a time (Jakub Kicinski)
use ipv4-or-v6 display hint for dual-stack fields (Jakub Kicinski) check sysfs in case of netdevsim buildin (Sabrina Dubroca)
v2: move test from selftest to ynl folder (Jakub Kicinski)
Link: https://lore.kernel.org/netdev/[email protected]
v1: Link: https://lore.kernel.org/netdev/[email protected]
Hangbin Liu (3):
tools: ynl: Add MAC address parsing support
netlink: specs: support ipv4-or-v6 for dual-stack fields
tools: ynl: add YNL test framework
Documentation/netlink/genetlink-c.yaml | 2 +- Documentation/netlink/genetlink.yaml | 2 +- Documentation/netlink/netlink-raw.yaml | 2 +- Documentation/netlink/specs/rt-addr.yaml | 6 +- Documentation/netlink/specs/rt-link.yaml | 16 +- Documentation/netlink/specs/rt-neigh.yaml | 2 +- Documentation/netlink/specs/rt-route.yaml | 8 +- Documentation/netlink/specs/rt-rule.yaml | 6 +- tools/net/ynl/Makefile | 8 +- tools/net/ynl/pyynl/lib/ynl.py | 9 + tools/net/ynl/tests/Makefile | 32 +++ tools/net/ynl/tests/config | 6 + tools/net/ynl/tests/test_ynl_cli.sh | 327 ++++++++++++++++++++++ tools/net/ynl/tests/test_ynl_ethtool.sh | 222 +++++++++++++++ 14 files changed, 625 insertions(+), 23 deletions(-) create mode 100644 tools/net/ynl/tests/Makefile create mode 100644 tools/net/ynl/tests/config create mode 100755 tools/net/ynl/tests/test_ynl_cli.sh create mode 100755 tools/net/ynl/tests/test_ynl_ethtool.sh
Signature · 1 line
2.50.1