]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
lib: Ensure prime numbers tests are included in KUnit test runs
authorMark Brown <broonie@kernel.org>
Tue, 22 Apr 2025 15:43:29 +0000 (16:43 +0100)
committerKees Cook <kees@kernel.org>
Tue, 22 Apr 2025 15:48:10 +0000 (08:48 -0700)
When the select of PRIME_MUMBERS was removed from it's KUnit test
Kconfig nothing was added to the KUnit configs, meaning that when run
via the KUnit runner the tests are neither built nor run.  Add
PRIME_NUMBERS to all_tests.config so they are enabled when the KUnit
runner builds the kernel.

Fixes: 3f2925174f8b ("lib/prime_numbers: KUnit test should not select PRIME_NUMBERS")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250422-lib-fix-prime-numbers-kunit-v1-1-4278c1d4a4ae@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
tools/testing/kunit/configs/all_tests.config

index cdd9782f9646ae340118102e35fe756a2d8a5673..7bb885b0c32d40fc94443de8b3310a97edfe2919 100644 (file)
@@ -43,6 +43,8 @@ CONFIG_REGMAP_BUILD=y
 
 CONFIG_AUDIT=y
 
+CONFIG_PRIME_NUMBERS=y
+
 CONFIG_SECURITY=y
 CONFIG_SECURITY_APPARMOR=y
 CONFIG_SECURITY_LANDLOCK=y