diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-01-07 15:11:14 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-01-07 15:11:14 +0100 |
commit | c126ec03755c9cea578c3b6584ed64c7ba065232 (patch) | |
tree | 453ad5f807fdca1deaa8b16ee62853b414ba1e58 /objc/demo/Manual/simple_filesystem/expect.py | |
parent | ICE-6082 added sndBufSize and rcvBufSize to UDPEndpointInfo (diff) | |
download | ice-c126ec03755c9cea578c3b6584ed64c7ba065232.tar.bz2 ice-c126ec03755c9cea578c3b6584ed64c7ba065232.tar.xz ice-c126ec03755c9cea578c3b6584ed64c7ba065232.zip |
Added Objective-C mapping
Diffstat (limited to 'objc/demo/Manual/simple_filesystem/expect.py')
-rwxr-xr-x | objc/demo/Manual/simple_filesystem/expect.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/objc/demo/Manual/simple_filesystem/expect.py b/objc/demo/Manual/simple_filesystem/expect.py new file mode 100755 index 00000000000..f99aae6caca --- /dev/null +++ b/objc/demo/Manual/simple_filesystem/expect.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved. +# +# This copy of Ice Touch is licensed to you under the terms described in the +# ICE_TOUCH_LICENSE file included in this distribution. +# +# ********************************************************************** + +import sys, os + +path = [ ".", "..", "../..", "../../..", "../../../.." ] +head = os.path.dirname(sys.argv[0]) +if len(head) > 0: + path = [os.path.join(head, p) for p in path] +path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "demoscript")) ] +if len(path) == 0: + raise "can't find toplevel directory!" +sys.path.append(path[0]) + +from demoscript import * + +import signal + +server = Util.spawn('./server --Ice.PrintAdapterReady') +server.expect('.* ready') + +print "testing...", +sys.stdout.flush() +client = Util.spawn('./client') +client.expect('Contents of root directory:\n.*Down to a sunless sea.') +client.waitTestSuccess() +server.kill(signal.SIGINT) +server.waitTestSuccess(-2) +print "ok" |