summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/replication/test.py
blob: 079a08a495d518119c7ac8e989da1196f070a45a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-
#
# Copyright (c) ZeroC, Inc. All rights reserved.
#

clientProps = lambda process, current: { "ServerDir" : current.getBuildDir("server") }

# Enable some tracing to allow investigating test failures
traceProps = {
    "Ice.Trace.Network" : 2,
    "Ice.Trace.Retry" : 1,
    "Ice.Trace.Protocol" : 1,
    "Ice.ACM.Client.Heartbeat": 2
}

if isinstance(platform, Windows) or os.getuid() != 0:
    TestSuite(__file__,
              [ IceGridTestCase(client=IceGridClient(props=clientProps, traceProps=traceProps)) ],
              runOnMainThread=True,
              multihost=False)