asynciodebian/masterdebian/stretch-backportsjessie-backportsmainproxy-ticketupstream
Last change
on this file since ddf6027 was
cf4e708,
checked in by Thomas Klute <thomas2.klute@…>, 7 years ago
|
Run tests in separate network namespaces
Creating a network namespace for each test avoids port conflicts so
Apache instances can run in parallel, and also isolates the tests from
the host system.
Test namespaces are automatically used if the "unshare" command is
available, and can be disabled by passing "--disable-test-namespaces"
to ./configure.
|
-
Property mode set to
100755
|
File size:
427 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | set -e |
---|
4 | : ${srcdir:="."} |
---|
5 | . ${srcdir}/common.bash |
---|
6 | netns_reexec ${@} |
---|
7 | |
---|
8 | testdir="${srcdir}/tests/20_TLS_reverse_proxy_client_auth" |
---|
9 | . $(dirname ${0})/proxy_backend.bash |
---|
10 | |
---|
11 | function stop_backend |
---|
12 | { |
---|
13 | backend_apache "${dir}" "backend.conf" stop |
---|
14 | } |
---|
15 | backend_apache "${testdir}" "backend.conf" start "${BACKEND_LOCK}" |
---|
16 | trap stop_backend EXIT |
---|
17 | |
---|
18 | ${srcdir}/runtests t-20 |
---|
19 | |
---|
20 | backend_apache "${testdir}" "backend.conf" stop |
---|
21 | trap - EXIT |
---|
Note: See
TracBrowser
for help on using the repository browser.