]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: Move str_ut test into lib
authorSimon Glass <sjg@chromium.org>
Sat, 2 Nov 2024 19:36:57 +0000 (13:36 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 13 Nov 2024 17:56:01 +0000 (11:56 -0600)
This test doesn't belong at the top level. Move it into the lib/
directory, to match (most of) its implementation. Rename it to drop the
unnecessary _ut suffix.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Tom Rini <trini@konsulko.com> # rpi_3, rpi_4, rpi_arm64, am64x_evm_a53, am64-sk
test/Makefile
test/lib/Makefile
test/lib/str.c [moved from test/str_ut.c with 100% similarity]

index 9f19bfa472b846e1ec12189af124cccb9ee4cc10..220a249c39745438460b448de91b871a2f520f80 100644 (file)
@@ -14,7 +14,6 @@ endif
 ifneq ($(CONFIG_HUSH_PARSER),)
 obj-$(CONFIG_$(XPL_)CMDLINE) += hush/
 endif
-obj-$(CONFIG_$(XPL_)CMDLINE) += str_ut.o
 obj-$(CONFIG_UT_TIME) += time_ut.o
 obj-y += ut.o
 
index ce22780eed8e739ff8aadbda2958e9f7a8453c33..be20bbc047f77855010eb96b5819d849737979a8 100644 (file)
@@ -17,6 +17,7 @@ obj-y += lmb.o
 obj-y += longjmp.o
 obj-$(CONFIG_CONSOLE_RECORD) += test_print.o
 obj-$(CONFIG_SSCANF) += sscanf.o
+obj-$(CONFIG_$(XPL_)CMDLINE) += str.o
 obj-y += string.o
 obj-y += strlcat.o
 obj-$(CONFIG_ERRNO_STR) += test_errno_str.o
similarity index 100%
rename from test/str_ut.c
rename to test/lib/str.c