image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$CENTOS7_BUILD
script:
- ./autogen.sh
- - ./configure --with-java --enable-ppp-tests CFLAGS=-g
+# For reasons that are not clear, OpenConnect fails to handshake a TLS connection to Python 3.6+Flask
+# (verified in https://gitlab.com/openconnect/openconnect/-/jobs/1135245618#L520), so we disable the
+# Flask-based authentication tests.
+ - ./configure --with-java --enable-ppp-tests --disable-flask-tests CFLAGS=-g
- make -j4
# UTF-8 support is not available
- make VERBOSE=1 XFAIL_TESTS="auth-nonascii" -j4 check
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$CENTOS7_BUILD
script:
- ./autogen.sh
- - ./configure --without-gnutls --with-openssl --with-java --without-openssl-version-check --enable-dtls-xfail --disable-dsa-tests --enable-ppp-tests CFLAGS=-g
+# For reasons that are not clear, OpenConnect fails to handshake a TLS connection to Python 3.6+Flask
+# (verified in https://gitlab.com/openconnect/openconnect/-/jobs/1135245618#L520), so we disable the
+# Flask-based authentication tests.
+ - ./configure --without-gnutls --with-openssl --with-java --without-openssl-version-check --enable-dtls-xfail --disable-dsa-tests --enable-ppp-tests --disable-flask-tests CFLAGS=-g
- make -j4
# we don't want pppd to invoke any actual connection scripts
- mv /etc/ppp /etc/ppp.DISABLED
AS_HELP_STRING([--enable-ppp-tests], [Enable PPP tests (which require socat and pppd, and must run as root)]),
[enable_ppp_tests=yes])
+AC_ARG_ENABLE([flask-tests],
+ AS_HELP_STRING([--disable-flask-tests], [Disable Flask-based tests (which require Python 3.6+ and the Flask module)]),
+ [], [enable_flask_tests=yes])
+
AM_CONDITIONAL(OPENCONNECT_GNUTLS, [ test "$ssl_library" = "GnuTLS" ])
AM_CONDITIONAL(OPENCONNECT_OPENSSL, [ test "$ssl_library" = "OpenSSL" ])
AM_CONDITIONAL(OPENCONNECT_ESP, [ test "$esp" != "" ])
AM_CONDITIONAL(HAVE_CWRAP, test "x$have_cwrap" != xno)
have_python36_flask=no
-if test -n "${ac_cv_path_PYTHON}"; then
+if test "$enable_flask_tests" = "yes" -a -n "${ac_cv_path_PYTHON}"; then
AC_MSG_CHECKING([for Python 3.6+ with Flask module])
python3 -c 'import sys; assert sys.version_info >= (3,6); import flask' 2>/dev/null
if test $? -ne 0 ; then
have_python36_flask=yes
AC_MSG_RESULT(found)
fi
- AM_CONDITIONAL(HAVE_PYTHON36_FLASK, test "$have_python36_flask" = yes)
fi
+AM_CONDITIONAL(HAVE_PYTHON36_FLASK, test "$have_python36_flask" = yes)
if test "$enable_ppp_tests" = "yes"; then
AC_PATH_PROGS(SOCAT, [socat], [], $PATH:/bin:/usr/bin)
SUMMARY([Net namespace tests], [$have_netns])
SUMMARY([DSA tests], [$enable_dsa_tests])
SUMMARY([PPP tests], [$enable_ppp_tests])
+SUMMARY([Flask tests], [$have_python36_flask])
SUMMARY([Insecure debugging], [$insecure_debugging])
SUMMARY([NSIS installer], [$build_nsis])