summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-11-02 13:37:01 -0600
committerTom Rini <trini@konsulko.com>2024-11-13 11:56:02 -0600
commit890d91ff3584fcdcf9dc5ff0b516dcd3a5e55108 (patch)
tree1088734075be248dd7747cc91eee823fb4ac57c7
parent5912a9ea1ad25c9278148950f8653a3c1a03043b (diff)
test: Move time_ut test into lib
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
-rw-r--r--test/Makefile1
-rw-r--r--test/lib/Makefile1
-rw-r--r--test/lib/time.c (renamed from test/time_ut.c)0
3 files changed, 1 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index 0b1affcf445..47a07d653a9 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -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),)
diff --git a/test/lib/Makefile b/test/lib/Makefile
index c36c8b0917d..217c3baf881 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_UT_TIME) += time.o
obj-$(CONFIG_$(XPL_)UT_UNICODE) += unicode.o
obj-$(CONFIG_LIB_UUID) += uuid.o
else
diff --git a/test/time_ut.c b/test/lib/time.c
index 149c4b58f4a..149c4b58f4a 100644
--- a/test/time_ut.c
+++ b/test/lib/time.c