Skip to content
Commit 62b9ef50 authored by Gabriela Bittencourt's avatar Gabriela Bittencourt Committed by Kees Cook
Browse files

unicode: kunit: refactor selftest to kunit tests



Refactoring 'test' functions into kunit tests, to test utf-8 support in
unicode subsystem.

This allows the utf8 tests to be run alongside the KUnit test suite
using kunit-tool, quickly compiling and running all desired tests as
part of the KUnit test suite, instead of compiling the selftest module
and loading it.

The refactoring kept the original testing logic intact, while adopting a
testing pattern across different kernel modules and leveraging KUnit's
benefits.

Co-developed-by: default avatarPedro Orlando <porlando@lkcamp.dev>
Signed-off-by: default avatarPedro Orlando <porlando@lkcamp.dev>
Co-developed-by: default avatarDanilo Pereira <dpereira@lkcamp.dev>
Signed-off-by: default avatarDanilo Pereira <dpereira@lkcamp.dev>
Signed-off-by: default avatarGabriela Bittencourt <gbittencourt@lkcamp.dev>
Reviewed-by: default avatarDavid Gow <davidgow@google.com>
Acked-by: default avatarGabriel Krisman Bertazi <krisman@suse.de>
Reviewed-by: default avatarRae Moar <rmoar@google.com>
Link: https://lore.kernel.org/r/20241202075545.3648096-6-davidgow@google.com


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent 4d557cb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment