diff options
author | Arthur Jones <arthur.jones@riverbed.com> | 2018-06-04 15:56:13 -0700 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-07-25 08:40:01 +0000 |
commit | 6c21984c5b86ca03c72a88927f8c1de0c420e25f (patch) | |
tree | 90c83f085a32ffcec3482452348316ba08956345 /testing/frr/make-check-bypass-isisd-tlv.patch | |
parent | 5ad6fd1e0bd69114140ccf3403b52f93fafd61e5 (diff) | |
download | aports-6c21984c5b86ca03c72a88927f8c1de0c420e25f.tar.bz2 aports-6c21984c5b86ca03c72a88927f8c1de0c420e25f.tar.xz |
testing/frr: new aport for free range routing, a fork of quagga
FRRouting is free software that implements and manages various
IPv4 and IPv6 routing protocols.
Currently FRRouting supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2,
RIPng, IS-IS, PIM-SM/MSDP, LDP and Babel as well as very early support
for EIGRP and NHRP.
During PR review, fix for openrc-run issue discovered and fix contributed
by Hidde Van der Heide.
fixes #8795
Diffstat (limited to 'testing/frr/make-check-bypass-isisd-tlv.patch')
-rw-r--r-- | testing/frr/make-check-bypass-isisd-tlv.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/frr/make-check-bypass-isisd-tlv.patch b/testing/frr/make-check-bypass-isisd-tlv.patch new file mode 100644 index 0000000000..b7a73b353f --- /dev/null +++ b/testing/frr/make-check-bypass-isisd-tlv.patch @@ -0,0 +1,49 @@ +commit f404be7c728ca3433bb4aeaeac5e3c450941de35 +Author: Arthur Jones <arthur.jones@riverbed.com> +Date: Wed Jun 6 07:47:17 2018 -0700 + + tests/isisd: bypass test_fuzz_isis_tlv when inet_ntop is broken + + On Alpine Linux edge, musl does not seem to be RFC 5952 4.2.2 + compliant (how to print a single :0: in the IPv6 address). Let's + skip that test, as we get false negatives when running against + that version of musl. + + Credit for the idea for the fix and how to fix it is due to + chris@opensourcerouting.org. + + Testing done: + + make check on alpine linux passes now + + Issue: https://github.com/FRRouting/frr/issues/2375 + Signed-off-by: Arthur Jones <arthur.jones@riverbed.com> + +diff --git a/tests/isisd/test_fuzz_isis_tlv.py b/tests/isisd/test_fuzz_isis_tlv.py +index bf700bfee..d96e3c4fe 100644 +--- a/tests/isisd/test_fuzz_isis_tlv.py ++++ b/tests/isisd/test_fuzz_isis_tlv.py +@@ -2,10 +2,21 @@ import frrtest + + import pytest + import platform ++import socket + +-if platform.uname()[0] == 'SunOS': ++ ++## ++# 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 on SunOS') ++ @pytest.mark.skipif(True, reason='Test unsupported') + def test_exit_cleanly(self): + pass + else: |