]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
command_ut: test: Move test into lib
authorSimon Glass <sjg@chromium.org>
Sat, 2 Nov 2024 19:36:51 +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, since that is where compression is implemented.

Rename it to just 'command', since it is obviously a unit test and the
_ut suffix does not add much except to make it different from the names
of other test files.

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/cmd/Makefile
test/cmd/command.c [moved from test/command_ut.c with 100% similarity]

index ff621344a03660739839d56954d5d682cdfb5349..48d8bc91ae6ac7857d88630d790fcb238ee47c31 100644 (file)
@@ -9,7 +9,6 @@ obj-$(CONFIG_$(XPL_)CMDLINE) += bootm.o
 endif
 obj-$(CONFIG_$(XPL_)CMDLINE) += cmd/
 obj-$(CONFIG_$(XPL_)CMDLINE) += cmd_ut.o
-obj-$(CONFIG_$(XPL_)CMDLINE) += command_ut.o
 obj-y += dm/
 obj-$(CONFIG_FUZZ) += fuzz/
 ifndef CONFIG_SANDBOX_VPL
index fe7a2165af22591da5c6bb5739cb051f5a772f32..6231a08186d076ca1db6548a56b5e1544f21bee3 100644 (file)
@@ -5,6 +5,7 @@
 
 obj-y += cmd_ut_cmd.o
 
+obj-$(CONFIG_$(XPL_)CMDLINE) += command.o
 ifdef CONFIG_HUSH_PARSER
 obj-$(CONFIG_CONSOLE_RECORD) += test_echo.o
 endif
similarity index 100%
rename from test/command_ut.c
rename to test/cmd/command.c