diff options
author | Simon Glass <sjg@chromium.org> | 2017-11-25 21:57:33 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-12-04 17:58:20 +0300 |
commit | 0aac10f2f9e59bb0e717de25a2e717f3d387ea60 (patch) | |
tree | 3c47d0a2dc23cf15d186c3d866e9f4a3f1a4ca0f /test/cmd_ut.c | |
parent | 1f0fe88db11ebf99f860504bf4132fb97740504c (diff) | |
download | u-boot-0aac10f2f9e59bb0e717de25a2e717f3d387ea60.tar.xz |
test: compression: Convert to unit test framework
Adjust this test to use the unit test framework. Drop the two existing
commands for running the tests and replace them with a single
'ut compression' command, with sub-commands.
Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Continue to have ret = run_test_internal(...) in run_test so ret
is always initialized]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'test/cmd_ut.c')
-rw-r--r-- | test/cmd_ut.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/cmd_ut.c b/test/cmd_ut.c index d860dd72f0..6b24f463f3 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -50,6 +50,10 @@ static cmd_tbl_t cmd_ut_sub[] = { #ifdef CONFIG_UT_TIME U_BOOT_CMD_MKENT(time, CONFIG_SYS_MAXARGS, 1, do_ut_time, "", ""), #endif +#ifdef CONFIG_SANDBOX + U_BOOT_CMD_MKENT(compression, CONFIG_SYS_MAXARGS, 1, do_ut_compression, + "", ""), +#endif }; static int do_ut_all(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) @@ -102,6 +106,9 @@ static char ut_help_text[] = #ifdef CONFIG_UT_TIME "ut time - Very basic test of time functions\n" #endif +#ifdef CONFIG_SANDBOX + "ut compression - Test compressors and bootm decompression\n" +#endif ; #endif |