OSDN Git Service

mptcp: move crypto test to KUNIT
authorPaolo Abeni <pabeni@redhat.com>
Fri, 26 Jun 2020 17:30:01 +0000 (19:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jun 2020 23:21:39 +0000 (16:21 -0700)
commita00a582203dbc43ea311a50e979038fc0c8ee19f
tree53ff33acdbdd92715d16149048d9bff183996432
parent2c5ebd001d4f0c64a2dfda94eb1d9b31a8863c8d
mptcp: move crypto test to KUNIT

currently MPTCP uses a custom hook to executed unit tests at
boot time. Let's use the KUNIT framework instead.
Additionally move the relevant code to a separate file and
export the function needed by the test when self-tests
are build as a module.

Co-developed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/Kconfig
net/mptcp/Makefile
net/mptcp/crypto.c
net/mptcp/crypto_test.c [new file with mode: 0644]