summaryrefslogtreecommitdiff
path: root/demoscript/Ice/session.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/session.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/session.py')
-rw-r--r--demoscript/Ice/session.py51
1 files changed, 0 insertions, 51 deletions
diff --git a/demoscript/Ice/session.py b/demoscript/Ice/session.py
deleted file mode 100644
index 6bad61491b0..00000000000
--- a/demoscript/Ice/session.py
+++ /dev/null
@@ -1,51 +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 run(clientStr, server):
- client = Util.spawn(clientStr)
- client.expect('==>')
- client.sendline('foo')
-
- sys.stdout.write("testing session creation... ")
- sys.stdout.flush()
- server.expect('The session foo is now created.')
- client.sendline('c')
- client.sendline('0')
- server.expect("Hello object #0 for session `foo' says:\nHello foo!")
- client.sendline('1')
- client.expect('Index is too high')
- client.sendline('x')
- client.waitTestSuccess()
- server.expect("The session foo is now destroyed.")
- print("ok")
-
- sys.stdout.write("testing session cleanup... ")
- sys.stdout.flush()
- client = Util.spawn(clientStr)
- client.expect('==>')
- client.sendline('foo')
- server.expect('The session foo is now created.')
- client.sendline('c')
- client.sendline('t')
- client.waitTestSuccess()
- server.expect("The session foo is now destroyed.\n.*The session foo has timed out.", timeout=25)
- print("ok")
-
- client = Util.spawn(clientStr)
- client.expect('==>')
- client.sendline('foo')
- server.expect('The session foo is now created.')
- client.sendline('s')
- server.waitTestSuccess()
-
- client.waitTestSuccess()