Skip to content

MCTP kunit tests

Jeremy Kerr linux-kselftest netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesApplied 5/5
  2. v15 patches 1 replyApplied 5/5

Changes in v2 from the cover letter

- fix MCTP=m, KUNIT={y,m} breakage
- fix mctp test netdev initialisation
- strict route reference count checking

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mctp: Add initial test structure and fragmentation testnet/mctp/Kconfig net/mctp/route.c net/mctp/test/route-test.c+227 -00 repliesApplied
2/5mctp: Add test utilsnet/mctp/Makefile net/mctp/test/utils.c net/mctp/test/utils.h+90 -00 repliesApplied
3/5mctp: Add packet rx testsnet/mctp/test/route-test.c+64 -30 repliesApplied
4/5mctp: Add route input to socket testsnet/mctp/test/route-test.c+132 -00 repliesApplied
5/5mctp: Add input reassembly testsnet/mctp/test/route-test.c+134 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 0/5] MCTP kunit tests

This change adds some initial kunit tests for the MCTP core. We'll expand the coverage in a future series, and augment with a few selftests, but this establishes a baseline set of tests for now.

Thanks to the kunit folks for the framework!

Cheers,

Jeremy

---

v2:
- fix MCTP=m, KUNIT={y,m} breakage
- fix mctp test netdev initialisation
- strict route reference count checking

---

Jeremy Kerr (5):
mctp: Add initial test structure and fragmentation test
mctp: Add test utils
mctp: Add packet rx tests
mctp: Add route input to socket tests
mctp: Add input reassembly tests

 net/mctp/Kconfig           |   5 +
 net/mctp/Makefile          |   3 +
 net/mctp/route.c           |   5 +
 net/mctp/test/route-test.c | 544 +++++++++++++++++++++++++++++++++++++
 net/mctp/test/utils.c      |  67 +++++
 net/mctp/test/utils.h      |  20 ++
 6 files changed, 644 insertions(+)
 create mode 100644 net/mctp/test/route-test.c
 create mode 100644 net/mctp/test/utils.c
 create mode 100644 net/mctp/test/utils.h
Signature · 1 line
2.33.0