summaryrefslogtreecommitdiffstats
path: root/tests/isisd/test_fuzz_isis_tlv.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:16:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:16:35 +0000
commite2bbf175a2184bd76f6c54ccf8456babeb1a46fc (patch)
treef0b76550d6e6f500ada964a3a4ee933a45e5a6f1 /tests/isisd/test_fuzz_isis_tlv.py
parentInitial commit. (diff)
downloadfrr-e2bbf175a2184bd76f6c54ccf8456babeb1a46fc.tar.xz
frr-e2bbf175a2184bd76f6c54ccf8456babeb1a46fc.zip
Adding upstream version 9.1.upstream/9.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/isisd/test_fuzz_isis_tlv.py')
-rw-r--r--tests/isisd/test_fuzz_isis_tlv.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/isisd/test_fuzz_isis_tlv.py b/tests/isisd/test_fuzz_isis_tlv.py
new file mode 100644
index 0000000..8fd20aa
--- /dev/null
+++ b/tests/isisd/test_fuzz_isis_tlv.py
@@ -0,0 +1,32 @@
+import frrtest
+
+import pytest
+import platform
+import socket
+
+
+##
+# on musl, ntop compresses a single :0: -> :: which is against RFC
+##
+def inet_ntop_broken():
+ addr = "1:2:3:4:0:6:7:8"
+ return (
+ socket.inet_ntop(socket.AF_INET6, socket.inet_pton(socket.AF_INET6, addr))
+ != addr
+ )
+
+
+if platform.uname()[0] == "SunOS" or inet_ntop_broken():
+
+ class TestFuzzIsisTLV:
+ @pytest.mark.skipif(True, reason="Test unsupported")
+ def test_exit_cleanly(self):
+ pass
+
+
+else:
+
+ class TestFuzzIsisTLV(frrtest.TestMultiOut):
+ program = "./test_fuzz_isis_tlv"
+
+ TestFuzzIsisTLV.exit_cleanly()