Commit Graph
1 Commits
Author SHA1 Message Date
Ryota Sakamoto 6dcd539f06 lib/tests: convert test_uuid module to KUnit
Move lib/test_uuid.c to lib/tests/uuid_kunit.c and convert it to use KUnit.

This change switches the ad-hoc test code to standard KUnit test cases. 
The test data remains the same, but the verification logic is updated to
use KUNIT_EXPECT_* macros.

Also remove CONFIG_TEST_UUID from arch/*/configs/* because it is no longer
used.  The new CONFIG_UUID_KUNIT_TEST will be automatically enabled by
CONFIG_KUNIT_ALL_TESTS.

[[email protected]: MAINTAINERS: adjust file entry in UUID HELPERS]
  Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ryota Sakamoto <[email protected]>
Signed-off-by: Lukas Bulwahn <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: David Gow <[email protected]>
Cc: Andriy Shevchenko <[email protected]>
Cc: Brendan Higgins <[email protected]>
Cc: Lukas Bulwahn <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2026-01-20 19:44:18 -08:00