You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
301 B
24 lines
301 B
9 years ago
|
#!/bin/bash
|
||
|
|
||
|
PYTHON="coverage run -p -a"
|
||
|
|
||
|
mkdir -p tmp
|
||
|
|
||
|
$PYTHON shadowsocks/local.py -c tests/aes.json &
|
||
|
LOCAL=$!
|
||
|
|
||
|
$PYTHON shadowsocks/server.py -c tests/aes.json --forbidden-ip "" &
|
||
|
SERVER=$!
|
||
|
|
||
|
sleep 3
|
||
|
|
||
|
python tests/test_udp_src.py
|
||
|
r=$?
|
||
|
|
||
|
kill -s SIGINT $LOCAL
|
||
|
kill -s SIGINT $SERVER
|
||
|
|
||
|
sleep 2
|
||
|
|
||
|
exit $r
|