test: eth: Add a test for the target being pinged
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 26 Sep 2018 21:49:01 +0000 (16:49 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 10 Oct 2018 17:29:00 +0000 (12:29 -0500)
commit72ff0042585bedab4364afbd7ecc935e48324ade
tree9c4faf29a74ee95a40882b65ea79d79513697797
parent45988dae4cf05f783e40e027c83594a9dc6551cd
test: eth: Add a test for the target being pinged

The target will respond to pings while doing other network handling.
Make sure that the response happens and is correct.

This currently corrupts the ongoing operation of the device if it
happens to be awaiting an ARP reply of its own to whatever serverip it
is attempting to communicate with. In the test, add an expectation that
the user operation (ping, in this case) will fail. A later patch will
address this problem.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/include/asm/eth.h
drivers/net/sandbox.c
test/dm/eth.c