summaryrefslogtreecommitdiffstats
path: root/test/cmd_ut.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-05-20 14:27:30 -0500
committerTom Rini <trini@konsulko.com>2015-05-21 09:16:17 -0400
commitc812f722f8bdf2785cfebf4fd272afe2117d6469 (patch)
tree97b5cdb8f918817b4011e5d7c6e04cf5f3d913dd /test/cmd_ut.c
parent40441e0bd34425994c6feb7a3e78fa84b23d7244 (diff)
downloadtalos-obmc-uboot-c812f722f8bdf2785cfebf4fd272afe2117d6469.tar.gz
talos-obmc-uboot-c812f722f8bdf2785cfebf4fd272afe2117d6469.zip
test: dm: Move the time test over to the ut command
Unify the command for running unit tests further by moving the "ut_time" command over to "ut time". Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'test/cmd_ut.c')
-rw-r--r--test/cmd_ut.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index 08001cdbc0..a65bfeaf31 100644
--- a/test/cmd_ut.c
+++ b/test/cmd_ut.c
@@ -16,6 +16,9 @@ static cmd_tbl_t cmd_ut_sub[] = {
#if defined(CONFIG_UT_DM)
U_BOOT_CMD_MKENT(dm, CONFIG_SYS_MAXARGS, 1, do_ut_dm, "", ""),
#endif
+#ifdef CONFIG_UT_TIME
+ U_BOOT_CMD_MKENT(time, CONFIG_SYS_MAXARGS, 1, do_ut_time, "", ""),
+#endif
};
static int do_ut_all(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
@@ -59,6 +62,9 @@ static char ut_help_text[] =
#ifdef CONFIG_UT_DM
"ut dm [test-name]\n"
#endif
+#ifdef CONFIG_UT_TIME
+ "ut time - Very basic test of time functions\n"
+#endif
;
#endif
OpenPOWER on IntegriCloud