summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-12-06 16:36:08 +0000
committerMarc Laukien <marc@zeroc.com>2002-12-06 16:36:08 +0000
commitfda53102d9aa6ef19694e1b8c0b001cd3aae529e (patch)
tree149a69163e0d631e826ab5b3cb49e32fe9e39d24 /cpp/config/TestUtil.py
parentInitial addition (diff)
downloadice-fda53102d9aa6ef19694e1b8c0b001cd3aae529e.tar.bz2
ice-fda53102d9aa6ef19694e1b8c0b001cd3aae529e.tar.xz
ice-fda53102d9aa6ef19694e1b8c0b001cd3aae529e.zip
amd merge
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index e9204085a5e..23c00e66af7 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -166,19 +166,20 @@ serverOptions = serverProtocol + defaultHost + commonServerOptions
clientServerOptions = clientServerProtocol + defaultHost + commonServerOptions
collocatedOptions = clientServerProtocol + defaultHost
-def clientServerTestWithOptions(name, additionalServerOptions, additionalClientOptions):
+def clientServerTestWithOptionsAndNames(name, additionalServerOptions, additionalClientOptions, \
+ serverName, clientName):
testdir = os.path.join(toplevel, "test", name)
- server = os.path.join(testdir, "server")
- client = os.path.join(testdir, "client")
+ server = os.path.join(testdir, serverName)
+ client = os.path.join(testdir, clientName)
- print "starting server...",
+ print "starting " + serverName + "...",
serverPipe = os.popen(server + serverOptions + additionalServerOptions)
getServerPid(serverPipe)
getAdapterReady(serverPipe)
print "ok"
- print "starting client...",
+ print "starting " + clientName + "...",
clientPipe = os.popen(client + clientOptions + additionalClientOptions)
print "ok"
@@ -192,6 +193,10 @@ def clientServerTestWithOptions(name, additionalServerOptions, additionalClientO
killServers()
sys.exit(1)
+def clientServerTestWithOptions(name, additionalServerOptions, additionalClientOptions):
+
+ clientServerTestWithOptionsAndNames(name, additionalServerOptions, additionalClientOptions, "server", "client")
+
def clientServerTest(name):
clientServerTestWithOptions(name, "", "")