summaryrefslogtreecommitdiff
path: root/demoscript/Ice/invoke.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2015-03-18 12:58:16 -0230
committerMatthew Newhook <matthew@zeroc.com>2015-03-18 12:58:16 -0230
commit9b7668c7c92cf9cb311fe444cdddb489cd2a219d (patch)
tree5016567c58c81f5654e9d01935e199c6bf4761d2 /demoscript/Ice/invoke.py
parentVS add-in & build updates: (diff)
downloadice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.bz2
ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.xz
ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.zip
Removed demos.
Moved demoscript to distribution.
Diffstat (limited to 'demoscript/Ice/invoke.py')
-rw-r--r--demoscript/Ice/invoke.py59
1 files changed, 0 insertions, 59 deletions
diff --git a/demoscript/Ice/invoke.py b/demoscript/Ice/invoke.py
deleted file mode 100644
index febc92c8a2a..00000000000
--- a/demoscript/Ice/invoke.py
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/env python
-# **********************************************************************
-#
-# Copyright (c) 2003-2015 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 Util
-
-def runDemo(client, server):
- sys.stdout.flush()
- client.sendline('1')
- server.expect("Printing string `The streaming API works!'")
- client.sendline('2')
- server.expect("Printing string sequence \\{'The', 'streaming', 'API', 'works!'\\}");
- client.sendline('3')
- server.expect("Printing dictionary \\{")
- server.expectall(["API=works!", "The=streaming"])
- server.expect("\\}")
- client.sendline('4')
- if Util.getMapping() == "vb":
- server.expect("Printing enum 1")
- client.sendline('5')
- server.expect("Printing struct: name=red, value=0")
- client.sendline('6')
- server.expect("Printing struct sequence: \\{red=0, green=1, blue=2\\}")
- client.sendline('7')
- server.expect("Printing class: s\\.name=blue, s\\.value=2")
- client.sendline('8')
- client.expect("Got string `hello' and class: s\\.name=green, s\\.value=1")
- else:
- server.expect("Printing enum green")
- client.sendline('5')
- server.expect("Printing struct: name=red, value=red")
- client.sendline('6')
- server.expect("Printing struct sequence: \\{red=red, green=green, blue=blue\\}")
- client.sendline('7')
- server.expect("Printing class: s\\.name=blue, s\\.value=blue")
- client.sendline('8')
- client.expect("Got string `hello' and class: s\\.name=green, s\\.value=green")
-
-def run(clientStr, server):
- sys.stdout.write("testing... ")
- sys.stdout.flush()
- client = Util.spawn(clientStr)
- client.expect('==>')
-
- runDemo(client, server)
-
- client.sendline('s')
- server.waitTestSuccess()
-
- client.sendline('x')
- client.waitTestSuccess()
- print("ok")