On Sat, 24 Jan 2026 at 13:41, Kir Chou <[email protected]> wrote: > > This patch converts the existing prandom selftest (lib/random32.c) to use > the KUnit framework (lib/tests/random32_kunit.c). Unlike typical KUnit > tests, this file is directly #included into lib/random32.c. > > Only the file name "random32_kunit.c" keeps random32, "prandom" is used > for all other places for aligning with the API semantics and avoiding > confusion with the cryptographically secure random.c, > > The new test: > - Removes the legacy CONFIG_RANDOM32_SELFTEST. > - Adds CONFIG_PRANDOM_KUNIT_TEST (defaulting to KUNIT_ALL_TESTS). > - Moves the test logic to lib/tests/random32_kunit.c. > - Updates arch/s390/configs/debug_defconfig to use the new KUnit symbol. > > This commit is verified by `./tools/testing/kunit/kunit.py run` > with the .kunit/.kunitconfig: > > ``` > CONFIG_KUNIT=y > CONFIG_PRANDOM_KUNIT_TEST=y > ``` > > Signed-off-by: Kir Chou <[email protected]> > ---
Looks good to me. Thanks very much! Reviewed-by: David Gow <[email protected]> Cheers, -- David
smime.p7s
Description: S/MIME Cryptographic Signature

