File: h2spectest.sh

package info (click to toggle)
python-h2 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,652 kB
  • sloc: python: 11,141; makefile: 14; sh: 12
file content (20 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

# A test script that runs the example Python Twisted server and then runs
# h2spec against it. Prints the output of h2spec. This script does not expect
# to be run directly, but instead via `tox -e h2spec`.

set -x

# Kill all background jobs on exit.
trap 'kill $(jobs -p)' EXIT

pushd examples/asyncio
python asyncio-server.py  &
popd

# Wait briefly to let the server start up
sleep 2

# Go go go!
h2spec -k -t -v -p 8443 $@