asyncioproxy-ticket
Last change
on this file since dd91d9c was
05984a0,
checked in by Fiona Klute <fiona.klute@…>, 14 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 | |
---|
7 | log="outputs/27_OCSP_server.log" |
---|
8 | ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 27 \ |
---|
9 | --log-connection "${log}" |
---|
10 | ret=${?} |
---|
11 | |
---|
12 | echo "Checking if client actually got a stapled response." |
---|
13 | if grep -P "^- Options: .*OCSP status request," "${log}"; then |
---|
14 | echo "OK" |
---|
15 | else |
---|
16 | echo "Error: \"OCSP status request\" option is missing!" |
---|
17 | ret=1 |
---|
18 | fi |
---|
19 | |
---|
20 | exit ${ret} |
---|
Note: See
TracBrowser
for help on using the repository browser.