]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Support 2.4.x builds, which lacks --with-test-suite support.
authorJoe Orton <jorton@apache.org>
Fri, 8 Nov 2019 07:45:55 +0000 (07:45 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 8 Nov 2019 07:45:55 +0000 (07:45 +0000)
Build with --enable-load-all-modules only when the test suite is run.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869527 13f79535-47bb-0310-9956-ffa450edef68

.travis.yml
test/travis_run_linux.sh

index 9604140a1c5614e07101a82bb50886cd775353b5..deb56ffb09d0a9245e5083fed9f9d305d08dc9af 100644 (file)
@@ -23,27 +23,27 @@ matrix:
     - name: Linux Ubuntu, Default module set
     # -------------------------------------------------------------------------
     - name: Linux Ubuntu, Default, all-modules
-      env: CONFIG="--enable-mods-shared=reallyall --enable-load-all-modules"
+      env: CONFIG="--enable-mods-shared=reallyall"
     # -------------------------------------------------------------------------
     - name: Linux Ubuntu, Prefork MPM, all-modules
-      env: CONFIG="--enable-mods-shared=reallyall --enable-load-all-modules --with-mpm=prefork"
+      env: CONFIG="--enable-mods-shared=reallyall --with-mpm=prefork"
     # -------------------------------------------------------------------------
     - name: Linux Ubuntu, Worker MPM, all-modules
-      env: CONFIG="--enable-mods-shared=reallyall --enable-load-all-modules --with-mpm=worker"
+      env: CONFIG="--enable-mods-shared=reallyall --with-mpm=worker"
     # -------------------------------------------------------------------------
     - name: Linux Ubuntu Bionic, all-modules
       os: linux
       dist: bionic
-      env: CONFIG="--enable-mods-shared=reallyall --enable-load-all-modules"
+      env: CONFIG="--enable-mods-shared=reallyall"
     # -------------------------------------------------------------------------
     - name: Linux Ubuntu Bionic, GCC 7 maintainer-mode w/-Werror
       os: linux
       dist: bionic
-      env: CONFIG="--enable-mods-shared=reallyall --enable-load-all-modules --enable-maintainer-mode NOTEST_CFLAGS=-Werror CC=gcc-7"
+      env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode NOTEST_CFLAGS=-Werror CC=gcc-7"
            SKIP_TESTING=1
     # -------------------------------------------------------------------------
     - name: Linux Ubuntu, GCC 8 maintainer-mode w/-Werror
-      env: CONFIG="--enable-mods-shared=reallyall --enable-load-all-modules --enable-maintainer-mode NOTEST_CFLAGS=-Werror CC=gcc-8"
+      env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode NOTEST_CFLAGS=-Werror CC=gcc-8"
            SKIP_TESTING=1
       addons:
         apt:
index 55087403b3fec866f504e9b23fd9763594f4faec..06f50eb1b244972d75f6a250bcfc59696abdec69 100755 (executable)
@@ -1,6 +1,25 @@
 #!/bin/bash -ex
-./buildconf
-test -v SKIP_TESTING || CONFIG="--with-test-suite=test/perl-framework $CONFIG"
+./buildconf --with-apr=/usr/bin/apr-1-config
+# For trunk, "make check" is sufficient to run the test suite.
+# For 2.4.x, the test suite must be run manually
+if test ! -v SKIP_TESTING; then
+    CONFIG="$CONFIG --enable-load-all-modules"
+    if grep -q ^check: Makefile.in; then
+        CONFIG="--with-test-suite=test/perl-framework $CONFIG"
+        WITH_TEST_SUITE=1
+    else
+        CONFIG="--prefix=$HOME/build/httpd-root $CONFIG"
+    fi
+fi
 ./configure $CONFIG --with-apr=/usr --with-apr-util=/usr
 make $MAKEFLAGS -j2
-test -v SKIP_TESTING || make check
+if ! test -v SKIP_TESTING; then
+    if test -v WITH_TEST_SUITE; then
+        make check
+    else
+        make install
+        cd test/perl-framework
+        perl Makefile.PL -apxs $HOME/build/httpd-root/bin/apxs
+        make test
+    fi
+fi