asyncioproxy-ticket
Last change
on this file since 0909c92 was
0909c92,
checked in by Fiona Klute <fiona.klute@…>, 2 years ago
|
Add hooks system to the test runner
With this all tests can use runtest.py to set up their
environment. Note that at the moment only the run_connection hook is
implemented.
|
-
Property mode set to
100755
|
File size:
769 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # |
---|
3 | # Check if HTTP/2 connections using mod_gnutls and mod_http2 work |
---|
4 | |
---|
5 | set -e |
---|
6 | |
---|
7 | if [ ! -r ${AP_LIBEXECDIR}/mod_http2.so ]; then |
---|
8 | echo "mod_http2.so not found, skipping." 2>&1 |
---|
9 | exit 77 |
---|
10 | elif [ "$(basename ${HTTP_CLI})" != "curl" ] \ |
---|
11 | || ! ${HTTP_CLI} -V | grep -P '\sHTTP2($|\s)'; then |
---|
12 | echo "Curl not found or does not support HTTP/2, skipping." 2>&1 |
---|
13 | exit 77 |
---|
14 | fi |
---|
15 | |
---|
16 | # expected output files |
---|
17 | log="outputs/28_HTTP2_support.log" |
---|
18 | output="outputs/28_HTTP2_support.output" |
---|
19 | |
---|
20 | ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 28 \ |
---|
21 | --log-connection "${log}" --log-responses "${output}" |
---|
22 | |
---|
23 | echo "Checking for HTTP/2 in logged header:" |
---|
24 | grep "HTTP/2 200" "${log}" |
---|
25 | echo "Checking for TLS session status:" |
---|
26 | grep "Current TLS session: (TLS" "${output}" |
---|
Note: See
TracBrowser
for help on using the repository browser.