From 0aac10f2f9e59bb0e717de25a2e717f3d387ea60 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 25 Nov 2017 11:57:33 -0700 Subject: 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 [trini: Continue to have ret = run_test_internal(...) in run_test so ret is always initialized] Signed-off-by: Tom Rini --- test/cmd_ut.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/cmd_ut.c') diff --git a/test/cmd_ut.c b/test/cmd_ut.c index d860dd7..6b24f46 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 -- cgit v1.1