tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

h2spectest.sh (448B)


      1 #!/usr/bin/env bash
      2 # A test script that runs the example Python Twisted server and then runs
      3 # h2spec against it. Prints the output of h2spec. This script does not expect
      4 # to be run directly, but instead via `tox -e h2spec`.
      5 
      6 set -x
      7 
      8 # Kill all background jobs on exit.
      9 trap 'kill $(jobs -p)' EXIT
     10 
     11 pushd examples/asyncio
     12 python asyncio-server.py  &
     13 popd
     14 
     15 # Wait briefly to let the server start up
     16 sleep 2
     17 
     18 # Go go go!
     19 h2spec -k -t -v -p 8443 $@