]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commitdiff
FIXME add mock IPv6 configuration to get CI to work
authorDaniel Lenski <dlenski@gmail.com>
Sat, 28 Nov 2020 00:40:20 +0000 (16:40 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 30 Nov 2020 19:35:08 +0000 (19:35 +0000)
See https://gitlab.com/openconnect/vpnc-scripts/-/merge_requests/16#note_454710802 and #12.

This at least should allow the CI to pass while fully exercising the BSD-ish routing configuration code paths. Should be removed once #12 is resolved.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
tests/vpn-noroute
tests/vpn-routes

index 25e9ac8f1630feb04f57ff267f281bafe205d8ff..ed93b9fef6ff27042855fe1b7d7fbccf57370782 100755 (executable)
@@ -116,6 +116,7 @@ if test $? != 0;then
 fi
 
 echo " * Connecting to ${ADDRESS}:${PORT}..."
+export INTERNAL_IP6_NETMASK="fd91:6d87:7341:db6a::1/112" INTERNAL_IP6_ADDRESS="fd91:6d87:7341:db6a::1" # FIXME see #12 and !16#note_454710802
 ( echo "test" | ${CMDNS1} ${OPENCONNECT} ${ADDRESS}:${PORT} --interface ${TUNDEV} -u ${USERNAME} --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 -s ${srcdir}/../vpnc-script --pid-file=${CLIPIDFILE} --passwd-on-stdin -b )
 if test $? != 0;then
        echo "Could not connect to server"
index a09fcf738589b858ee9742e013a5c5de1a2b0710..59593de812169c61e2a40fa957a5cb8f3f4b70f4 100755 (executable)
@@ -113,6 +113,7 @@ if test $? != 0;then
 fi
 
 echo " * Connecting to ${ADDRESS}:${PORT}..."
+export INTERNAL_IP6_NETMASK="fd91:6d87:7341:db6a::1/112" INTERNAL_IP6_ADDRESS="fd91:6d87:7341:db6a::1" # FIXME see #12 and !16#note_454710802
 ( echo "test" | ${CMDNS1} ${OPENCONNECT} ${ADDRESS}:${PORT} --interface ${TUNDEV} -u ${USERNAME} --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 -s ${srcdir}/../vpnc-script --pid-file=${CLIPIDFILE} --passwd-on-stdin -b )
 if test $? != 0;then
        echo "Could not connect to server"