summaryrefslogtreecommitdiff
path: root/java/test/Glacier2/attack/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Glacier2/attack/run.py')
-rwxr-xr-xjava/test/Glacier2/attack/run.py51
1 files changed, 0 insertions, 51 deletions
diff --git a/java/test/Glacier2/attack/run.py b/java/test/Glacier2/attack/run.py
deleted file mode 100755
index c12be9e5baf..00000000000
--- a/java/test/Glacier2/attack/run.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env python
-# **********************************************************************
-#
-# Copyright (c) 2003-2008 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 os, sys
-
-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
-TestUtil.processCmdLine()
-
-testdir = os.path.dirname(os.path.abspath(__file__))
-
-router = os.path.join(TestUtil.getCppBinDir(), "glacier2router")
-
-args = r' --Ice.PrintProcessId' \
- r' --Glacier2.RoutingTable.MaxSize=10' + \
- r' --Glacier2.Client.Endpoints="default -p 12347 -t 10000"' + \
- r' --Ice.Admin.Endpoints="tcp -h 127.0.0.1 -p 12348 -t 10000"' + \
- r' --Ice.Admin.InstanceName=Glacier2' + \
- r' --Glacier2.CryptPasswords="' + os.path.join(testdir, "passwords") + '"'
-
-print "starting router...",
-routerConfig = TestUtil.DriverConfig("server")
-routerConfig.lang = "cpp"
-starterPipe = TestUtil.startServer(router, args + " 2>&1", routerConfig)
-TestUtil.getServerPid(starterPipe)
-TestUtil.getAdapterReady(starterPipe, True, 2)
-print "ok"
-
-name = os.path.join("Glacier2", "attack")
-os.environ["CLASSPATH"] = os.path.join(testdir, "classes") + os.pathsep + os.getenv("CLASSPATH", "")
-
-TestUtil.clientServerTest(name)
-
-if TestUtil.serverStatus():
- sys.exit(1)
-
-sys.exit(0)