Skip to content

Commit 7ac21b4

Browse files
author
Eric Biggers
committed
lib: Move crypto library tests to Runtime Testing menu
Currently the kconfig options for the crypto library KUnit tests appear in the menu: -> Library routines -> Crypto library routines However, this is the only content of "Crypto library routines". I.e., it is empty when CONFIG_KUNIT=n. This is because the crypto library routines themselves don't have (or need to have) prompts. Since this usually ends up as an unnecessary empty menu, let's remove this menu and instead source the lib/crypto/tests/Kconfig file from lib/Kconfig.debug inside the "Runtime Testing" menu: -> Kernel hacking -> Kernel Testing and Coverage -> Runtime Testing This puts the prompts alongside the ones for most of the other lib/ KUnit tests. This seems to be a much better match to how the kconfig menus are organized. Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Link: https://lore.kernel.org/r/20260322032438.286296-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
1 parent e37f285 commit 7ac21b4

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

lib/Kconfig.debug

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3058,6 +3058,8 @@ config HW_BREAKPOINT_KUNIT_TEST
30583058

30593059
If unsure, say N.
30603060

3061+
source "lib/crypto/tests/Kconfig"
3062+
30613063
config SIPHASH_KUNIT_TEST
30623064
tristate "Perform selftest on siphash functions" if !KUNIT_ALL_TESTS
30633065
depends on KUNIT

lib/crypto/Kconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3-
menu "Crypto library routines"
4-
53
config CRYPTO_HASH_INFO
64
bool
75

@@ -283,7 +281,3 @@ config CRYPTO_LIB_SM3_ARCH
283281
default y if RISCV && 64BIT && TOOLCHAIN_HAS_VECTOR_CRYPTO && \
284282
RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS
285283
default y if X86_64
286-
287-
source "lib/crypto/tests/Kconfig"
288-
289-
endmenu

0 commit comments

Comments
 (0)