* [PATCH] lib: Ensure prime numbers tests are included in KUnit test runs
@ 2025-04-22 15:43 Mark Brown
2025-04-22 15:48 ` Kees Cook
2025-04-22 18:18 ` Geert Uytterhoeven
0 siblings, 2 replies; 3+ messages in thread
From: Mark Brown @ 2025-04-22 15:43 UTC (permalink / raw)
To: Brendan Higgins, David Gow, Rae Moar, Tamir Duberstein,
Kees Cook, Geert Uytterhoeven
Cc: linux-kselftest, kunit-dev, linux-kernel, Mark Brown
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>
---
tools/testing/kunit/configs/all_tests.config | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/kunit/configs/all_tests.config b/tools/testing/kunit/configs/all_tests.config
index cdd9782f9646..7bb885b0c32d 100644
--- a/tools/testing/kunit/configs/all_tests.config
+++ b/tools/testing/kunit/configs/all_tests.config
@@ -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
---
base-commit: 9c32cda43eb78f78c73aee4aa344b777714e259b
change-id: 20250422-lib-fix-prime-numbers-kunit-323659c2cfe2
Best regards,
--
Mark Brown <broonie@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] lib: Ensure prime numbers tests are included in KUnit test runs
2025-04-22 15:43 [PATCH] lib: Ensure prime numbers tests are included in KUnit test runs Mark Brown
@ 2025-04-22 15:48 ` Kees Cook
2025-04-22 18:18 ` Geert Uytterhoeven
1 sibling, 0 replies; 3+ messages in thread
From: Kees Cook @ 2025-04-22 15:48 UTC (permalink / raw)
To: Brendan Higgins, David Gow, Rae Moar, Tamir Duberstein,
Geert Uytterhoeven, Mark Brown
Cc: Kees Cook, linux-kselftest, kunit-dev, linux-kernel
On Tue, 22 Apr 2025 16:43:29 +0100, Mark Brown wrote:
> 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.
>
>
> [...]
Applied to for-linus/hardening, thanks!
[1/1] lib: Ensure prime numbers tests are included in KUnit test runs
https://git.kernel.org/kees/c/4ea404fdbc39
Take care,
--
Kees Cook
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] lib: Ensure prime numbers tests are included in KUnit test runs
2025-04-22 15:43 [PATCH] lib: Ensure prime numbers tests are included in KUnit test runs Mark Brown
2025-04-22 15:48 ` Kees Cook
@ 2025-04-22 18:18 ` Geert Uytterhoeven
1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2025-04-22 18:18 UTC (permalink / raw)
To: Mark Brown
Cc: Brendan Higgins, David Gow, Rae Moar, Tamir Duberstein,
Kees Cook, linux-kselftest, kunit-dev, linux-kernel
Hi Mark,
Thanks for your patch!
On Tue, 22 Apr 2025 at 17:43, Mark Brown <broonie@kernel.org> wrote:
> 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")
Sorry, I wasn't aware there was yet another config file that needed
an update...
> Signed-off-by: Mark Brown <broonie@kernel.org>
> --- a/tools/testing/kunit/configs/all_tests.config
> +++ b/tools/testing/kunit/configs/all_tests.config
Given this is the sole file that contains CONFIG_REGMAP_BUILD=y,
it must be the right one ;-)
> @@ -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
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-22 18:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-22 15:43 [PATCH] lib: Ensure prime numbers tests are included in KUnit test runs Mark Brown
2025-04-22 15:48 ` Kees Cook
2025-04-22 18:18 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®