diff options
Diffstat (limited to 'demoscript/Ice/plugin.py')
-rw-r--r-- | demoscript/Ice/plugin.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/demoscript/Ice/plugin.py b/demoscript/Ice/plugin.py new file mode 100644 index 00000000000..ebdf614f9de --- /dev/null +++ b/demoscript/Ice/plugin.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2009 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 +from demoscript import * +from scripts import Expect + +def run(client, server): + print "testing...", + sys.stdout.flush() + client.sendline('t') + server.expect('PRINT: Hello World!') + print "ok" + + client.sendline('s') + server.waitTestSuccess() + + client.sendline('x') + client.waitTestSuccess() |