File: test.sh

package info (click to toggle)
python-socksipy 1.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 164 kB
  • ctags: 115
  • sloc: python: 779; sh: 19; makefile: 3
file content (25 lines) | stat: -rwxr-xr-x 478 bytes parent folder | download
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
#!/bin/bash
shopt -s expand_aliases
type python2 >/dev/null 2>&1 || alias python2='python'

echo "Starting proxy servers..."
python2 socks4server.py > /dev/null &
python2 httpproxy.py > /dev/null &
echo "Ensure a SOCKS5 server is listening"

sleep 2
echo "Python 2.6 tests"
python2.6 sockstest.py
exit

sleep 2
echo "Python 2.7 tests"
python2.7 sockstest.py

sleep 2
echo "Python 3.x tests"
python3 sockstest.py

pkill python2 > /dev/null
./mocks shutdown
echo "Finished tests"