Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: mctp: test: add sock test infrastructure

Add a new test object, for use with the af_mctp socket code. This is
intially empty, but we'll start populating actual tests in an upcoming
change.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://patch.msgid.link/20250702-dev-forwarding-v5-8-1468191da8a4@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Jeremy Kerr and committed by
Paolo Abeni
19396179 80bcf05e

+21 -1
+4
net/mctp/af_mctp.c
··· 775 775 MODULE_AUTHOR("Jeremy Kerr <jk@codeconstruct.com.au>"); 776 776 777 777 MODULE_ALIAS_NETPROTO(PF_MCTP); 778 + 779 + #if IS_ENABLED(CONFIG_MCTP_TEST) 780 + #include "test/sock-test.c" 781 + #endif
+1 -1
net/mctp/test/route-test.c
··· 1204 1204 }; 1205 1205 1206 1206 static struct kunit_suite mctp_test_suite = { 1207 - .name = "mctp", 1207 + .name = "mctp-route", 1208 1208 .test_cases = mctp_test_cases, 1209 1209 }; 1210 1210
+16
net/mctp/test/sock-test.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 2 + 3 + #include <kunit/test.h> 4 + 5 + #include "utils.h" 6 + 7 + static struct kunit_case mctp_test_cases[] = { 8 + {} 9 + }; 10 + 11 + static struct kunit_suite mctp_test_suite = { 12 + .name = "mctp-sock", 13 + .test_cases = mctp_test_cases, 14 + }; 15 + 16 + kunit_test_suite(mctp_test_suite);