summaryrefslogtreecommitdiffstats
path: root/test/t/test_ip.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:58 +0000
commit5883c2ff7869f27984084487e603c17b49508812 (patch)
tree73cebff807071fd1d7ba1ec819152233e6da3b05 /test/t/test_ip.py
parentReleasing progress-linux version 1:2.12.0-1~progress7.99u1. (diff)
downloadbash-completion-5883c2ff7869f27984084487e603c17b49508812.tar.xz
bash-completion-5883c2ff7869f27984084487e603c17b49508812.zip
Merging upstream version 1:2.13.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/t/test_ip.py')
-rw-r--r--test/t/test_ip.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/t/test_ip.py b/test/t/test_ip.py
index 0be088c..552015d 100644
--- a/test/t/test_ip.py
+++ b/test/t/test_ip.py
@@ -15,6 +15,23 @@ class TestIp:
assert completion
@pytest.mark.complete(
+ "ip stats show group ",
+ require_cmd=True,
+ skipif="ip stats help 2>/dev/null; (( $? != 255 ))",
+ )
+ def test_stats(self, completion):
+ # "link" was one of the first groups added, should always be there
+ assert "link" in completion
+
+ @pytest.mark.complete(
+ "ip neigh show nud ",
+ require_cmd=True,
+ skipif="ip neigh help 2>&1 | grep 'STATE :=' > /dev/null; (( $? != 0 ))",
+ )
+ def test_neigh_state(self, completion):
+ assert "stale" in completion
+
+ @pytest.mark.complete(
"ip monitor ",
require_cmd=True,
skipif="ip monitor help 2>/dev/null; (( $? != 255 ))",
@@ -23,6 +40,23 @@ class TestIp:
assert "neigh" in completion
assert "all" in completion
+ @pytest.mark.complete("ip netconf ")
+ def test_netconf(self, completion):
+ assert "show" in completion
+
+ @pytest.mark.complete("ip link property add ")
+ def test_link_property(self, completion):
+ assert "altname" in completion
+ assert "dev" in completion
+
+ @pytest.mark.complete(
+ "ip addr show type ",
+ require_cmd=True,
+ skipif="ip link help 2>/dev/null; (( $? != 255 ))",
+ )
+ def test_addr_type(self, completion):
+ assert "bridge" in completion
+
@pytest.mark.complete("ip -", require_cmd=True)
def test_options(self, completion):
assert "-family" in completion