From ae58d9f09835de8d57e5ad27d9b33ffbcd0d5092 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Tue, 21 Apr 2009 15:59:33 -0230 Subject: Bug 3912 - added logger plugin demo --- demoscript/Ice/plugin.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 demoscript/Ice/plugin.py (limited to 'demoscript/Ice/plugin.py') 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() -- cgit v1.2.3