image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$CENTOS8_BUILD
script:
- ./autogen.sh
- - ./configure --with-java --without-gnutls-version-check --disable-dsa-tests CFLAGS=-g
+ - ./configure --with-java --without-gnutls-version-check --disable-dsa-tests --enable-ppp-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:$CENTOS8_BUILD
script:
- ./autogen.sh
- - ./configure --without-gnutls --with-openssl --with-java --without-openssl-version-check --disable-dsa-tests CFLAGS=-g
+ - ./configure --without-gnutls --with-openssl --with-java --without-openssl-version-check --disable-dsa-tests --enable-ppp-tests CFLAGS=-g
- make -j4
# UTF-8 support is not available
# OpenSSL 1.1.0 disables 3DES and RC4 by default (https://www.openssl.org/blog/blog/2016/08/24/sweet32/)
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$CENTOS6_BUILD
script:
- ./autogen.sh
- - ./configure --with-java --without-openssl-version-check --enable-dtls-xfail CFLAGS=-g
+ - ./configure --with-java --without-openssl-version-check --enable-dtls-xfail --enable-ppp-tests CFLAGS=-g
- make -j4
# UTF-8 support is not available
- make VERBOSE=1 XFAIL_TESTS="bad_dtls_test auth-nonascii" -j4 check
AC_ARG_ENABLE([ppp-tests],
AS_HELP_STRING([--enable-ppp-tests], [Enable PPP tests (which require socat and pppd, and must run as root)]),
[enable_ppp_tests=yes])
-AM_CONDITIONAL(TEST_PPP, [test "$enable_ppp_tests" = "yes"])
AM_CONDITIONAL(OPENCONNECT_GNUTLS, [ test "$ssl_library" = "GnuTLS" ])
AM_CONDITIONAL(OPENCONNECT_OPENSSL, [ test "$ssl_library" = "OpenSSL" ])
PKG_CHECK_MODULES([CWRAP], [uid_wrapper, socket_wrapper], have_cwrap=yes, have_cwrap=no)
AM_CONDITIONAL(HAVE_CWRAP, test "x$have_cwrap" != xno)
+if test "$enable_ppp_tests" = "yes"; then
+ AC_PATH_PROGS(SOCAT, [socat], [], $PATH:/bin:/usr/bin)
+ AC_PATH_PROGS(PPPD, [pppd], [], $PATH:/bin:/usr/bin:/sbin:/usr/sbin/)
+ if test -z "${ac_cv_path_SOCAT}" -o -z "${ac_cv_path_PPPD}"; then
+ AC_MSG_WARN([socat and/or pppd not found; disabling PPP tests])
+ enable_ppp_tests=no
+ fi
+fi
+AM_CONDITIONAL(TEST_PPP, [test "$enable_ppp_tests" = "yes"])
+
have_netns=no
AC_PATH_PROG(NUTTCP, nuttcp)
if test -n "$ac_cv_path_NUTTCP"; then