mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-13 21:36:57 +00:00
test: bdinfo: Test bdinfo -e
The bdinfo -e should print only the board ethernet settings. Test the expected output. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
parent
2696f3ab81
commit
3ff2d796a6
1 changed files with 14 additions and 0 deletions
|
@ -263,6 +263,20 @@ static int bdinfo_test_memory(struct unit_test_state *uts)
|
|||
|
||||
BDINFO_TEST(bdinfo_test_memory, UT_TESTF_CONSOLE_REC);
|
||||
|
||||
static int bdinfo_test_eth(struct unit_test_state *uts)
|
||||
{
|
||||
/* Test BDINFO ethernet settings only print */
|
||||
ut_assertok(console_record_reset_enable());
|
||||
ut_assertok(run_commandf("bdinfo -e"));
|
||||
if (IS_ENABLED(CONFIG_CMD_NET))
|
||||
ut_assertok(test_eth(uts));
|
||||
ut_assertok(ut_check_console_end(uts));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
BDINFO_TEST(bdinfo_test_eth, UT_TESTF_CONSOLE_REC);
|
||||
|
||||
int do_ut_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
struct unit_test *tests = UNIT_TEST_SUITE_START(bdinfo_test);
|
||||
|
|
Loading…
Add table
Reference in a new issue