1
0
Fork 0
frr/tests/isisd/test_fuzz_isis_tlv.py
Daniel Baumann 3124f89aed
Adding upstream version 10.1.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-05 10:03:58 +01:00

32 lines
643 B
Python

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()