]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: Move time_ut test into lib
authorSimon Glass <sjg@chromium.org>
Sat, 2 Nov 2024 19:37:01 +0000 (13:37 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 13 Nov 2024 17:56:02 +0000 (11:56 -0600)
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>
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/time.c [moved from test/time_ut.c with 100% similarity]

index 0b1affcf445515237ee0788bee744892f47101f3..47a07d653a9d9a200223524a422e998805fcb61a 100644 (file)
@@ -14,7 +14,6 @@ endif
 ifneq ($(CONFIG_HUSH_PARSER),)
 obj-$(CONFIG_$(XPL_)CMDLINE) += hush/
 endif
-obj-$(CONFIG_UT_TIME) += time_ut.o
 obj-y += ut.o
 
 ifeq ($(CONFIG_XPL_BUILD),)
index c36c8b0917d4185a9faf90963ff133efd2fb65e6..217c3baf88142d20a4951799bd32a7a8c9553e05 100644 (file)
@@ -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_UT_TIME) += time.o
 obj-$(CONFIG_$(XPL_)UT_UNICODE) += unicode.o
 obj-$(CONFIG_LIB_UUID) += uuid.o
 else
similarity index 100%
rename from test/time_ut.c
rename to test/lib/time.c