- Timestamp:
- Jan 23, 2016, 5:11:43 PM (7 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- ddf6027
- Parents:
- bca7629
- Location:
- test
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
test/Makefile.am
rbca7629 rcf4e708 156 156 export BACKEND_HOST="$(TEST_HOST)"; 157 157 158 if ENABLE_NETNS 159 AM_TESTS_ENVIRONMENT += export UNSHARE="$(UNSHARE)"; \ 160 export USE_TEST_NAMESPACE=1; 161 endif 158 162 # Without flock tests must not run in parallel. Otherwise set lock files. 159 163 if DISABLE_FLOCK -
test/base_apache.conf
rbca7629 rcf4e708 5 5 ErrorLog logs/${TEST_NAME}.error.log 6 6 HostnameLookups Off 7 PidFile apache2.pid8 7 KeepAlive Off 9 8 LogLevel debug … … 15 14 16 15 Include listen.conf 16 Include apache-conf/*.conf 17 17 18 18 DocumentRoot ${srcdir}/data -
test/common.bash
rbca7629 rcf4e708 16 16 done 17 17 } 18 19 20 21 # Usage: netns_reexec ${@} 22 # 23 # If USE_TEST_NAMESPACE is set and MGS_NETNS_ACTIVE is not, exec the 24 # running command inside a new namespace with active loopback 25 # interface and MGS_NETNS_ACTIVE defined. This function can be used to 26 # isolate each testcase inside its own network namespace. Since 27 # MGS_NETNS_ACTIVE is used to track status, there's no harm in calling 28 # it multiple times (e.g. in the test-* script and runtests). 29 function netns_reexec 30 { 31 if [ -n "${USE_TEST_NAMESPACE}" ] && [ -z "${MGS_NETNS_ACTIVE}" ]; then 32 exec "${UNSHARE}" --net -r /bin/bash -c \ 33 "export MGS_NETNS_ACTIVE=1; ip link set up lo; exec ${0} ${@}" 34 fi 35 return 0 36 } -
test/runtests
rbca7629 rcf4e708 7 7 set -e 8 8 . ${srcdir}/common.bash 9 netns_reexec ${@} 9 10 10 11 testid="${1##t-}" … … 153 154 TEST_PID="apache2.pid" 154 155 # configure locking for the Apache process 155 if [ -n "${TEST_LOCK}" ]; then 156 if [ -n "${USE_TEST_NAMESPACE}" ]; then 157 echo "Using namespaces to isolate tests, no need for locking." 158 flock_cmd="" 159 elif [ -n "${TEST_LOCK}" ]; then 156 160 flock_cmd="${FLOCK} -w ${TEST_LOCK_WAIT} $(realpath ${TEST_LOCK})" 157 161 else -
test/test-19_TLS_reverse_proxy.bash
rbca7629 rcf4e708 3 3 set -e 4 4 : ${srcdir:="."} 5 . ${srcdir}/common.bash 6 netns_reexec ${@} 5 7 6 8 testdir="${srcdir}/tests/19_TLS_reverse_proxy" -
test/test-20_TLS_reverse_proxy_client_auth.bash
rbca7629 rcf4e708 3 3 set -e 4 4 : ${srcdir:="."} 5 . ${srcdir}/common.bash 6 netns_reexec ${@} 5 7 6 8 testdir="${srcdir}/tests/20_TLS_reverse_proxy_client_auth" -
test/test-21_TLS_reverse_proxy_wrong_cert.bash
rbca7629 rcf4e708 3 3 set -e 4 4 : ${srcdir:="."} 5 . ${srcdir}/common.bash 6 netns_reexec ${@} 5 7 6 8 testdir="${srcdir}/tests/21_TLS_reverse_proxy_wrong_cert" -
test/test-22_TLS_reverse_proxy_crl_revoke.bash
rbca7629 rcf4e708 3 3 set -e 4 4 : ${srcdir:="."} 5 . ${srcdir}/common.bash 6 netns_reexec ${@} 5 7 6 8 testdir="${srcdir}/tests/22_TLS_reverse_proxy_crl_revoke" -
test/test-23_TLS_reverse_proxy_mismatched_priorities.bash
rbca7629 rcf4e708 3 3 set -e 4 4 : ${srcdir:="."} 5 . ${srcdir}/common.bash 6 netns_reexec ${@} 5 7 6 8 testdir="${srcdir}/tests/23_TLS_reverse_proxy_mismatched_priorities"
Note: See TracChangeset
for help on using the changeset viewer.