Changeset cf4e708 in mod_gnutls for test/runtests


Ignore:
Timestamp:
Jan 23, 2016, 5:11:43 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
ddf6027
Parents:
bca7629
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    rbca7629 rcf4e708  
    77set -e
    88. ${srcdir}/common.bash
     9netns_reexec ${@}
    910
    1011testid="${1##t-}"
     
    153154TEST_PID="apache2.pid"
    154155# configure locking for the Apache process
    155 if [ -n "${TEST_LOCK}" ]; then
     156if [ -n "${USE_TEST_NAMESPACE}" ]; then
     157    echo "Using namespaces to isolate tests, no need for locking."
     158    flock_cmd=""
     159elif [ -n "${TEST_LOCK}" ]; then
    156160    flock_cmd="${FLOCK} -w ${TEST_LOCK_WAIT} $(realpath ${TEST_LOCK})"
    157161else
Note: See TracChangeset for help on using the changeset viewer.