Changeset 94430e6 in mod_gnutls for test/test-27_OCSP_server.bash


Ignore:
Timestamp:
Oct 10, 2017, 12:32:13 PM (2 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
e00d91a
Parents:
a09df8c
Message:

Test suite: Run a separate Apache instance for the OCSP responder

This change will be needed to cache OCSP responses on start (and
schedule) instead of when needed. An OCSP responder in the same Apache
instance won't be ready while the mod_gnutls post_config hook is
executing.

The changes to lock file handling included in this patch mean that
most parts of the test framework won't need to check which locking
method (if any) is used, they can just pass a lock file which is then
used for flock or PID file checks depending on ./configure results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-27_OCSP_server.bash

    ra09df8c r94430e6  
    44# Skip if OCSP tests are not enabled
    55[ -n "${OCSP_PORT}" ] || exit 77
     6
     7: ${srcdir:="."}
     8. ${srcdir}/common.bash
     9netns_reexec ${@}
     10
     11. $(dirname ${0})/proxy_backend.bash
     12
     13testdir="${srcdir}/tests/27_OCSP_server"
     14TEST_NAME="$(basename ${testdir})"
     15
     16backend_apache "${testdir}" "ocsp.conf" start "${OCSP_LOCK}"
    617
    718# trigger OCSP server test in the runtests script
     
    1223${srcdir}/runtests t-27
    1324ret=${?}
     25
     26backend_apache "${testdir}" "ocsp.conf" stop
    1427
    1528echo "Checking if client actually got a stapled response."
Note: See TracChangeset for help on using the changeset viewer.