]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lib/crypto: tests: Drop the default to CRYPTO_SELFTESTS
authorEric Biggers <ebiggers@kernel.org>
Tue, 17 Mar 2026 04:06:26 +0000 (21:06 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 19 Mar 2026 17:10:30 +0000 (10:10 -0700)
commit6d80749becf8fc5ffa004194e578f79b558235ef
treec6148e6da26b595c7190f2f2382495d8c0b5657e
parent8d547482231fef30d0d6440629b73560ad3e937c
lib/crypto: tests: Drop the default to CRYPTO_SELFTESTS

Defaulting the crypto KUnit tests to KUNIT_ALL_TESTS || CRYPTO_SELFTESTS
instead of simply KUNIT_ALL_TESTS was originally intended to make it
easy to enable all the crypto KUnit tests.  This additional default is
nonstandard for KUnit tests, though, and it can cause all the KUnit
tests to be built-in unexpectedly if CRYPTO_SELFTESTS is set.  It also
constitutes a back-reference to crypto/ from lib/crypto/, which is
something that we should be avoiding in order to get clean layering.

Now that we provide a lib/crypto/.kunitconfig file that enables all
crypto KUnit tests, let's consider that to be the supported way to
enable all these tests, and drop the default of CRYPTO_SELFTESTS.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260317040626.5697-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/tests/Kconfig