2015-07-10 07:02:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-01-11 16:04:40 +00:00
|
|
|
PYTHON="coverage run -a"
|
2015-07-10 07:02:33 +00:00
|
|
|
|
|
|
|
mkdir -p tmp
|
|
|
|
|
2015-07-10 09:32:31 +00:00
|
|
|
$PYTHON shadowsocks/local.py -c tests/aes.json -v &
|
2015-07-10 07:02:33 +00:00
|
|
|
LOCAL=$!
|
|
|
|
|
2015-07-10 09:32:31 +00:00
|
|
|
$PYTHON shadowsocks/server.py -c tests/aes.json --forbidden-ip "" -v &
|
2015-07-10 07:02:33 +00:00
|
|
|
SERVER=$!
|
|
|
|
|
|
|
|
sleep 3
|
|
|
|
|
|
|
|
python tests/test_udp_src.py
|
|
|
|
r=$?
|
|
|
|
|
|
|
|
kill -s SIGINT $LOCAL
|
|
|
|
kill -s SIGINT $SERVER
|
|
|
|
|
|
|
|
sleep 2
|
|
|
|
|
|
|
|
exit $r
|