mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01: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 <[email protected]> Signed-off-by: Pedro Orlando <[email protected]> Co-developed-by: Danilo Pereira <[email protected]> Signed-off-by: Danilo Pereira <[email protected]> Signed-off-by: Gabriela Bittencourt <[email protected]> Reviewed-by: David Gow <[email protected]> Acked-by: Gabriel Krisman Bertazi <[email protected]> Reviewed-by: Rae Moar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
17 lines
520 B
Plaintext
17 lines
520 B
Plaintext
# 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
|