aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGabriela Bittencourt <gbittencourt@lkcamp.dev>2024-12-02 15:55:43 +0800
committerKees Cook <kees@kernel.org>2025-02-12 14:00:11 -0800
commit2be6ce9d9bd040780dda8d456fe8696a48d805be (patch)
tree6d681b638f2c0c371505354900111d8e02c5c201
parentunicode: kunit: refactor selftest to kunit tests (diff)
downloadwireguard-linux-2be6ce9d9bd040780dda8d456fe8696a48d805be.tar.xz
wireguard-linux-2be6ce9d9bd040780dda8d456fe8696a48d805be.zip
unicode: kunit: change tests filename and path
Change utf8 kunit test filename and path to follow the style convention on Documentation/dev-tools/kunit/style.rst 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: Shuah Khan <skhan@linuxfoundation.org> Reviewed-by: Rae Moar <rmoar@google.com> Link: https://lore.kernel.org/r/20241202075545.3648096-7-davidgow@google.com Signed-off-by: Kees Cook <kees@kernel.org>
-rw-r--r--fs/unicode/Makefile2
-rw-r--r--fs/unicode/tests/.kunitconfig (renamed from fs/unicode/.kunitconfig)0
-rw-r--r--fs/unicode/tests/utf8_kunit.c (renamed from fs/unicode/utf8-selftest.c)2
3 files changed, 2 insertions, 2 deletions
diff --git a/fs/unicode/Makefile b/fs/unicode/Makefile
index 37bbcbc628a1..d95be7fb9f6b 100644
--- a/fs/unicode/Makefile
+++ b/fs/unicode/Makefile
@@ -4,7 +4,7 @@ ifneq ($(CONFIG_UNICODE),)
obj-y += unicode.o
endif
obj-$(CONFIG_UNICODE) += utf8data.o
-obj-$(CONFIG_UNICODE_NORMALIZATION_KUNIT_TEST) += utf8-selftest.o
+obj-$(CONFIG_UNICODE_NORMALIZATION_KUNIT_TEST) += tests/utf8_kunit.o
unicode-y := utf8-norm.o utf8-core.o
diff --git a/fs/unicode/.kunitconfig b/fs/unicode/tests/.kunitconfig
index 62dd5c171f9c..62dd5c171f9c 100644
--- a/fs/unicode/.kunitconfig
+++ b/fs/unicode/tests/.kunitconfig
diff --git a/fs/unicode/utf8-selftest.c b/fs/unicode/tests/utf8_kunit.c
index 9476ab012baa..5063e8138aec 100644
--- a/fs/unicode/utf8-selftest.c
+++ b/fs/unicode/tests/utf8_kunit.c
@@ -8,7 +8,7 @@
#include <linux/unicode.h>
#include <kunit/test.h>
-#include "utf8n.h"
+#include "../utf8n.h"
static const struct {
/* UTF-8 strings in this vector _must_ be NULL-terminated. */