aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Mitrofanov <v.v.mitrofanov@yadro.com>2022-09-08 14:59:05 +0300
committerTom Rini <trini@konsulko.com>2022-11-28 09:54:43 -0500
commit5309a7aa976a1dd5c1a6a99736ea0f6ccdc0ead4 (patch)
treea7ca91a06db25b68cc08e08c653bc96fc95be128
parentbb097fc43b85c49dd504c7b31917beb936bd0864 (diff)
downloadu-boot-RFC/v4-ipv6-support.zip
u-boot-RFC/v4-ipv6-support.tar.gz
u-boot-RFC/v4-ipv6-support.tar.bz2
test/py: add a ping6 testRFC/v4-ipv6-support
Add a simple ICMPv6 echo request test Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--test/py/tests/test_net.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py
index 9ca6743..bd3d607 100644
--- a/test/py/tests/test_net.py
+++ b/test/py/tests/test_net.py
@@ -126,6 +126,21 @@ def test_net_ping(u_boot_console):
output = u_boot_console.run_command('ping $serverip')
assert 'is alive' in output
+@pytest.mark.buildconfigspec('cmd_ping6')
+def test_net_ping6(u_boot_console):
+ """Test the ping6 command.
+
+ The $serverip6 (as set up by test_net_setup_static) is pinged.
+ The test validates that the host is alive, as reported by the
+ ping6 command's output.
+ """
+
+ if not net_set_up:
+ pytest.skip('Network not initialized')
+
+ output = u_boot_console.run_command('ping6 $serverip6')
+ assert 'is alive' in output
+
@pytest.mark.buildconfigspec('cmd_net')
def test_net_tftpboot(u_boot_console):
"""Test the tftpboot command.