File: run-server.sh

package info (click to toggle)
python-tornado 6.2.0-3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,396 kB
  • sloc: python: 27,837; javascript: 156; sh: 99; ansic: 58; xml: 49; makefile: 48; sql: 23
file content (33 lines) | stat: -rwxr-xr-x 791 bytes parent folder | download | duplicates (3)
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/py39/bin/python server.py --port=9002 &
PY39_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 $PY39_SERVER_PID
kill $PYPY_SERVER_PID
wait

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