Re: [PATCH] lib/tests: Make RANDSTRUCT_KUNIT_TEST depend on RANDSTRUCT
From: Kees Cook
Date: Mon Jun 02 2025 - 14:09:04 EST
On Mon, Jun 02, 2025 at 04:49:51PM +0200, Geert Uytterhoeven wrote:
> When CONFIG_RANDSTRUCT is not enabled, all randstruct tests are skipped.
> Move this logic from run-time to config-time, to avoid people building
> and running tests that do not do anything.
I don't like doing this because it means that looking at CI output means
I can't tell if the test was not built or if the config was not
included. I want to always have the test available, but skip the test if
the config is missing.
-Kees
--
Kees Cook