~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to cpp/test/Glacier2/ssl/run.py

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
# **********************************************************************
3
3
#
4
 
# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
 
4
# Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
5
5
#
6
6
# This copy of Ice is licensed to you under the terms described in the
7
7
# ICE_LICENSE file included in this distribution.
21
21
from scripts import *
22
22
 
23
23
server = os.path.join(os.getcwd(), "server")
 
24
client = os.path.join(os.getcwd(), "client")
 
25
router = TestUtil.getGlacier2Router()
 
26
 
 
27
targets = []
 
28
if TestUtil.appverifier:
 
29
    targets = [server, client, router]
 
30
    TestUtil.setAppVerifierSettings(targets)
24
31
 
25
32
print "starting server...",
26
33
serverProc = TestUtil.startServer(server)
27
34
print "ok"
28
35
 
29
 
router = os.path.join(TestUtil.getCppBinDir(), "glacier2router")
30
 
 
31
36
args = ' --Ice.Warn.Dispatch=0' + \
32
37
       ' --Glacier2.AddSSLContext=1' + \
33
 
       ' --Glacier2.Client.Endpoints="tcp -h 127.0.0.1 -p 12347 -t 10000:ssl -h 127.0.0.1 -p 12348 -t 10000"' + \
34
 
       ' --Glacier2.Server.Endpoints="tcp -h 127.0.0.1 -t 10000"' \
35
 
       ' --Ice.Admin.Endpoints="tcp -h 127.0.0.1 -p 12349 -t 10000"' + \
 
38
       ' --Glacier2.AddConnectionContext=1' + \
 
39
       ' --Glacier2.Client.Endpoints="tcp -h 127.0.0.1 -p 12347:ssl -h 127.0.0.1 -p 12348"' + \
 
40
       ' --Glacier2.Server.Endpoints="tcp -h 127.0.0.1"' \
 
41
       ' --Ice.Admin.Endpoints="tcp -h 127.0.0.1 -p 12349"' + \
36
42
       ' --Ice.Admin.InstanceName=Glacier2' + \
37
 
       ' --Glacier2.SessionManager="sessionmanager:tcp -h 127.0.0.1 -p 12350 -t 10000"' + \
38
 
       ' --Glacier2.PermissionsVerifier="Glacier2/NullPermissionsVerifier"' + \
39
 
       ' --Glacier2.SSLSessionManager="sslsessionmanager:tcp -h 127.0.0.1 -p 12350 -t 10000"' + \
40
 
       ' --Glacier2.SSLPermissionsVerifier="sslverifier:tcp -h 127.0.0.1 -p 12350 -t 10000"'
 
43
       ' --Glacier2.SessionManager="sessionmanager:tcp -h 127.0.0.1 -p 12350"' + \
 
44
       ' --Glacier2.PermissionsVerifier="verifier:tcp -h 127.0.0.1 -p 12350"' + \
 
45
       ' --Glacier2.SSLSessionManager="sslsessionmanager:tcp -h 127.0.0.1 -p 12350"' + \
 
46
       ' --Glacier2.SSLPermissionsVerifier="sslverifier:tcp -h 127.0.0.1 -p 12350"'
41
47
 
42
48
routerCfg = TestUtil.DriverConfig("server")
43
49
routerCfg.protocol = "ssl"
47
53
 
48
54
clientCfg = TestUtil.DriverConfig("client")
49
55
clientCfg.protocol = "ssl"
50
 
client = os.path.join(os.getcwd(), "client")
 
56
 
51
57
print "starting client...",
52
58
clientProc = TestUtil.startClient(client, "", clientCfg, startReader = False)
53
59
print "ok"
56
62
clientProc.waitTestSuccess()
57
63
serverProc.waitTestSuccess()
58
64
starterProc.waitTestSuccess()
 
65
 
 
66
if TestUtil.appverifier:
 
67
    TestUtil.appVerifierAfterTestEnd(targets)