diff mbox series

[v2,14/20] test: Move unicode_ut test into lib

Message ID 20241102193715.432529-15-sjg@chromium.org
State New
Delegated to: Tom Rini
Headers show
Series test: Tidy up the test/ directory | expand

Commit Message

Simon Glass Nov. 2, 2024, 7:36 p.m. UTC
This test doesn't belong at the top level. Move it into the lib/
directory, to match its implementation. Rename it to drop the
unnecessary _ut suffix.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 test/Makefile                        | 1 -
 test/lib/Makefile                    | 1 +
 test/{unicode_ut.c => lib/unicode.c} | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename test/{unicode_ut.c => lib/unicode.c} (100%)

Comments

Heinrich Schuchardt Nov. 3, 2024, 9:38 a.m. UTC | #1
On 11/2/24 20:36, Simon Glass wrote:
> This test doesn't belong at the top level. Move it into the lib/
> directory, to match its implementation. Rename it to drop the
> unnecessary _ut suffix.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
diff mbox series

Patch

diff --git a/test/Makefile b/test/Makefile
index 220a249c397..0b1affcf445 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -21,7 +21,6 @@  ifeq ($(CONFIG_XPL_BUILD),)
 obj-y += boot/
 obj-$(CONFIG_UNIT_TEST) += common/
 obj-y += log/
-obj-$(CONFIG_$(XPL_)UT_UNICODE) += unicode_ut.o
 else
 obj-$(CONFIG_SPL_UT_LOAD) += image/
 endif
diff --git a/test/lib/Makefile b/test/lib/Makefile
index be20bbc047f..c36c8b0917d 100644
--- a/test/lib/Makefile
+++ b/test/lib/Makefile
@@ -27,6 +27,7 @@  obj-$(CONFIG_AES) += test_aes.o
 obj-$(CONFIG_GETOPT) += getopt.o
 obj-$(CONFIG_CRC8) += test_crc8.o
 obj-$(CONFIG_UT_LIB_CRYPT) += test_crypt.o
+obj-$(CONFIG_$(XPL_)UT_UNICODE) += unicode.o
 obj-$(CONFIG_LIB_UUID) += uuid.o
 else
 obj-$(CONFIG_SANDBOX) += kconfig_spl.o
diff --git a/test/unicode_ut.c b/test/lib/unicode.c
similarity index 100%
rename from test/unicode_ut.c
rename to test/lib/unicode.c