diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/travis_Dockerfile_slapd | 4 | ||||
-rwxr-xr-x | test/travis_before_linux.sh | 11 |
2 files changed, 7 insertions, 8 deletions
diff --git a/test/travis_Dockerfile_slapd b/test/travis_Dockerfile_slapd index 8da818e958..e0729e3c2b 100644 --- a/test/travis_Dockerfile_slapd +++ b/test/travis_Dockerfile_slapd @@ -4,6 +4,6 @@ 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 +RUN apt-get update && apt-get -y install slapd ldap-utils # With -d passed, slapd stays in the foreground -CMD /usr/sbin/slapd -d1 +CMD /usr/sbin/slapd -d1 '-h ldap:// ldapi:///' diff --git a/test/travis_before_linux.sh b/test/travis_before_linux.sh index 4c8c991c68..e46ea65837 100755 --- a/test/travis_before_linux.sh +++ b/test/travis_before_linux.sh @@ -83,12 +83,11 @@ 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 +if test -v TEST_LDAP -a -x test/perl-framework/scripts/ldap-init.sh; then + docker build -t httpd_ldap -f test/travis_Dockerfile_slapd test/ + pushd test/perl-framework + ./scripts/ldap-init.sh + popd fi if test -v APR_VERSION; then |