- libjansson-dev
- libpcre2-dev
- libldap2-dev
+ - ldap-utils
env:
global:
- MFLAGS=-j2
CONFIG="--enable-mods-shared=reallyall"
TEST_MALLOC=1
# -------------------------------------------------------------------------
+ - name: Linux Ubuntu, APR 1.7.0, APR-util 1.6.1, pool-debug, LDAP
+ env: APR_VERSION=1.7.0 APR_CONFIG="--enable-pool-debug"
+ APU_VERSION=1.6.1 APU_CONFIG="--with-crypto --with-ldap"
+ CONFIG="--enable-mods-shared=reallyall"
+ TEST_MALLOC=1 TEST_LDAP=1 TEST_ARGS="-defines LDAP"
+ TESTS="t/modules/"
+ # -------------------------------------------------------------------------
- name: Linux Ubuntu, litmus WebDAV tests
env: CONFIG="--enable-dav --enable-dav-fs"
- LITMUS=1 TEST_ARGS="t/modules/dav.t"
+ LITMUS=1 TESTS="t/modules/dav.t"
addons:
apt:
update: false
* TEST_INSTALL - set for builds testing "make install"
+* TEST_LDAP - set for builds with slapd running
+
+* TESTS - a list of Perl framework tests to run
+
+* TEST_ARGS - arguments to pass to ./t/TEST in the Perl test framework
+
Caching
-------
--- /dev/null
+FROM ubuntu:bionic
+RUN echo slapd slapd/password1 password travis | debconf-set-selections
+RUN echo slapd slapd/password2 password travis | debconf-set-selections
+RUN echo slapd slapd/internal/adminpw password travis | debconf-set-selections
+RUN echo slapd slapd/internal/generated_adminpw password travis | debconf-set-selections
+RUN echo slapd slapd/domain string example.com | debconf-set-selections
+RUN apt-get update && apt-get -y install slapd
+# With -d passed, slapd stays in the foreground
+CMD /usr/sbin/slapd -d1
git clone --depth=1 https://github.com/apache/httpd-tests.git test/perl-framework
fi
+# For LDAP testing, run slapd listening on port 8389 and populate the
+# directory as described in t/modules/ldap.t in the test framework:
+LDIF=test/perl-framework/scripts/httpd.ldif
+if test -v TEST_LDAP -a -r $LDIF ; then
+ docker build -t httpd_slapd -f test/travis_Dockerfile_slapd test/
+ docker run -d -p 8389:389 httpd_slapd | tee .slapd.cid
+ sleep 5
+ ldapadd -H ldap://localhost:8389 -D cn=admin,dc=example,dc=com -w travis < $LDIF
+fi
+
if test -v APR_VERSION; then
install_apx apr ${APR_VERSION} "${APR_CONFIG}"
APU_CONFIG="$APU_CONFIG --with-apr=$HOME/root/apr-${APR_VERSION}"
fi
if test -v WITH_TEST_SUITE; then
- make check TESTS="${TEST_ARGS}"
+ make check TESTS="${TESTS}" TEST_CONFIG="${TEST_ARGS}"
RV=$?
else
test -v TEST_INSTALL || make install
pushd test/perl-framework
perl Makefile.PL -apxs $PREFIX/bin/apxs
- make test APACHE_TEST_EXTRA_ARGS="${TEST_ARGS}"
+ make test APACHE_TEST_EXTRA_ARGS="${TEST_ARGS} ${TESTS}"
RV=$?
popd
fi
pushd test/perl-framework
mkdir -p t/htdocs/modules/dav
./t/TEST -start
+ # litmus uses $TESTS, so unset it.
+ unset TESTS
litmus http://localhost:8529/modules/dav/
RV=$?
./t/TEST -stop