diff options
author | Paolo Abeni <pabeni@redhat.com> | 2020-06-26 19:30:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-27 01:21:39 +0200 |
commit | a00a582203dbc43ea311a50e979038fc0c8ee19f (patch) | |
tree | 53ff33acdbdd92715d16149048d9bff183996432 /net/mptcp/Makefile | |
parent | mptcp: refactor token container (diff) | |
download | linux-a00a582203dbc43ea311a50e979038fc0c8ee19f.tar.xz linux-a00a582203dbc43ea311a50e979038fc0c8ee19f.zip |
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>
Diffstat (limited to 'net/mptcp/Makefile')
-rw-r--r-- | net/mptcp/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mptcp/Makefile b/net/mptcp/Makefile index baa0640527c7..f9039804207b 100644 --- a/net/mptcp/Makefile +++ b/net/mptcp/Makefile @@ -3,3 +3,6 @@ obj-$(CONFIG_MPTCP) += mptcp.o mptcp-y := protocol.o subflow.o options.o token.o crypto.o ctrl.o pm.o diag.o \ mib.o pm_netlink.o + +mptcp_crypto_test-objs := crypto_test.o +obj-$(CONFIG_MPTCP_KUNIT_TESTS) += mptcp_crypto_test.o
\ No newline at end of file |