source: mod_gnutls/test/test-27_OCSP_server.bash @ 05984a0

proxy-ticket
Last change on this file since 05984a0 was 05984a0, checked in by Fiona Klute <fiona.klute@…>, 7 months ago

Replace "runtests" with "runtest.py"

This is the next step from handling HTTP requests and responses in
Python. In particular error handling is a lot easier to do in Python
than using Bash trap functions.

  • Property mode set to 100755
File size: 489 bytes
Line 
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
7log="outputs/27_OCSP_server.log"
8${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 27 \
9         --log-connection "${log}"
10ret=${?}
11
12echo "Checking if client actually got a stapled response."
13if grep -P "^- Options: .*OCSP status request," "${log}"; then
14    echo "OK"
15else
16    echo "Error: \"OCSP status request\" option is missing!"
17    ret=1
18fi
19
20exit ${ret}
Note: See TracBrowser for help on using the repository browser.