mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
test: provide unit test for memory functions
Memory functions may have architecture specific implementations. These should be tested. Provide unit tests for memset(), memcpy(), memmove(). Provide a 'ut lib' sub-command to execute the tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Tom Rini
parent
eca61ae70c
commit
2dd0111adc
@@ -46,6 +46,9 @@ static cmd_tbl_t cmd_ut_sub[] = {
|
||||
#ifdef CONFIG_UT_OVERLAY
|
||||
U_BOOT_CMD_MKENT(overlay, CONFIG_SYS_MAXARGS, 1, do_ut_overlay, "", ""),
|
||||
#endif
|
||||
#ifdef CONFIG_UT_LIB
|
||||
U_BOOT_CMD_MKENT(lib, CONFIG_SYS_MAXARGS, 1, do_ut_lib, "", ""),
|
||||
#endif
|
||||
#ifdef CONFIG_UT_TIME
|
||||
U_BOOT_CMD_MKENT(time, CONFIG_SYS_MAXARGS, 1, do_ut_time, "", ""),
|
||||
#endif
|
||||
@@ -108,6 +111,9 @@ static char ut_help_text[] =
|
||||
#ifdef CONFIG_UT_ENV
|
||||
"ut env [test-name]\n"
|
||||
#endif
|
||||
#ifdef CONFIG_UT_LIB
|
||||
"ut lib [test-name] - test library functions\n"
|
||||
#endif
|
||||
#ifdef CONFIG_UT_OVERLAY
|
||||
"ut overlay [test-name]\n"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user