summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2018-05-22 08:32:32 +0000
committerJoe Orton <jorton@apache.org>2018-05-22 08:32:32 +0000
commit12c6a934765a07a93c47b2c918b469c9f58a6baf (patch)
treea5aa8233c3c6b061701723353b082f80e7169844 /Makefile.in
parent33bd5995b02e475bac2cc60e6e2273b23b88dc34 (diff)
downloadhttpd-12c6a934765a07a93c47b2c918b469c9f58a6baf.tar.gz
Fix "make check" to be able to find ab, creating a "bin" inside the
dummy install root at $builddir/check. * Makefile.in (check-binaries): New target. (check/bin/apxs): Moved target inside check/bin. (check/build/config_vars.mk): Override bindir as well. (check): Use apxs at new location. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832011 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in23
1 files changed, 13 insertions, 10 deletions
diff --git a/Makefile.in b/Makefile.in
index 648bdb7fe0..d4f686d510 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -18,7 +18,7 @@ INSTALL_TARGETS = install-conf install-htdocs install-error install-icons \
install-other install-cgi install-include install-suexec install-build \
install-man
-CLEAN_TARGETS = check/apxs check/build/config_vars.mk \
+CLEAN_TARGETS = check/bin/* check/build/config_vars.mk \
check/conf/$(PROGRAM_NAME).conf check/conf/magic check/conf/mime.types \
check/conf/extra/* check/include/* $(testcase_OBJECTS) $(testcase_STUBS) \
test/httpdunit.cases test/unit/*.o
@@ -404,31 +404,34 @@ check-conf:
# configuration check on our in-tree build. To pass, we have to have all of the
# correct directories, even though they won't be used.
check-dirs:
- @mkdir -p check/htdocs
- @mkdir -p check/logs
+ @mkdir -p check/htdocs check/logs check/bin
-# A version of apxs with the PREFIX overridden to point inside the build tree.
-check/apxs:
+check-binaries: check/bin/apxs
+ ln -s $(top_builddir)/httpd check/bin/httpd
+ ln -s $(top_builddir)/support/ab check/bin/ab
+
+# A version of apxs with the PREFIX overridden to point inside the install root
+check/bin/apxs:
mkdir -p check
sed -e 's#$(prefix)#$(top_builddir)/check#g' support/apxs > $@
chmod +x $@
-# A version of config_vars.mk with the PREFIX and SBINDIR overridden to point
-# inside the build tree.
+# A version of config_vars.mk with PREFIX and SBINDIR and BINDIR overridden.
check/build/config_vars.mk: build/config_vars.out
mkdir -p check/build
cp $< $@
echo "prefix = $(top_builddir)/check" >> $@
- echo "sbindir = $(top_builddir)" >> $@
+ echo "sbindir = $(top_builddir)/check/bin" >> $@
+ echo "bindir = $(top_builddir)/check/bin" >> $@
# Run the Apache::Test suite if it has been configured with --with-test-suite.
-check: check-include check-dirs check-conf check/build/config_vars.mk check/apxs
+check: check-include check-dirs check-conf check/build/config_vars.mk check-binaries
@if test "x$(TEST_SUITE_LOCATION)" = "xno"; then \
echo 'Re-run configure with the --with-test-suite option to enable in-tree tests.'; \
false; \
fi
cd "$(TEST_SUITE_LOCATION)" && \
- perl Makefile.PL -apxs "$(top_builddir)/check/apxs" && \
+ perl Makefile.PL -apxs "$(top_builddir)/check/bin/apxs" && \
./t/TEST -clean && \
./t/TEST -config && \
./t/TEST