From 52fb6b9b034fcfd24bf88cc7be313e9c31de9889 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 30 Jun 2015 16:05:40 +1000 Subject: [PATCH] skip IPv6-related portions on hosts without IPv6 with Tim Rice --- regress/cfgparse.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/regress/cfgparse.sh b/regress/cfgparse.sh index 7f377d887..736f38976 100644 --- a/regress/cfgparse.sh +++ b/regress/cfgparse.sh @@ -3,6 +3,11 @@ tid="config parse" +# This is a reasonable proxy for IPv6 support. +if ! config_defined HAVE_STRUCT_IN6_ADDR ; then + SKIP_IPV6=yes +fi + # We need to use the keys generated for the regression test because sshd -T # will fail if we're not running with SUDO (no permissions for real keys) or # if we are # running tests on a system that has never had sshd installed @@ -26,9 +31,12 @@ verbose "listenaddress order" cat > $OBJ/sshd_config.0 <> $OBJ/sshd_config.0 < $OBJ/sshd_config.1 <> $OBJ/sshd_config.1 <$OBJ/sshd_config.2 && diff $OBJ/sshd_config.0 $OBJ/sshd_config.2) || \ @@ -47,11 +58,14 @@ EOD cat > $OBJ/sshd_config.1 <> $OBJ/sshd_config.1 <$OBJ/sshd_config.2 && diff $OBJ/sshd_config.0 $OBJ/sshd_config.2) || \