]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
unicode: kunit: change tests filename and path
authorGabriela Bittencourt <gbittencourt@lkcamp.dev>
Mon, 2 Dec 2024 07:55:43 +0000 (15:55 +0800)
committerKees Cook <kees@kernel.org>
Wed, 12 Feb 2025 22:00:11 +0000 (14:00 -0800)
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>
fs/unicode/Makefile
fs/unicode/tests/.kunitconfig [moved from fs/unicode/.kunitconfig with 100% similarity]
fs/unicode/tests/utf8_kunit.c [moved from fs/unicode/utf8-selftest.c with 99% similarity]

index 37bbcbc628a1373827224efb394849654b4af793..d95be7fb9f6b71c4c0cbe73606420b48f91eac5e 100644 (file)
@@ -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
 
similarity index 99%
rename from fs/unicode/utf8-selftest.c
rename to fs/unicode/tests/utf8_kunit.c
index 9476ab012baa12149a7c3b2ad3668811760572f3..5063e8138aecad4b609adead63e994ab0847d3c2 100644 (file)
@@ -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. */