diff options
author | Matthew Newhook <matthew@zeroc.com> | 2015-03-18 12:58:16 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2015-03-18 12:58:16 -0230 |
commit | 9b7668c7c92cf9cb311fe444cdddb489cd2a219d (patch) | |
tree | 5016567c58c81f5654e9d01935e199c6bf4761d2 /demoscript/IceDiscovery/replication.py | |
parent | VS add-in & build updates: (diff) | |
download | ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.bz2 ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.xz ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.zip |
Removed demos.
Moved demoscript to distribution.
Diffstat (limited to 'demoscript/IceDiscovery/replication.py')
-rw-r--r-- | demoscript/IceDiscovery/replication.py | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/demoscript/IceDiscovery/replication.py b/demoscript/IceDiscovery/replication.py deleted file mode 100644 index 7c400fadf99..00000000000 --- a/demoscript/IceDiscovery/replication.py +++ /dev/null @@ -1,42 +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 -import Expect - -def runtests(client, serverCount): - sys.stdout.write("testing " + str(serverCount) + " server(s)...") - sys.stdout.flush() - client.sendline('5') - client.expect('.*enter the delay between each greetings \(in ms\):.*') - client.sendline('50') - if serverCount == 0: - client.expect('.*NoEndpointException.*') - else: - for i in range (0, 5): - client.expect('Server. says Hello World!') - print("ok") - -def run(client, server1, server2, server3): - runtests(client, 3) - - print("shutdown first server"); - server1.terminate() - runtests(client, 2) - - print("shutdown second server"); - server2.terminate() - runtests(client, 1) - - print("shutdown third server"); - server3.terminate() - runtests(client, 0) - - client.terminate() |