diff options
Diffstat (limited to 'java/test/Ice/proxy/run.py')
-rwxr-xr-x | java/test/Ice/proxy/run.py | 41 |
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) |