summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2001-11-13 15:42:30 +0000
committerAnthony Neal <aneal@zeroc.com>2001-11-13 15:42:30 +0000
commitfcd722bf5050ea9f3b96288bc30fe539744b3e00 (patch)
treeaaee49bc6dc47c3abd88b3b0c2abe91dd3f2a824 /cpp/config/TestUtil.py
parentminor fixes (diff)
downloadice-fcd722bf5050ea9f3b96288bc30fe539744b3e00.tar.bz2
ice-fcd722bf5050ea9f3b96288bc30fe539744b3e00.tar.xz
ice-fcd722bf5050ea9f3b96288bc30fe539744b3e00.zip
Incorporates SSL, with all Ice tests running under SSL.
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py19
1 files changed, 15 insertions, 4 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index d2e5ded9463..b1711e5463e 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -11,7 +11,10 @@
import sys, os
-serverOptions = " --Ice.PrintProcessId --Ice.PrintAdapterReady --Ice.ServerIdleTime=60"
+protocol = "ssl"
+serverOptions = " --Ice.Protocol=" + protocol + " --Ice.Trace.Security=0 --Ice.PrintProcessId --Ice.PrintAdapterReady --Ice.ServerIdleTime=60 --Ice.Ssl.Config=TOPLEVELDIR/Certs/server_sslconfig.xml"
+clientOptions = " --Ice.Protocol=" + protocol + " --Ice.Trace.Security=0 --Ice.Ssl.Config=TOPLEVELDIR/Certs/client_sslconfig.xml"
+collocatedOptions = " --Ice.Protocol=" + protocol + " --Ice.Trace.Security=0 --Ice.PrintProcessId --Ice.PrintAdapterReady --Ice.ServerIdleTime=60 --Ice.Ssl.Config=TOPLEVELDIR/Certs/sslconfig.xml"
serverPids = []
@@ -56,14 +59,18 @@ def clientServerTest(toplevel, name):
server = os.path.normpath(testdir + "/server")
client = os.path.normpath(testdir + "/client")
+ updatedServerOptions = serverOptions
+ updatedServerOptions = updatedServerOptions.replace("TOPLEVELDIR", toplevel)
print "starting server...",
- serverPipe = os.popen(server + serverOptions)
+ serverPipe = os.popen(server + updatedServerOptions)
getServerPid(serverPipe)
getAdapterReady(serverPipe)
print "ok"
+ updatedClientOptions = clientOptions
+ updatedClientOptions = updatedClientOptions.replace("TOPLEVELDIR", toplevel)
print "starting client...",
- clientPipe = os.popen(client)
+ clientPipe = os.popen(client + updatedClientOptions)
output = clientPipe.readline()
if not output:
print "failed!"
@@ -82,8 +89,12 @@ def collocatedTest(toplevel, name):
testdir = os.path.normpath(toplevel + "/test/" + name)
collocated = os.path.normpath(testdir + "/collocated")
+ updatedCollocatedOptions = collocatedOptions
+ updatedCollocatedOptions = updatedCollocatedOptions.replace("TOPLEVELDIR", toplevel)
+
+ command = collocated + " " + updatedCollocatedOptions
print "starting collocated...",
- collocatedPipe = os.popen(collocated)
+ collocatedPipe = os.popen(command)
output = collocatedPipe.read().strip()
if not output:
print "failed!"