summaryrefslogtreecommitdiff
path: root/cpp/test/Yellow/basicYellow/run.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-12-19 16:25:36 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-12-19 16:25:36 +0000
commit9b810dc117c11967759c85280ba7c780f050b013 (patch)
tree71de09d58f26bd0c96759fc48ef2515e7f2c0b6c /cpp/test/Yellow/basicYellow/run.py
parentRemoved Yellow + clear the servant locator map in ObjectAdapter. (diff)
downloadice-9b810dc117c11967759c85280ba7c780f050b013.tar.bz2
ice-9b810dc117c11967759c85280ba7c780f050b013.tar.xz
ice-9b810dc117c11967759c85280ba7c780f050b013.zip
Removed Yellow.
Diffstat (limited to 'cpp/test/Yellow/basicYellow/run.py')
-rwxr-xr-xcpp/test/Yellow/basicYellow/run.py82
1 files changed, 0 insertions, 82 deletions
diff --git a/cpp/test/Yellow/basicYellow/run.py b/cpp/test/Yellow/basicYellow/run.py
deleted file mode 100755
index 0357852c4b9..00000000000
--- a/cpp/test/Yellow/basicYellow/run.py
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/usr/bin/env python
-# **********************************************************************
-#
-# Copyright (c) 2002
-# ZeroC, Inc.
-# Billerica, MA, USA
-#
-# All Rights Reserved.
-#
-# Ice is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License version 2 as published by
-# the Free Software Foundation.
-#
-# **********************************************************************
-
-import os, sys, time
-
-for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
- toplevel = os.path.normpath(toplevel)
- if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
- break
-else:
- raise "can't find toplevel directory!"
-
-sys.path.append(os.path.join(toplevel, "config"))
-import TestUtil
-
-name = os.path.join("Yellow", "basicYellow")
-testdir = os.path.join(toplevel, "test", name)
-
-IceBox = os.path.join(toplevel, "bin", "icebox")
-IceBoxAdmin = os.path.join(toplevel, "bin", "iceboxadmin")
-
-IceBoxEndpoints=' --IceBox.ServiceManager.Endpoints="default -p 12345"'
-YellowService=" --IceBox.Service.Yellow=YellowService:create" + \
- ' --Yellow.Query.Endpoints="default -p 12346" --Yellow.Admin.Endpoints="default -p 12347"' + \
- ' --IceBox.PrintServicesReady=Yellow'
-
-dbEnvName = os.path.join(testdir, "db")
-TestUtil.cleanDbDir(dbEnvName)
-YellowDBEnv=" --IceBox.DBEnvName.Yellow=" + dbEnvName
-
-print "starting yellow service...",
-command = IceBox + TestUtil.clientServerOptions + IceBoxEndpoints + YellowService + YellowDBEnv
-IceBoxPipe = os.popen(command)
-TestUtil.getServerPid(IceBoxPipe)
-TestUtil.waitServiceReady(IceBoxPipe, "Yellow")
-print "ok"
-
-client = os.path.join(testdir, "client")
-
-#
-# Start the client.
-#
-print "starting client...",
-command = client + TestUtil.clientOptions
-clientPipe = os.popen(command)
-print "ok"
-
-for output in clientPipe.xreadlines():
- print output,
-
-#
-# Shutdown yellow.
-#
-print "shutting down yellow service...",
-command = IceBoxAdmin + TestUtil.clientOptions + IceBoxEndpoints + r' shutdown'
-IceBoxAdminPipe = os.popen(command)
-IceBoxAdminStatus = IceBoxAdminPipe.close()
-if IceBoxAdminStatus:
- TestUtil.killServers()
- sys.exit(1)
-print "ok"
-
-YellowStatus = IceBoxPipe.close()
-clientStatus = clientPipe.close();
-
-if YellowStatus or clientStatus:
- TestUtil.killServers()
- sys.exit(1)
-
-sys.exit(0)