mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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: Pedro Orlando <porlando@lkcamp.dev> Signed-off-by: Pedro Orlando <porlando@lkcamp.dev> Co-developed-by: Danilo Pereira <dpereira@lkcamp.dev> Signed-off-by: Danilo Pereira <dpereira@lkcamp.dev> Signed-off-by: Gabriela Bittencourt <gbittencourt@lkcamp.dev> Reviewed-by: David Gow <davidgow@google.com> Acked-by: Gabriel Krisman Bertazi <krisman@suse.de> Reviewed-by: Rae Moar <rmoar@google.com> Link: https://lore.kernel.org/r/20241202075545.3648096-6-davidgow@google.com Signed-off-by: Kees Cook <kees@kernel.org>
16 lines
520 B
Text
16 lines
520 B
Text
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# UTF-8 normalization
|
|
#
|
|
config UNICODE
|
|
tristate "UTF-8 normalization and casefolding support"
|
|
help
|
|
Say Y here to enable UTF-8 NFD normalization and NFD+CF casefolding
|
|
support. If you say M here the large table of case foldings will
|
|
be a separate loadable module that gets requested only when a file
|
|
system actually use it.
|
|
|
|
config UNICODE_NORMALIZATION_KUNIT_TEST
|
|
tristate "Test UTF-8 normalization support"
|
|
depends on UNICODE && KUNIT
|
|
default KUNIT_ALL_TESTS
|