source: mod_gnutls/test/test-27_OCSP_server.bash @ acea635

asynciodebian/masterdebian/stretch-backportsproxy-ticketupstream
Last change on this file since acea635 was 1872744, checked in by Thomas Klute <thomas2.klute@…>, 4 years ago

Test suite: Rename bash function backend_apache to apache_service

  • Property mode set to 100755
File size: 830 bytes
RevLine 
[c4d6e77]1#!/bin/bash
2# Try HTTPS access with OCSP status check
3
4# Skip if OCSP tests are not enabled
5[ -n "${OCSP_PORT}" ] || exit 77
6
[94430e6]7: ${srcdir:="."}
8. ${srcdir}/common.bash
9netns_reexec ${@}
10
[1872744]11. $(dirname ${0})/apache_service.bash
[94430e6]12
13testdir="${srcdir}/tests/27_OCSP_server"
14TEST_NAME="$(basename ${testdir})"
15
[1872744]16apache_service "${testdir}" "ocsp.conf" start "${OCSP_LOCK}"
[94430e6]17
[c4d6e77]18# trigger OCSP server test in the runtests script
19export CHECK_OCSP_SERVER="true"
[10d9053]20echo "OCSP index for the test CA:"
21cat authority/ocsp_index.txt
[c4d6e77]22
23${srcdir}/runtests t-27
[c05780e]24ret=${?}
[94cb972]25
[1872744]26apache_service "${testdir}" "ocsp.conf" stop
[94430e6]27
[a784735]28echo "Checking if client actually got a stapled response."
29if grep -P "^- Options: .*OCSP status request," outputs/27_*.output; then
30    echo "OK"
31else
32    echo "Error: \"OCSP status request\" option is missing!"
33    ret=1
34fi
35
[94cb972]36exit ${ret}
Note: See TracBrowser for help on using the repository browser.