summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py36
1 files changed, 24 insertions, 12 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index 2a3fc86c7f1..de764030638 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -13,8 +13,8 @@
# protocol. Otherwise TCP is used.
#
-#protocol = "ssl"
-protocol = "tcp"
+protocol = "ssl"
+#protocol = "tcp"
#
# Set compressed to 1 in case you want to run the tests with
@@ -242,16 +242,24 @@ else:
if protocol == "ssl":
plugin = " --Ice.Plugin.IceSSL=IceSSL:create"
clientProtocol = plugin + " --Ice.Default.Protocol=ssl" + \
- " --IceSSL.Client.CertPath=" + os.path.join(toplevel, "certs") + \
- " --IceSSL.Client.Config=client_sslconfig.xml"
+ " --IceSSL.Client.DefaultDir=" + os.path.join(toplevel, "certs") + \
+ " --IceSSL.Client.CertFile=c_rsa1024_pub.pem" + \
+ " --IceSSL.Client.KeyFile=c_rsa1024_priv.pem" + \
+ " --IceSSL.Client.CertAuthFile=cacert.pem"
serverProtocol = plugin + " --Ice.Default.Protocol=ssl" + \
- " --IceSSL.Server.CertPath=" + os.path.join(toplevel, "certs") + \
- " --IceSSL.Server.Config=server_sslconfig.xml"
+ " --IceSSL.Server.DefaultDir=" + os.path.join(toplevel, "certs") + \
+ " --IceSSL.Server.CertFile=s_rsa1024_pub.pem" + \
+ " --IceSSL.Server.KeyFile=s_rsa1024_priv.pem" + \
+ " --IceSSL.Server.CertAuthFile=cacert.pem"
clientServerProtocol = plugin + " --Ice.Default.Protocol=ssl" + \
- " --IceSSL.Client.CertPath=" + os.path.join(toplevel, "certs") + \
- " --IceSSL.Client.Config=sslconfig.xml" + \
- " --IceSSL.Server.CertPath=" + os.path.join(toplevel, "certs") + \
- " --IceSSL.Server.Config=sslconfig.xml"
+ " --IceSSL.Client.DefaultDir=" + os.path.join(toplevel, "certs") + \
+ " --IceSSL.Client.CertFile=c_rsa1024_pub.pem" + \
+ " --IceSSL.Client.KeyFile=c_rsa1024_priv.pem" + \
+ " --IceSSL.Client.CertAuthFile=cacert.pem" + \
+ " --IceSSL.Server.DefaultDir=" + os.path.join(toplevel, "certs") + \
+ " --IceSSL.Server.CertFile=s_rsa1024_pub.pem" + \
+ " --IceSSL.Server.KeyFile=s_rsa1024_priv.pem" + \
+ " --IceSSL.Server.CertAuthFile=cacert.pem"
else:
clientProtocol = ""
serverProtocol = ""
@@ -292,13 +300,17 @@ def clientServerTestWithOptionsAndNames(name, additionalServerOptions, additiona
client = os.path.join(testdir, clientName)
print "starting " + serverName + "...",
- serverPipe = os.popen(server + serverOptions + additionalServerOptions + " 2>&1")
+ serverCmd = server + serverOptions + additionalServerOptions + " 2>&1"
+ #print "serverCmd =", serverCmd
+ serverPipe = os.popen(serverCmd)
getServerPid(serverPipe)
getAdapterReady(serverPipe)
print "ok"
print "starting " + clientName + "...",
- clientPipe = os.popen(client + clientOptions + additionalClientOptions + " 2>&1")
+ clientCmd = client + clientOptions + additionalClientOptions + " 2>&1"
+ #print "clientCmd =", clientCmd
+ clientPipe = os.popen(clientCmd)
print "ok"
printOutputFromPipe(clientPipe)