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"
|