debian/masterdebian/stretch-backportsjessie-backportsupstream
Last change
on this file since 4038c7a was
af7da2d,
checked in by Thomas Klute <thomas2.klute@…>, 5 years ago
|
Test suite: Start Apache directly again, search for httpd
Fedora installs a version of apachectl that does not pass arguments
through to Apache and relies on the system wide configuration. Thus
running the test suite there requires calling the Apache binary
directly. Search for it as "apache2" (name used in Debian) as well as
"httpd" (Fedora).
Also include test/cgi_module.conf and test/proxy_mods.conf in the
distribution archive.
|
-
Property mode set to
100644
|
File size:
868 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | set -e |
---|
4 | |
---|
5 | if [ -z "${BACKEND_HOST}" ]; then |
---|
6 | export BACKEND_HOST="localhost" |
---|
7 | fi |
---|
8 | if [ -z "${BACKEND_IP}" ]; then |
---|
9 | export BACKEND_IP="::1" |
---|
10 | fi |
---|
11 | if [ -z "${BACKEND_PORT}" ]; then |
---|
12 | export BACKEND_PORT="9934" |
---|
13 | fi |
---|
14 | : ${BACKEND_LOCK:="backend.lock"} |
---|
15 | : ${srcdir:="."} |
---|
16 | : ${APACHE2:="apache2"} |
---|
17 | |
---|
18 | function backend_apache |
---|
19 | { |
---|
20 | dir="${1}" |
---|
21 | conf="${2}" |
---|
22 | action="${3}" |
---|
23 | lockfile="${4}" |
---|
24 | |
---|
25 | if [ -n "${lockfile}" ]; then |
---|
26 | flock_cmd="flock -w 10 ${lockfile}" |
---|
27 | fi |
---|
28 | |
---|
29 | TEST_NAME="$(basename "${dir}")" |
---|
30 | ( |
---|
31 | export TEST_NAME |
---|
32 | export TEST_IP="${BACKEND_IP}" |
---|
33 | export TEST_PORT="${BACKEND_PORT}" |
---|
34 | export srcdir="$(realpath ${srcdir})" |
---|
35 | case $action in |
---|
36 | start) |
---|
37 | ${flock_cmd} \ |
---|
38 | ${APACHE2} -f "$(realpath ${testdir}/${conf})" -k start || return 1 |
---|
39 | ;; |
---|
40 | stop) |
---|
41 | ${APACHE2} -f "$(realpath ${testdir}/${conf})" -k stop || return 1 |
---|
42 | ;; |
---|
43 | esac |
---|
44 | ) |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.