File: run-server.sh

package info (click to toggle)
python-tornado 4.4.2-1~bpo8%2B2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 3,020 kB
  • sloc: python: 25,036; sh: 130; xml: 49; ansic: 45; makefile: 45; sql: 26
file content (33 lines) | stat: -rwxr-xr-x 791 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# Runs the autobahn websocket conformance test against tornado in both
# python2 and python3.  Output goes in ./reports/servers/index.html.
#
# The --cases and --exclude arguments can be used to run only part of
# the suite.  The default is --exclude="9.*" to skip the relatively slow
# performance tests; pass --exclude="" to override and include them.

set -e

# build/update the virtualenvs
tox

.tox/py27/bin/python server.py --port=9001 &
PY27_SERVER_PID=$!

.tox/py35/bin/python server.py --port=9002 &
PY35_SERVER_PID=$!

.tox/pypy/bin/python server.py --port=9003 &
PYPY_SERVER_PID=$!

sleep 1

.tox/py27/bin/wstest -m fuzzingclient

kill $PY27_SERVER_PID
kill $PY35_SERVER_PID
kill $PYPY_SERVER_PID
wait

echo "Tests complete. Output is in ./reports/servers/index.html"