summaryrefslogtreecommitdiff
path: root/test/dm
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-08-27 22:25:53 -0700
committerSimon Glass <sjg@chromium.org>2015-09-09 07:48:03 -0600
commit71d7971facdba763c220ca2cfdbd181e907eae89 (patch)
treed06b53cb415a29e51bc381d42dd485ad4b34054c /test/dm
parentd8f79afa030a19e12b8effcae0e8247e271da60e (diff)
downloadu-boot-imx-71d7971facdba763c220ca2cfdbd181e907eae89.zip
u-boot-imx-71d7971facdba763c220ca2cfdbd181e907eae89.tar.gz
u-boot-imx-71d7971facdba763c220ca2cfdbd181e907eae89.tar.bz2
dm: test: Add a new test case for dm_test_eth_rotate
Add one more ethernet device node in the sandbox test device tree, with name 'sbe5'. This is to support a new test case for testing network device rotation. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'test/dm')
-rw-r--r--test/dm/eth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/dm/eth.c b/test/dm/eth.c
index 700abdd..fcfb3e1 100644
--- a/test/dm/eth.c
+++ b/test/dm/eth.c
@@ -106,6 +106,11 @@ static int _dm_test_eth_rotate2(struct unit_test_state *uts)
ut_assertok(net_loop(PING));
ut_asserteq_str("eth@10004000", getenv("ethact"));
+ /* Make sure we can handle device name which is not eth# */
+ setenv("ethact", "sbe5");
+ ut_assertok(net_loop(PING));
+ ut_asserteq_str("sbe5", getenv("ethact"));
+
return 0;
}