summaryrefslogtreecommitdiff
path: root/scripts/tests/Ice/optional.py
blob: 0de74f758ff9d252028ad6d44a9a9087ec53e292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# **********************************************************************
#
# Copyright (c) 2003-2016 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.
#
# **********************************************************************


testcases = [
    ClientServerTestCase("client/server with compact format"),
    ClientServerTestCase("client/server with sliced format", props={ "Ice.Default.SlicedFormat" : True }),
]

# If the mapping has AMD servers, also run with the AMD servers
if Mapping.getByPath(__name__).hasSource("Ice/optional", "serveramd"):
    testcases += [
        ClientAMDServerTestCase("client/amd server with compact format"),
        ClientAMDServerTestCase("client/amd server with sliced format", props={ "Ice.Default.SlicedFormat" : True }),
    ]

# If the mapping has bidir clients, also run with the bidir clients.
if Mapping.getByPath(__name__).getClientMapping().hasSource("Ice/optional", "clientBidir"):
    testcases += [
        ClientEchoServerTestCase("client/echo server with compact format"),
        ClientEchoServerTestCase("client/echo server with sliced format", props={ "Ice.Default.SlicedFormat" : True }),
    ]

TestSuite(__name__, testcases)