diff options
author | Michi Henning <michi@zeroc.com> | 2003-05-20 07:53:29 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-05-20 07:53:29 +0000 |
commit | dcc2b4d839ee93c145fc321cc95b9f54e3b6c685 (patch) | |
tree | 3cec0953487f7ab3e3d8fed1f0e8d068bf189f50 /java/config/TestUtil.py | |
parent | Removed two slicing tests that can't be implemented in Java. (diff) | |
download | ice-dcc2b4d839ee93c145fc321cc95b9f54e3b6c685.tar.bz2 ice-dcc2b4d839ee93c145fc321cc95b9f54e3b6c685.tar.xz ice-dcc2b4d839ee93c145fc321cc95b9f54e3b6c685.zip |
Changed marshaling for sizes: sizes of up to 254 are now marshaled in a
single byte. Added appropriate tests for this to Ice/test/operations.
Finished slicing for icej. All tests pass. Removed remaining trace.
Diffstat (limited to 'java/config/TestUtil.py')
-rw-r--r-- | java/config/TestUtil.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/java/config/TestUtil.py b/java/config/TestUtil.py index da5abdbf54e..0aa8d7c6ab5 100644 --- a/java/config/TestUtil.py +++ b/java/config/TestUtil.py @@ -147,6 +147,34 @@ def clientServerTestWithOptions(additionalServerOptions, additionalClientOptions killServers() sys.exit(1) +def clientServerTestWithClasspath(serverClasspath, clientClasspath): + + classpath = os.getenv("CLASSPATH", "") + scp = serverClasspath + sep + classpath + ccp = clientClasspath + sep + classpath + + server = "java -ea -cp " + scp + " Server --Ice.ProgramName=Server" + client = "java -ea -cp " + ccp + " Client --Ice.ProgramName=Client" + + print "starting server...", + serverPipe = os.popen(server + serverOptions) + getAdapterReady(serverPipe) + print "ok" + + print "starting client...", + clientPipe = os.popen(client + clientOptions) + print "ok" + + for output in clientPipe.xreadlines(): + print output, + + clientStatus = clientPipe.close() + serverStatus = serverPipe.close() + + if clientStatus or serverStatus: + killServers() + sys.exit(1) + def clientServerTest(): clientServerTestWithOptions("", "") |