refine test
This commit is contained in:
parent
4fd19a7714
commit
0592fcefbd
1 changed files with 4 additions and 4 deletions
8
test.py
8
test.py
|
@ -7,11 +7,11 @@ import signal
|
||||||
import select
|
import select
|
||||||
import time
|
import time
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
from shadowsocks import encrypt_salsa20
|
|
||||||
|
|
||||||
encrypt_salsa20.test()
|
if 'salsa20' in sys.argv[-1]:
|
||||||
|
from shadowsocks import encrypt_salsa20
|
||||||
print 'encryption test passed'
|
encrypt_salsa20.test()
|
||||||
|
print 'encryption test passed'
|
||||||
|
|
||||||
p1 = Popen(['python', 'shadowsocks/server.py', '-c', sys.argv[-1]], stdin=PIPE,
|
p1 = Popen(['python', 'shadowsocks/server.py', '-c', sys.argv[-1]], stdin=PIPE,
|
||||||
stdout=PIPE, stderr=PIPE, close_fds=True)
|
stdout=PIPE, stderr=PIPE, close_fds=True)
|
||||||
|
|
Loading…
Reference in a new issue