diff options
Diffstat (limited to 'demoscript/Ice/multicast.py')
-rw-r--r-- | demoscript/Ice/multicast.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/demoscript/Ice/multicast.py b/demoscript/Ice/multicast.py new file mode 100644 index 00000000000..0cf2c4a45e9 --- /dev/null +++ b/demoscript/Ice/multicast.py @@ -0,0 +1,36 @@ +#!/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 sys +import demoscript.pexpect as pexpect + +def run(client, server1, server2, server3): + print "testing multicast...", + sys.stdout.flush() + + client.sendline('t') + server1.expect('Hello World!') + server2.expect('Hello World!') + server3.expect('Hello World!') + + client.sendline('t') + server1.expect('Hello World!') + server2.expect('Hello World!') + server3.expect('Hello World!') + + client.sendline('s') + server1.waitTestSuccess() + server2.waitTestSuccess() + server3.waitTestSuccess() + + client.sendline('x') + client.waitTestSuccess() + + print "ok" |