summaryrefslogtreecommitdiff
path: root/java/test/Ice/proxy/run.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2007-04-27 08:31:47 +0000
committerMatthew Newhook <matthew@zeroc.com>2007-04-27 08:31:47 +0000
commit49e46bc0f64b88e16aa9c0ecd8c6ed10914e75d0 (patch)
tree26730fcae5d683183069533d5603425de1162e0c /java/test/Ice/proxy/run.py
parentfile run.py was initially added on branch R3_2_branch. (diff)
downloadice-49e46bc0f64b88e16aa9c0ecd8c6ed10914e75d0.tar.bz2
ice-49e46bc0f64b88e16aa9c0ecd8c6ed10914e75d0.tar.xz
ice-49e46bc0f64b88e16aa9c0ecd8c6ed10914e75d0.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2118
Diffstat (limited to 'java/test/Ice/proxy/run.py')
-rwxr-xr-xjava/test/Ice/proxy/run.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/java/test/Ice/proxy/run.py b/java/test/Ice/proxy/run.py
new file mode 100755
index 00000000000..b5ea48f9762
--- /dev/null
+++ b/java/test/Ice/proxy/run.py
@@ -0,0 +1,41 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2003-2007 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
+
+for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
+ toplevel = os.path.normpath(toplevel)
+ if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
+ break
+else:
+ raise "can't find toplevel directory!"
+
+sys.path.append(os.path.join(toplevel, "config"))
+import TestUtil
+
+name = os.path.join("Ice", "proxy")
+testdir = os.path.join(toplevel, "test", name)
+nameAMD = os.path.join("Ice", "proxyAMD")
+testdirAMD = os.path.join(toplevel, "test", nameAMD)
+
+print "tests with regular server."
+classpath = os.getenv("CLASSPATH", "")
+os.environ["CLASSPATH"] = os.path.join(testdir, "classes") + TestUtil.sep + classpath
+TestUtil.clientServerTest()
+
+print "tests with AMD server."
+TestUtil.clientServerTestWithClasspath(\
+ os.path.join(testdirAMD, "classes") + TestUtil.sep + classpath,\
+ os.path.join(testdir, "classes") + TestUtil.sep + classpath)
+
+print "tests with collocated server."
+TestUtil.collocatedTest()
+
+sys.exit(0)