mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
net/handshake: Add Kunit tests for the handshake consumer API
These verify the API contracts and help exercise lifetime rules for consumer sockets and handshake_req structures. One way to run these tests: ./tools/testing/kunit/kunit.py run --kunitconfig ./net/handshake/.kunitconfig Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
2fd5532044
commit
88232ec1ec
15
net/Kconfig
15
net/Kconfig
@@ -73,6 +73,21 @@ config NET_HANDSHAKE
|
||||
depends on SUNRPC || NVME_TARGET_TCP || NVME_TCP
|
||||
default y
|
||||
|
||||
config NET_HANDSHAKE_KUNIT_TEST
|
||||
tristate "KUnit tests for the handshake upcall mechanism" if !KUNIT_ALL_TESTS
|
||||
default KUNIT_ALL_TESTS
|
||||
depends on KUNIT
|
||||
help
|
||||
This builds the KUnit tests for the handshake upcall mechanism.
|
||||
|
||||
KUnit tests run during boot and output the results to the debug
|
||||
log in TAP format (https://testanything.org/). Only useful for
|
||||
kernel devs running KUnit test harness and are not for inclusion
|
||||
into a production build.
|
||||
|
||||
For more information on KUnit and unit tests in general, refer
|
||||
to the KUnit documentation in Documentation/dev-tools/kunit/.
|
||||
|
||||
config INET
|
||||
bool "TCP/IP networking"
|
||||
help
|
||||
|
Reference in New Issue
Block a user