aboutsummaryrefslogtreecommitdiffstats
path: root/net/mctp/test/utils.h
Commit message (Collapse)AuthorAgeFilesLines
* net: mctp: Add bind lookup testMatt Johnston2025-07-151-0/+3
| | | | | | | | | | Test the preference order of bound socket matches with a series of test packets. Signed-off-by: Matt Johnston <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
* net: mctp: Test conflicts of connect() with bind()Matt Johnston2025-07-151-0/+4
| | | | | | | | | The addition of connect() adds new conflict cases to test. Signed-off-by: Matt Johnston <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
* net: mctp: Add test for conflicting bind()sMatt Johnston2025-07-151-0/+10
| | | | | | | | | Test pairwise combinations of bind addresses and types. Signed-off-by: Matt Johnston <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
* net: mctp: test: Add tests for gateway routesJeremy Kerr2025-07-081-4/+9
| | | | | | | | | | | Add a few kunit tests for the gateway routing. Because we have multiple route types now (direct and gateway), rename mctp_test_create_route to mctp_test_create_route_direct, and add a _gateway variant too. Signed-off-by: Jeremy Kerr <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
* net: mctp: test: move functions into utils.[ch]Jeremy Kerr2025-07-081-0/+32
| | | | | | | | | | A future change will add another mctp test .c file, so move some of the common test setup from route.c into the utils object. Signed-off-by: Jeremy Kerr <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
* net: mctp: test: Add an addressed device constructorJeremy Kerr2025-07-081-0/+7
| | | | | | | | | | | Upcoming tests will check semantics of hardware addressing, which require a dev with ->addr_len != 0. Add a constructor to create a MCTP interface using a physically-addressed bus type. Signed-off-by: Jeremy Kerr <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
* mctp: Add test utilsJeremy Kerr2021-10-031-0/+20
| | | | | | | Add a new object for shared test utilities Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: David S. Miller <[email protected]>
* Revert "Merge branch 'mctp-kunit-tests'"David S. Miller2021-10-011-20/+0
| | | | | | | | | This reverts commit 4f42ad2011d2fcbd89f5cdf56121271a8cd5ee5d, reversing changes made to ea2dd331bfaaeba74ba31facf437c29044f7d4cb. These chanfges break the build when mctp is modular. Signed-off-by: David S. Miller <[email protected]>
* mctp: Add test utilsJeremy Kerr2021-10-011-0/+20
Add a new object for shared test utilities Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: David S. Miller <[email protected]>