summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2014-11-22 10:31:44 -0800
committerDavid Lamparter <equinox@opensourcerouting.org>2015-02-14 19:19:41 +0100
commit85c63b844df4a295a64f37573e0ba08a7cc63659 (patch)
treea1fe7c27edaf8a04c5fb0eeaa6ca442bab39aac0
parent7fe17e6975f4c4dd359364177a1d73ed770d6cd4 (diff)
downloadquagga-85c63b844df4a295a64f37573e0ba08a7cc63659.tar.bz2
quagga-85c63b844df4a295a64f37573e0ba08a7cc63659.tar.xz
tests: remove --disable-ipv6
With --disable-ipv6 gone, the IPv6 detection logic in the tests is not needed anymore either. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> Acked-by: Paul Jakma <paul@jakma.org>
-rw-r--r--tests/bgpd.tests/testbgpcap.exp6
-rw-r--r--tests/bgpd.tests/testbgpmpattr.exp14
-rw-r--r--tests/config/unix.exp20
3 files changed, 10 insertions, 30 deletions
diff --git a/tests/bgpd.tests/testbgpcap.exp b/tests/bgpd.tests/testbgpcap.exp
index 1bbdfd12..2572623f 100644
--- a/tests/bgpd.tests/testbgpcap.exp
+++ b/tests/bgpd.tests/testbgpcap.exp
@@ -8,10 +8,10 @@ spawn "./testbgpcap"
# proc simpletest { start } {
simpletest "MP4: MP IP/Uni"
-simpletest_nov6 "MPv6: MP IPv6/Uni"
+simpletest "MPv6: MP IPv6/Uni"
simpletest "MP2: MP IP/Multicast"
-simpletest_nov6 "MP3: MP IP6/MPLS-labeled VPN"
-simpletest_nov6 "MP5: MP IP6/MPLS-VPN"
+simpletest "MP3: MP IP6/MPLS-labeled VPN"
+simpletest "MP5: MP IP6/MPLS-VPN"
simpletest "MP6: MP IP4/MPLS-laveled VPN"
simpletest "MP8: MP unknown AFI/SAFI"
simpletest "MP-short: MP IP4/Unicast, length too short (< minimum)"
diff --git a/tests/bgpd.tests/testbgpmpattr.exp b/tests/bgpd.tests/testbgpmpattr.exp
index 93355ad7..646bbe50 100644
--- a/tests/bgpd.tests/testbgpmpattr.exp
+++ b/tests/bgpd.tests/testbgpmpattr.exp
@@ -7,10 +7,10 @@ spawn "./testbgpmpattr"
# proc simpletest { start } {
-simpletest_nov6 "IPv6: IPV6 MP Reach, global nexthop, 1 NLRI"
-simpletest_nov6 "IPv6-2: IPV6 MP Reach, global nexthop, 2 NLRIs"
-simpletest_nov6 "IPv6-default: IPV6 MP Reach, global nexthop, 2 NLRIs + default"
-simpletest_nov6 "IPv6-lnh: IPV6 MP Reach, global+local nexthops, 2 NLRIs + default"
+simpletest "IPv6: IPV6 MP Reach, global nexthop, 1 NLRI"
+simpletest "IPv6-2: IPV6 MP Reach, global nexthop, 2 NLRIs"
+simpletest "IPv6-default: IPV6 MP Reach, global nexthop, 2 NLRIs + default"
+simpletest "IPv6-lnh: IPV6 MP Reach, global+local nexthops, 2 NLRIs + default"
simpletest "IPv6-nhlen: IPV6 MP Reach, inappropriate nexthop length"
simpletest "IPv6-nhlen2: IPV6 MP Reach, invalid nexthop length"
simpletest "IPv6-nhlen3: IPV6 MP Reach, nexthop length overflow"
@@ -21,9 +21,9 @@ simpletest "IPv4-nhlen: IPv4 MP Reach, nexthop lenth overflow"
simpletest "IPv4-nlrilen: IPv4 MP Reach, nlri lenth overflow"
simpletest "IPv4-MLVPN: IPv4/MPLS-labeled VPN MP Reach, RD, Nexthop, 3 NLRIs"
simpletest "IPv6-bug: IPv6, global nexthop, 1 default NLRI"
-simpletest_nov6 "IPv6-unreach: IPV6 MP Unreach, 1 NLRI"
-simpletest_nov6 "IPv6-unreach2: IPV6 MP Unreach, 2 NLRIs"
-simpletest_nov6 "IPv6-unreach-default: IPV6 MP Unreach, 2 NLRIs + default"
+simpletest "IPv6-unreach: IPV6 MP Unreach, 1 NLRI"
+simpletest "IPv6-unreach2: IPV6 MP Unreach, 2 NLRIs"
+simpletest "IPv6-unreach-default: IPV6 MP Unreach, 2 NLRIs + default"
simpletest "IPv6-unreach-nlri: IPV6 MP Unreach, NLRI bitlen overflow"
simpletest "IPv4-unreach: IPv4 MP Unreach, 2 NLRIs + default"
simpletest "IPv4-unreach-nlrilen: IPv4 MP Unreach, nlri length overflow"
diff --git a/tests/config/unix.exp b/tests/config/unix.exp
index b41f072c..2f6bcead 100644
--- a/tests/config/unix.exp
+++ b/tests/config/unix.exp
@@ -8,16 +8,6 @@
# be part of the output...
#set color 1
-set config_h [open "../config.h" "r"]
-set config_h_text [read $config_h]
-close $config_h
-set i [string first "#define HAVE_IPV6" $config_h_text]
-if { $i >= 0 } {
- set have_ipv6 1
-} else {
- set have_ipv6 0
-}
-send_user "IPv6 enabled: $have_ipv6\n"
set xfail 0
proc onesimple { test_name match } {
@@ -110,13 +100,3 @@ proc simpletest { start } {
onetest "$start" "" "$start"
}
-proc simpletest_nov6 { start } {
- global have_ipv6
- global xfail
-
- set xfail [expr 1-$have_ipv6]
- onetest "$start" "" "$start"
- set xfail 0
-}
-
-