summaryrefslogtreecommitdiff
path: root/js/test/Common/run.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-01-14 09:22:33 +0100
committerJose <jose@zeroc.com>2015-01-14 09:22:33 +0100
commit195454df0895051579cd83d6e64d2308a8f42c16 (patch)
tree6527548e026a929f410aef51ad467b26c4e8bf2c /js/test/Common/run.py
parentFix another bug with hello demos. (diff)
downloadice-195454df0895051579cd83d6e64d2308a8f42c16.tar.bz2
ice-195454df0895051579cd83d6e64d2308a8f42c16.tar.xz
ice-195454df0895051579cd83d6e64d2308a8f42c16.zip
JavaScript updates to use gulp and add npm and bower packages
Diffstat (limited to 'js/test/Common/run.py')
-rwxr-xr-xjs/test/Common/run.py48
1 files changed, 8 insertions, 40 deletions
diff --git a/js/test/Common/run.py b/js/test/Common/run.py
index 24a16f8054c..686edf1f669 100755
--- a/js/test/Common/run.py
+++ b/js/test/Common/run.py
@@ -123,7 +123,6 @@ class ControllerI(Test.Controller):
self.currentServer = None
def runServer(self, lang, name, protocol, host, options, current):
-
# If server is still running, terminate it
if self.currentServer:
try:
@@ -177,57 +176,26 @@ class Reader(threading.Thread):
class Server(Ice.Application):
def run(self, args):
- jsDir = os.path.join(TestUtil.toplevel, "js")
- nodeCmd = TestUtil.getNodeCommand()
- httpServer = subprocess.Popen(nodeCmd + " \"" + os.path.join(jsDir, "bin", "HttpServer.js") + "\"",
- shell = True,
- stdin = subprocess.PIPE,
- stdout = subprocess.PIPE,
- stderr = None,
- bufsize = 0)
- #
- # Wait for the HttpServer to start
- #
- while True:
- line = httpServer.stdout.readline()
- if httpServer.poll() is not None and not line:
- #process terminated
- return httpServer.poll()
-
- if type(line) != str:
- line = line.decode()
- line = line.strip("\n")
- if len(line) > 0:
- print(line)
- if line.find("listening on ports 8080 (http) and 9090 (https)...") != -1:
- break
-
- reader = Reader(httpServer)
- reader.start()
-
adapter = self.communicator().createObjectAdapter("ControllerAdapter")
adapter.add(ControllerI(), self.communicator().stringToIdentity("controller"))
adapter.activate()
self.communicator().waitForShutdown()
-
- if httpServer.poll() is None:
- httpServer.terminate()
-
- reader.join()
return 0
app = Server()
initData = Ice.InitializationData()
initData.properties = Ice.createProperties();
initData.properties.setProperty("Ice.Plugin.IceSSL", "IceSSL:createIceSSL")
-initData.properties.setProperty("IceSSL.DefaultDir", os.path.join(TestUtil.toplevel, "certs"));
-initData.properties.setProperty("IceSSL.CertAuthFile", "cacert.pem");
-initData.properties.setProperty("IceSSL.CertFile", "s_rsa1024_pub.pem");
-initData.properties.setProperty("IceSSL.KeyFile", "s_rsa1024_priv.pem");
-initData.properties.setProperty("IceSSL.Keychain", "test.keychain");
-initData.properties.setProperty("IceSSL.KeychainPassword", "password");
+initData.properties.setProperty("IceSSL.DefaultDir", os.path.join(TestUtil.toplevel, "certs"))
+initData.properties.setProperty("IceSSL.CertAuthFile", "cacert.pem")
+initData.properties.setProperty("IceSSL.CertFile", "s_rsa1024_pub.pem")
+initData.properties.setProperty("IceSSL.KeyFile", "s_rsa1024_priv.pem")
+initData.properties.setProperty("IceSSL.Keychain", "test.keychain")
+initData.properties.setProperty("IceSSL.KeychainPassword", "password")
initData.properties.setProperty("IceSSL.VerifyPeer", "0");
initData.properties.setProperty("Ice.ThreadPool.Server.SizeMax", "10")
+#initData.properties.setProperty("Ice.Trace.Network", "3")
+#initData.properties.setProperty("Ice.Trace.Protocol", "1")
initData.properties.setProperty("ControllerAdapter.Endpoints", "ws -p 12009:wss -p 12008")
if TestUtil.isDarwin():