diff options
author | Simon Glass <sjg@chromium.org> | 2020-04-08 08:32:55 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-24 16:40:09 -0400 |
commit | 4f04d54981cd9d641e4ca958c551aeb00ee55484 (patch) | |
tree | 80fc0710b6b0ec9f3b58255398c9782743805cb2 /test/cmd_ut.c | |
parent | 4b4858936fadd61a1696cb5408ab81330ddb5c14 (diff) |
test: Add the beginnings of some string tests
There are quite a few string functions in U-Boot with no tests. Make a
start by adding a test for strtoul().
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/cmd_ut.c')
-rw-r--r-- | test/cmd_ut.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 7fdcdbb1a6..bd20a69c55 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -74,6 +74,8 @@ static cmd_tbl_t cmd_ut_sub[] = { "", ""), U_BOOT_CMD_MKENT(bloblist, CONFIG_SYS_MAXARGS, 1, do_ut_bloblist, "", ""), + U_BOOT_CMD_MKENT(str, CONFIG_SYS_MAXARGS, 1, do_ut_str, + "", ""), #endif }; @@ -137,6 +139,9 @@ static char ut_help_text[] = #ifdef CONFIG_UT_OVERLAY "ut overlay [test-name]\n" #endif +#ifdef CONFIG_SANDBOX + "ut str - Basic test of string functions\n" +#endif #ifdef CONFIG_UT_TIME "ut time - Very basic test of time functions\n" #endif |