summaryrefslogtreecommitdiff
path: root/demoscript/Ice
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2008-12-26 22:01:19 +0100
committerJose <jose@zeroc.com>2008-12-26 22:01:19 +0100
commitc80a7d15425c30b9e66f7ed7da26632eec14c432 (patch)
tree60f2f061f36c840a091c2bf74fd36a31c12ce07c /demoscript/Ice
parentbug 3617 - more applet fixes (diff)
downloadice-c80a7d15425c30b9e66f7ed7da26632eec14c432.tar.bz2
ice-c80a7d15425c30b9e66f7ed7da26632eec14c432.tar.xz
ice-c80a7d15425c30b9e66f7ed7da26632eec14c432.zip
Fix 3375 - NRVO + custom sequence demo
Diffstat (limited to 'demoscript/Ice')
-rw-r--r--demoscript/Ice/nrvo.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/demoscript/Ice/nrvo.py b/demoscript/Ice/nrvo.py
new file mode 100644
index 00000000000..f0446b677ec
--- /dev/null
+++ b/demoscript/Ice/nrvo.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2003-2008 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 client... ",
+ sys.stdout.flush()
+ client.sendline('1')
+ client.expect('==> ', timeout=2000)
+ client.sendline('2')
+ client.expect('==> ', timeout=2000)
+ client.sendline('3')
+ client.expect('==> ', timeout=2000)
+ client.sendline('s')
+ client.expect('==> ', timeout=2000)
+ client.sendline('x')
+ print "ok"