diff options
author | Benoit Foucher <benoit@zeroc.com> | 2018-07-19 18:01:34 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2018-07-19 18:01:34 +0200 |
commit | 017299c3f1a07f5639451f4e1d4fb73b984d00a8 (patch) | |
tree | 074636a241b3ec29fda7b2dea6269b7aceaf20a4 /scripts/tests | |
parent | Fixes for cs:namespace metadata directive (diff) | |
download | ice-017299c3f1a07f5639451f4e1d4fb73b984d00a8.tar.bz2 ice-017299c3f1a07f5639451f4e1d4fb73b984d00a8.tar.xz ice-017299c3f1a07f5639451f4e1d4fb73b984d00a8.zip |
Fixed .NET Core multicast support (fixes #29)
Diffstat (limited to 'scripts/tests')
-rw-r--r-- | scripts/tests/Ice/udp.py | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/scripts/tests/Ice/udp.py b/scripts/tests/Ice/udp.py index d9d70df29a7..d3e16c3ce4d 100644 --- a/scripts/tests/Ice/udp.py +++ b/scripts/tests/Ice/udp.py @@ -14,20 +14,12 @@ from Util import * # options=lambda current: { "protocol": ["tcp", "ws"] } if current.config.uwp else {} -class IceUdpTestSuite(TestSuite): +global currentMapping # The mapping for which this test suite is being loaded - def setup(self, current): - TestSuite.setup(self, current) +if isinstance(currentMapping, AndroidMappingMixin): + testcase = ClientServerTestCase(server=Server(ready="McastTestAdapter")) +else: + testcase = ClientServerTestCase(client=Client(args=[5]), + servers=[Server(args=[i], ready="McastTestAdapter") for i in range(0, 5)]) - n = 1 if (isinstance(self.getMapping(), AndroidMapping) or - isinstance(self.getMapping(), AndroidCompatMapping)) else 5 - # - # Start n servers - # - servers=range(0, n) - - self.testcases = {} # Clear default test cases - self.addTestCase(ClientServerTestCase(client=Client(args=[n]), - servers=[Server(args=[i], ready="McastTestAdapter") for i in servers])) - -IceUdpTestSuite(__name__, multihost=False, options=options) +TestSuite(__name__, [ testcase ], multihost=False, options=options) |