summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-03-18 17:51:29 +0000
committerAnthony Neal <aneal@zeroc.com>2002-03-18 17:51:29 +0000
commit0e943ab6c7159ac053a9d4da4ff6ac37c801ff38 (patch)
tree07b6189539cfd40c9c6bbf579d0e4b0bb205dbe3 /cpp/config/TestUtil.py
parentbug fix: create copy of Identity (diff)
downloadice-0e943ab6c7159ac053a9d4da4ff6ac37c801ff38.tar.bz2
ice-0e943ab6c7159ac053a9d4da4ff6ac37c801ff38.tar.xz
ice-0e943ab6c7159ac053a9d4da4ff6ac37c801ff38.zip
Renamed all the Ssl* files. Modified the config/TestUtil.py file to include
a clientServerHybridTest - handles the test case that client and server are BOTH client and server roles.
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py34
1 files changed, 32 insertions, 2 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index 2a280874100..fa706036e3b 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -14,8 +14,8 @@
# protocol. Otherwise TCP is used.
#
-protocol = "ssl"
-#protocol = ""
+#protocol = "ssl"
+protocol = ""
#
# Set the host to the host name the test servers are running on. If not
@@ -132,6 +132,36 @@ def clientServerTest(toplevel, name):
break;
print output,
+def clientServerHybridTest(toplevel, name):
+
+ testdir = os.path.join(toplevel, "test", name)
+ server = os.path.join(testdir, "server")
+ client = os.path.join(testdir, "client")
+
+ updatedServerOptions = clientServerOptions.replace("TOPLEVELDIR", toplevel)
+ updatedClientOptions = updatedServerOptions
+
+ print "starting server...",
+ serverPipe = os.popen(server + updatedServerOptions)
+ getServerPid(serverPipe)
+ getAdapterReady(serverPipe)
+ print "ok"
+
+ print "starting client...",
+ clientPipe = os.popen(client + updatedClientOptions)
+ output = clientPipe.readline()
+ if not output:
+ print "failed!"
+ killServers()
+ sys.exit(1)
+ print "ok"
+ print output,
+ while 1:
+ output = clientPipe.readline()
+ if not output:
+ break;
+ print output,
+
def collocatedTest(toplevel, name):
testdir = os.path.join(toplevel, "test", name)