summaryrefslogtreecommitdiff
path: root/java/test/Ice/slicing/exceptions/run.py
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-02-24 07:09:29 +0000
committerMichi Henning <michi@zeroc.com>2004-02-24 07:09:29 +0000
commit0802f5204cd7a50007b97e71aa8b58bfe9d03c95 (patch)
treea624d91c4848c2f5296a868f47bdd6bea161a881 /java/test/Ice/slicing/exceptions/run.py
parent*** empty log message *** (diff)
downloadice-0802f5204cd7a50007b97e71aa8b58bfe9d03c95.tar.bz2
ice-0802f5204cd7a50007b97e71aa8b58bfe9d03c95.tar.xz
ice-0802f5204cd7a50007b97e71aa8b58bfe9d03c95.zip
Added AMI and AMD tests for exception slicing. Removed a few redundant
semicolons from the source.
Diffstat (limited to 'java/test/Ice/slicing/exceptions/run.py')
-rwxr-xr-xjava/test/Ice/slicing/exceptions/run.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/java/test/Ice/slicing/exceptions/run.py b/java/test/Ice/slicing/exceptions/run.py
index 94ace071e25..ed558bf0436 100755
--- a/java/test/Ice/slicing/exceptions/run.py
+++ b/java/test/Ice/slicing/exceptions/run.py
@@ -27,7 +27,31 @@ import TestUtil
name = os.path.join("Ice", "slicing", "exceptions")
testdir = os.path.join(toplevel, "test", name)
+nameAMD = os.path.join("Ice", "slicing", "exceptionsAMD")
+testdirAMD = os.path.join(toplevel, "test", nameAMD)
+print "tests with regular server."
TestUtil.clientServerTestWithClasspath(os.path.join(testdir, "sclasses"), os.path.join(testdir, "cclasses"))
+print "tests with AMD server."
+server = "java -ea Server --Ice.ProgramName=Server "
+client = "java -ea Client --Ice.ProgramName=Client "
+print "starting server...",
+cp = os.getenv("CLASSPATH", "")
+os.environ["CLASSPATH"] = os.path.join(testdirAMD, "classes") + TestUtil.sep + cp
+serverPipe = os.popen(server + TestUtil.serverOptions)
+TestUtil.getAdapterReady(serverPipe)
+print "ok"
+print "starting client...",
+os.environ["CLASSPATH"] = cp
+os.environ["CLASSPATH"] = os.path.join(testdir, "cclasses") + TestUtil.sep + cp
+clientPipe = os.popen(client + TestUtil.clientOptions)
+print "ok"
+TestUtil.printOutputFromPipe(clientPipe)
+clientStatus = clientPipe.close()
+serverStatus = serverPipe.close()
+if clientStatus or serverStatus:
+ TestUtil.killServers()
+ sys.exit(1)
+
sys.exit(0)