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/IceStorm/clock.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/IceStorm/clock.py')
-rwxr-xr-x | demoscript/IceStorm/clock.py | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/demoscript/IceStorm/clock.py b/demoscript/IceStorm/clock.py deleted file mode 100755 index 3557c1c426f..00000000000 --- a/demoscript/IceStorm/clock.py +++ /dev/null @@ -1,65 +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, time, signal -from demoscript import Util - -def runtest(icestorm, subCmd, subargs, pubCmd, pubargs): - sys.stdout.write("testing pub%s/sub%s... " % (pubargs, subargs)) - sys.stdout.flush() - sub = Util.spawn('%s --Ice.PrintAdapterReady %s' %(subCmd, subargs)) - sub.expect('.* ready') - - icestorm.expect('subscribeAndGetPublisher:') - - pub = Util.spawn('%s %s' %(pubCmd, pubargs)) - - pub.expect('publishing tick events') - time.sleep(3) - sub.expect('[0-9][0-9]/[0-9][0-9].*\n[0-9][0-9]/[0-9][0-9]') - - pub.kill(signal.SIGINT) - pub.waitTestSuccess() - - sub.kill(signal.SIGINT) - sub.waitTestSuccess() - - if sub.hasInterruptSupport(): - icestorm.expect('unsubscribe:') - print("ok") - -def run(subCmd, pubCmd): - sys.stdout.write("cleaning databases... ") - sys.stdout.flush() - Util.cleanDbDir("db") - print("ok") - - if Util.defaultHost: - args = ' --IceBox.Service.IceStorm="IceStormService,36:createIceStorm --Ice.Config=config.service %s"' % Util.defaultHost - else: - args = '' - - icestorm = Util.spawn('%s --Ice.Config=config.icebox --Ice.PrintAdapterReady %s' % (Util.getIceBox(), args)) - - icestorm.expect('.* ready') - - runtest(icestorm, subCmd, "", pubCmd, "") - - subargs = [" --oneway", " --twoway", " --datagram", " --twoway", " --ordered", " --batch"] - for s in subargs: - runtest(icestorm, subCmd, s, pubCmd, "") - pubargs = [" --oneway", " --datagram", " --twoway" ] - for s in pubargs: - runtest(icestorm, subCmd, "", pubCmd, s) - - admin = Util.spawn(Util.getIceBoxAdmin() + ' --IceBoxAdmin.ServiceManager.Proxy="icebox/admin \ - -f IceBox.ServiceManager:tcp -p 9996 -h 127.0.0.1" shutdown') - admin.waitTestSuccess() - icestorm.waitTestSuccess() |