]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crypto: tests: Introduce CRYPTO_LIB_ENABLE_ALL_FOR_KUNIT
authorEric Biggers <ebiggers@kernel.org>
Sat, 14 Mar 2026 03:59:26 +0000 (20:59 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 19 Mar 2026 17:10:30 +0000 (10:10 -0700)
commited1767442d919f57aaf83d69c33853da2644d902
treeac630a42c4aac8897ea4ebda6c99ef0a1cb3ce66
parent44b02a14d993d91ae36409a54941ac5a5ad20b44
lib/crypto: tests: Introduce CRYPTO_LIB_ENABLE_ALL_FOR_KUNIT

For kunit.py to run all the crypto library tests when passed the
--alltests option, tools/testing/kunit/configs/all_tests.config needs to
enable options that satisfy the test dependencies.

This is the same as what lib/crypto/.kunitconfig already does.
However, the strategy that lib/crypto/.kunitconfig currently uses to
select all the hidden library options isn't going to scale up well when
it needs to be repeated in two places.

Instead let's go ahead and introduce an option
CRYPTO_LIB_ENABLE_ALL_FOR_KUNIT that depends on KUNIT and selects all
the crypto library options that have corresponding KUnit tests.

Update lib/crypto/.kunitconfig to use this option.

Link: https://lore.kernel.org/r/20260314035927.51351-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/.kunitconfig
lib/crypto/tests/Kconfig