summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2020-03-20 11:52:25 +0100
committerJoe Orton <jorton@apache.org>2020-03-20 11:52:25 +0100
commit7e0e79de7a2adae016a7f2f632f04cabbbfa2efa (patch)
tree4fe3a2df9883aabbbe14cdf1d59a2095e1f96c6e
parentadd absent /modules/http2/*.o to .gitignore (diff)
downloadapache2-7e0e79de7a2adae016a7f2f632f04cabbbfa2efa.tar.xz
apache2-7e0e79de7a2adae016a7f2f632f04cabbbfa2efa.zip
Add simple test for apxs to catch regression in r1872042.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875465 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--.travis.yml3
-rwxr-xr-xtest/travis_run_linux.sh22
2 files changed, 19 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 254de6fac0..258f62ce22 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -72,8 +72,9 @@ jobs:
- libapr1-dev
- libbrotli-dev:i386
# -------------------------------------------------------------------------
- - name: Linux Ubuntu, Default, all-modules
+ - name: Linux Ubuntu, Default, all-modules + install
env: CONFIG="--enable-mods-shared=reallyall"
+ TEST_INSTALL=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Default, all-static modules
env: CONFIG="--enable-mods-static=reallyall"
diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh
index 8f0a2fc6db..f8fd6c5c4e 100755
--- a/test/travis_run_linux.sh
+++ b/test/travis_run_linux.sh
@@ -2,6 +2,9 @@
### Installed apr/apr-util don't include the *.m4 files but the
### Debian packages helpfully install them, so use the system APR to buildconf
./buildconf --with-apr=/usr/bin/apr-1-config ${BUILDCONFIG}
+
+PREFIX=${PREFIX:-$HOME/build/httpd-root}
+
# 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
@@ -9,8 +12,6 @@ if test ! -v SKIP_TESTING; then
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
if test -v APR_VERSION; then
@@ -23,9 +24,20 @@ if test -v APU_VERSION; then
else
CONFIG="$CONFIG --with-apr-util=/usr"
fi
-./configure $CONFIG
+
+./configure --prefix=$PREFIX $CONFIG
make $MFLAGS
+if test -v TEST_INSTALL; then
+ make install
+ pushd $PREFIX
+ test `./bin/apxs -q PREFIX` = $PREFIX
+ test `$PWD/bin/apxs -q PREFIX` = $PREFIX
+ ./bin/apxs -g -n foobar
+ cd foobar; make
+ popd
+fi
+
if ! test -v SKIP_TESTING; then
set +e
@@ -43,9 +55,9 @@ if ! test -v SKIP_TESTING; then
make check TESTS="${TEST_ARGS}"
RV=$?
else
- make install
+ test -v TEST_INSTALL || make install
pushd test/perl-framework
- perl Makefile.PL -apxs $HOME/build/httpd-root/bin/apxs
+ perl Makefile.PL -apxs $PREFIX/bin/apxs
make test APACHE_TEST_EXTRA_ARGS="${TEST_ARGS}"
RV=$?
popd