aboutsummaryrefslogtreecommitdiff
path: root/tests/etc
diff options
context:
space:
mode:
authorRuslan Bukin <br@FreeBSD.org>2016-09-23 07:51:01 +0000
committerRuslan Bukin <br@FreeBSD.org>2016-09-23 07:51:01 +0000
commit3a970562d7f8b2506f7bcbe378e3c02a408425d7 (patch)
treea4e584dd0fd3763724cac1b3ff6d82c6f7b3352b /tests/etc
parent19f1b6fb7b49633dea04fcad3882d116ed0c79d6 (diff)
downloadsrc-3a970562d7f8b2506f7bcbe378e3c02a408425d7.tar.gz
src-3a970562d7f8b2506f7bcbe378e3c02a408425d7.zip
Check if IPv6 supported before running the test, skip otherwise.
Sponsored by: DARPA, AFRL Sponsored by: HEIF5
Notes
Notes: svn path=/head/; revision=306231
Diffstat (limited to 'tests/etc')
-rwxr-xr-xtests/etc/rc.d/routing_test.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/etc/rc.d/routing_test.sh b/tests/etc/rc.d/routing_test.sh
index 4fd6754192b0..f1510cbf1730 100755
--- a/tests/etc/rc.d/routing_test.sh
+++ b/tests/etc/rc.d/routing_test.sh
@@ -58,6 +58,10 @@ static_ipv6_loopback_route_for_each_fib_body()
local nfibs fib
nfibs=`sysctl -n net.fibs`
+ if [ "`sysctl -in kern.features.inet6`" != "1" ]; then
+ atf_skip "This test requires IPv6 support"
+ fi
+
# Check for an IPv6 loopback route
for fib in `seq 0 $((${nfibs} - 1))`; do
atf_check -o match:"interface: lo0" -s exit:0 \