summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/session/run.py
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2007-11-07 14:59:34 -0330
committerBrent Eagles <brent@zeroc.com>2007-11-07 14:59:34 -0330
commit676286717393ad5a1dfecac80022ce85cd503711 (patch)
treefbf5f846218fcac6de115bea01fe1572d309d0c2 /cpp/test/IceGrid/session/run.py
parent- Fixing bug 2522 for Python. This involved adding the C++ class (diff)
downloadice-676286717393ad5a1dfecac80022ce85cd503711.tar.bz2
ice-676286717393ad5a1dfecac80022ce85cd503711.tar.xz
ice-676286717393ad5a1dfecac80022ce85cd503711.zip
- Moved cpp/slice to slice
- Merged all TestUtil.py modules to config/TestUtil.py - Moved all certs to config/certs - Updated test scripts to refer to new TestUtil.py module and use new interfaces - Updated build systems to refer to new slice location - Moved cpp/install to distribution - Moved and merged all IceGridAdmin.py modules to config. - Modified build system to deal with new build logic. That is there are 3 basic ways to find the slice translators and runtime: ICE_HOME, an RPM install and the source distribution. Automatically detecting Ice in a default install location is now problematic and no longer done.
Diffstat (limited to 'cpp/test/IceGrid/session/run.py')
-rwxr-xr-xcpp/test/IceGrid/session/run.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/cpp/test/IceGrid/session/run.py b/cpp/test/IceGrid/session/run.py
index 1cc0b5405a8..8643ca13827 100755
--- a/cpp/test/IceGrid/session/run.py
+++ b/cpp/test/IceGrid/session/run.py
@@ -28,7 +28,7 @@ if not TestUtil.isWin32() and os.getuid() == 0:
sys.exit(0)
name = os.path.join("IceGrid", "session")
-testdir = os.path.join(toplevel, "test", name)
+testdir = os.path.dirname(os.path.abspath(__file__))
node1Dir = os.path.join(testdir, "db", "node-1")
if not os.path.exists(node1Dir):
@@ -37,10 +37,7 @@ else:
IceGridAdmin.cleanDbDir(node1Dir)
print "starting admin permissions verifier...",
-serverCmd = os.path.join(testdir, "verifier") + TestUtil.commonServerOptions + TestUtil.defaultHost
-if TestUtil.debug:
- print "(" + serverCmd + ")",
-verifierPipe = os.popen(serverCmd + " 2>&1")
+verifierPipe = TestUtil.startServer(os.path.join(testdir, "verifier"), " 2>&1")
TestUtil.getServerPid(verifierPipe)
TestUtil.getAdapterReady(verifierPipe)
print "ok"
@@ -51,9 +48,10 @@ IceGridAdmin.registryOptions += \
r' --IceGrid.Registry.AdminPermissionsVerifier="AdminPermissionsVerifier:tcp -p 12002"'+ \
r' --IceGrid.Registry.SSLPermissionsVerifier="SSLPermissionsVerifier"'
-IceGridAdmin.iceGridTest(name, "application.xml", \
- "--IceDir=\"" + toplevel + "\" --TestDir=\"" + testdir + "\"", \
- '\\"properties-override=' + TestUtil.clientServerOptions.replace("--", "") + '\\"')
+IceGridAdmin.iceGridTest(testdir, name, "application.xml", \
+ "--IceDir=\"" + TestUtil.getMappingDir(__file__) + "\" --TestDir=\"" + testdir + "\"", \
+ '\\"properties-override=' + \
+ TestUtil.getCommandLine("", TestUtil.DriverConfig("server")).replace("--", "") + '\\"')
status = TestUtil.closePipe(verifierPipe)