aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-01 15:07:09 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-10-01 15:07:09 -0700
commit574eb96053c62d5ad809e36b9bfcc66860331eb2 (patch)
treeb76c885a78214a7698391e98bd52ffffde6e2664
parent8c53160d51aaed62f609058e5f991524c89a3e0a (diff)
make socket server parametrizable
-rwxr-xr-xtests/runner.py4
-rwxr-xr-xtests/socket_server.sh2
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index cd2e2bd6..eab327cc 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -8667,7 +8667,7 @@ elif 'browser' in str(sys.argv):
self.pids = []
def server_func(q):
- proc = Popen([path_from_root('tests', 'socket_server.sh')])
+ proc = Popen([path_from_root('tests', 'socket_server.sh'), '8990'])
q.put(proc.pid)
proc.communicate()
@@ -8708,6 +8708,8 @@ elif 'browser' in str(sys.argv):
with self.WebsockHarness():
self.btest('websockets.c', expected='571')
+ #def test_websockets_bi(self):
+
elif 'benchmark' in str(sys.argv):
# Benchmarks. Run them with argument |benchmark|. To run a specific test, do
# |benchmark.test_X|.
diff --git a/tests/socket_server.sh b/tests/socket_server.sh
index a8a3aa50..4fd2edb1 100755
--- a/tests/socket_server.sh
+++ b/tests/socket_server.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-while true; do (/bin/echo -en "te\x01\xff\x79st\x02") | nc -vvvl 127.0.0.1 8990; done;
+while true; do (/bin/echo -en "te\x01\xff\x79st\x02") | nc -vvvl 127.0.0.1 $1; done;