summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/udp/run.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-10-23 14:42:59 -0230
committerDwayne Boone <dwayne@zeroc.com>2008-10-23 14:42:59 -0230
commit845b03ddfa20fef3b57818086b6ec7266d8db147 (patch)
treef082980f7fa6c50006f24bedf29423b2bbf9739b /cpp/test/Ice/udp/run.py
parentFixed locator implementation to not serialize anymore locator request for non... (diff)
downloadice-845b03ddfa20fef3b57818086b6ec7266d8db147.tar.bz2
ice-845b03ddfa20fef3b57818086b6ec7266d8db147.tar.xz
ice-845b03ddfa20fef3b57818086b6ec7266d8db147.zip
Bug 3164 - add udp test
Diffstat (limited to 'cpp/test/Ice/udp/run.py')
-rwxr-xr-xcpp/test/Ice/udp/run.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/cpp/test/Ice/udp/run.py b/cpp/test/Ice/udp/run.py
new file mode 100755
index 00000000000..6be57ab25d8
--- /dev/null
+++ b/cpp/test/Ice/udp/run.py
@@ -0,0 +1,40 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
+#
+# This copy of Ice is licensed to you under the terms described in the
+# ICE_LICENSE file included in this distribution.
+#
+# **********************************************************************
+
+import os, sys
+
+path = [ ".", "..", "../..", "../../..", "../../../.." ]
+head = os.path.dirname(sys.argv[0])
+if len(head) > 0:
+ path = [os.path.join(head, p) for p in path]
+path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "scripts", "TestUtil.py")) ]
+if len(path) == 0:
+ raise "can't find toplevel directory!"
+sys.path.append(os.path.join(path[0]))
+from scripts import *
+
+server = os.path.join(os.getcwd(), "server")
+client = os.path.join(os.getcwd(), "client")
+
+num = 5
+
+serverProc = []
+for i in range(0, num):
+ print "starting server #%d..." % (i + 1),
+ serverProc.append(TestUtil.startServer(server, "%d" % (i + 1) , adapter="McastTestAdapter"))
+ print "ok"
+
+print "starting client...",
+clientProc = TestUtil.startClient(client)
+print "ok"
+
+clientProc.waitTestSuccess()
+for p in serverProc:
+ p.waitTestSuccess()