source: mod_gnutls/test/test-28_HTTP2_support.bash @ 3039495

asyncioproxy-ticket
Last change on this file since 3039495 was 0909c92, checked in by Fiona Klute <fiona.klute@…>, 16 months 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
5set -e
6
7if [ ! -r ${AP_LIBEXECDIR}/mod_http2.so ]; then
8    echo "mod_http2.so not found, skipping." 2>&1
9    exit 77
10elif [ "$(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
14fi
15
16# expected output files
17log="outputs/28_HTTP2_support.log"
18output="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
23echo "Checking for HTTP/2 in logged header:"
24grep "HTTP/2 200" "${log}"
25echo "Checking for TLS session status:"
26grep "Current TLS session: (TLS" "${output}"
Note: See TracBrowser for help on using the repository browser.