Changeset 321912b in mod_gnutls


Ignore:
Timestamp:
Oct 16, 2017, 1:53:37 AM (8 weeks ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master
Children:
265159d
Parents:
ee94de5
Message:

Test suite: Start OCSP responder from runtests if config exists

Location:
test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    r1872744 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
  • test/test-27_OCSP_server.bash

    r1872744 r321912b  
    55[ -n "${OCSP_PORT}" ] || exit 77
    66
    7 : ${srcdir:="."}
    8 . ${srcdir}/common.bash
    9 netns_reexec ${@}
    10 
    11 . $(dirname ${0})/apache_service.bash
    12 
    13 testdir="${srcdir}/tests/27_OCSP_server"
    14 TEST_NAME="$(basename ${testdir})"
    15 
    16 apache_service "${testdir}" "ocsp.conf" start "${OCSP_LOCK}"
    17 
    18 # trigger OCSP server test in the runtests script
    19 export CHECK_OCSP_SERVER="true"
    20 echo "OCSP index for the test CA:"
    21 cat authority/ocsp_index.txt
    22 
    237${srcdir}/runtests t-27
    248ret=${?}
    25 
    26 apache_service "${testdir}" "ocsp.conf" stop
    279
    2810echo "Checking if client actually got a stapled response."
Note: See TracChangeset for help on using the changeset viewer.