diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-10-19 02:27:18 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-10-19 02:27:18 +0000 |
commit | 4ee06da3e23c279897cef5b2b51487875b4486b7 (patch) | |
tree | e2080691778256ebf32ceabc7d8edce6e869fbad /cpp/test/Ice/stream/run.py | |
parent | updating dependencies (diff) | |
download | ice-4ee06da3e23c279897cef5b2b51487875b4486b7.tar.bz2 ice-4ee06da3e23c279897cef5b2b51487875b4486b7.tar.xz ice-4ee06da3e23c279897cef5b2b51487875b4486b7.zip |
adding streaming API
Diffstat (limited to 'cpp/test/Ice/stream/run.py')
-rwxr-xr-x | cpp/test/Ice/stream/run.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/cpp/test/Ice/stream/run.py b/cpp/test/Ice/stream/run.py new file mode 100755 index 00000000000..1f5114d1e77 --- /dev/null +++ b/cpp/test/Ice/stream/run.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2004 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 + +client = os.path.join(toplevel, "test", "Ice", "stream", "client") + +print "starting test...", +clientPipe = os.popen(client + TestUtil.clientOptions + " 2>&1") +print "ok" + +TestUtil.printOutputFromPipe(clientPipe) + +clientStatus = clientPipe.close() + +if clientStatus: + TestUtil.killServers() + sys.exit(1) + +sys.exit(0) |