diff options
author | Tom Rini | 2023-10-16 10:25:11 -0400 |
---|---|---|
committer | Tom Rini | 2023-10-16 14:26:00 -0400 |
commit | e0caea4f9c15d44f871218b3d19e99e3ccd6d1f5 (patch) | |
tree | 14a8802b57ad0da442ac9c0aba7059f2e46ffdf8 /test | |
parent | 2e1577e8360d8e467bf28009f6763a2ac511f743 (diff) | |
parent | 1b377a9ffeb5bf5716f75d6f52bc3fe6a00adc8c (diff) |
Merge branch '2023-10-16-assorted-cmd-updates'
- Update the mac command a bit, to be more widely useful and add a
helper macro to declare CONFIG_SYS_LONGHELP text
Diffstat (limited to 'test')
-rw-r--r-- | test/cmd_ut.c | 6 | ||||
-rw-r--r-- | test/fuzz/cmd_fuzz.c | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 0f56409e803..477d4759521 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -166,8 +166,7 @@ static int do_ut(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) return CMD_RET_USAGE; } -#ifdef CONFIG_SYS_LONGHELP -static char ut_help_text[] = +U_BOOT_LONGHELP(ut, "[-r] [-f] [<suite>] - run unit tests\n" " -r<runs> Number of times to run each test\n" " -f Force 'manual' tests to run as well\n" @@ -237,8 +236,7 @@ static char ut_help_text[] = !defined(CONFIG_SPL_BUILD) && !defined(API_BUILD) "\nunicode - Unicode functions" #endif - ; -#endif /* CONFIG_SYS_LONGHELP */ + ); U_BOOT_CMD( ut, CONFIG_SYS_MAXARGS, 1, do_ut, diff --git a/test/fuzz/cmd_fuzz.c b/test/fuzz/cmd_fuzz.c index e2f44f3ecb6..d0bc7b8d7b7 100644 --- a/test/fuzz/cmd_fuzz.c +++ b/test/fuzz/cmd_fuzz.c @@ -70,11 +70,8 @@ static int do_fuzz(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[] return 1; } -#ifdef CONFIG_SYS_LONGHELP -static char fuzz_help_text[] = - "[fuzz-test-name] - execute the named fuzz test\n" - ; -#endif /* CONFIG_SYS_LONGHELP */ +U_BOOT_LONGHELP(fuzz, + "[fuzz-test-name] - execute the named fuzz test\n"); U_BOOT_CMD( fuzz, CONFIG_SYS_MAXARGS, 1, do_fuzz, |