Changeset 321912b in mod_gnutls for test/runtests


Ignore:
Timestamp:
Oct 16, 2017, 1:53:37 AM (11 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
265159d
Parents:
ee94de5
Message:

Test suite: Start OCSP responder from runtests if config exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    ree94de5 r321912b  
    112112    fi
    113113
     114    if [ -r "${testdir}/ocsp.conf" ]; then
     115        apache_service "${testdir}" "ocsp.conf" stop || true
     116    fi
     117
    114118    if [ -n "${sleep_pidfile}" ]; then
    115119        kill_by_pidfile "${sleep_pidfile}"
     
    178182fi
    179183
    180 echo "${testdir}/backend.conf"
     184# Start OCSP responder, if configured
     185if [ -r "${testdir}/ocsp.conf" ]; then
     186    apache_service "${testdir}" "ocsp.conf" start "${OCSP_LOCK}"
     187    CHECK_OCSP_SERVER="true"
     188    if [ -n "${VERBOSE}" ]; then
     189        echo "OCSP index for the test CA:"
     190        cat authority/ocsp_index.txt
     191    fi
     192fi
     193
     194# Start proxy backend server, if configured
    181195if [ -r "${testdir}/backend.conf" ]; then
    182196    apache_service "${testdir}" "backend.conf" start "${BACKEND_LOCK}"
     
    250264fi
    251265
     266if [ -r "${testdir}/ocsp.conf" ]; then
     267    apache_service "${testdir}" "ocsp.conf" stop || true
     268fi
     269
    252270if [ -n "${USE_MSVA}" ]; then
    253271    stop_msva
Note: See TracChangeset for help on using the changeset viewer.