summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-05-10 18:54:03 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-05-10 18:54:03 +0200
commitf0fbb296946f95b2bd94e86d72df618aadf3268c (patch)
treedb0a9894acd0ff3b0c4efd7ec7dc9bc2d00d56e0 /scripts
parentFix slice/errorDetection test (diff)
downloadice-f0fbb296946f95b2bd94e86d72df618aadf3268c.tar.bz2
ice-f0fbb296946f95b2bd94e86d72df618aadf3268c.tar.xz
ice-f0fbb296946f95b2bd94e86d72df618aadf3268c.zip
Fixed ICE-7849 - Removed IceDiscovery/IceLocatorDiscovery ice_getConnection call, added IceGrid/simple C++11 test
Diffstat (limited to 'scripts')
-rw-r--r--scripts/IceGridUtil.py3
-rw-r--r--scripts/Util.py27
-rw-r--r--scripts/tests/IceDiscovery/simple.py8
-rw-r--r--scripts/tests/IceGrid/simple.py14
4 files changed, 38 insertions, 14 deletions
diff --git a/scripts/IceGridUtil.py b/scripts/IceGridUtil.py
index 2e9ec2b8129..c981b63eaae 100644
--- a/scripts/IceGridUtil.py
+++ b/scripts/IceGridUtil.py
@@ -136,8 +136,6 @@ class IceGridRegistry(ProcessFromBinDir, Server):
pass
def getProps(self, current):
- # NOTE: we use the loopback interface for multicast with IPv6 to prevent failures
- # on some machines which don't really have an IPv6 interface configured.
props = {
'IceGrid.InstanceName' : 'TestIceGrid',
'IceGrid.Registry.PermissionsVerifier' : 'TestIceGrid/NullPermissionsVerifier',
@@ -148,6 +146,7 @@ class IceGridRegistry(ProcessFromBinDir, Server):
'IceGrid.Registry.Internal.Endpoints' : 'default',
'IceGrid.Registry.Client.Endpoints' : self.getEndpoints(current),
'IceGrid.Registry.Discovery.Port' : current.driver.getTestPort(99),
+ "IceGrid.Registry.Discovery.Interface": "::1" if current.config.ipv6 else "127.0.0.1",
'IceGrid.Registry.SessionManager.Endpoints' : 'default',
'IceGrid.Registry.AdminSessionManager.Endpoints' : 'default',
'IceGrid.Registry.SessionTimeout' : 60,
diff --git a/scripts/Util.py b/scripts/Util.py
index d1150fa32cd..479aa590586 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -82,7 +82,7 @@ class Platform:
def getFilters(self, config):
if config.buildConfig in ["static", "cpp11-static"]:
- return (["Ice/.*", "IceSSL/configuration", "IceDiscovery/simple", "IceGrid/simple"],
+ return (["Ice/.*", "IceSSL/configuration", "IceDiscovery/simple", "IceGrid/simple", "Glacier2/application"],
["Ice/library", "Ice/plugin"])
return ([], [])
@@ -2496,10 +2496,15 @@ class CppMapping(Mapping):
return False
# No C++11 tests for IceStorm, IceGrid, etc
- parent = re.match(r'^([\w]*).*', current.testcase.getTestSuite().getId()).group(1)
- if self.cpp11 and not parent in ["IceUtil", "Slice", "Ice", "IceSSL", "IceDiscovery", "IceBox"]:
- return False
-
+ if self.cpp11:
+ testId = current.testcase.getTestSuite().getId()
+ parent = re.match(r'^([\w]*).*', testId).group(1)
+ if parent in ["IceStorm"]:
+ return False
+ elif parent in ["IceGrid"] and testId not in ["IceGrid/simple"]:
+ return False
+ elif parent in ["Glacier2"] and testId not in ["Glacier2/application"]:
+ return False
return True
def getNugetPackage(self, compiler, version):
@@ -2538,7 +2543,8 @@ class CppMapping(Mapping):
return {
"IceSSL" : "IceSSLOpenSSL:createIceSSLOpenSSL" if current.config.openssl else "IceSSL:createIceSSL",
"IceBT" : "IceBT:createIceBT",
- "IceDiscovery" : "IceDiscovery:createIceDiscovery"
+ "IceDiscovery" : "IceDiscovery:createIceDiscovery",
+ "IceLocatorDiscovery" : "IceLocatorDiscovery:createIceLocatorDiscovery"
}[plugin]
def getEnv(self, process, current):
@@ -2607,7 +2613,8 @@ class JavaMapping(Mapping):
return {
"IceSSL" : "com.zeroc.IceSSL.PluginFactory",
"IceBT" : "com.zeroc.IceBT.PluginFactory",
- "IceDiscovery" : "com.zeroc.IceDiscovery.PluginFactory"
+ "IceDiscovery" : "com.zeroc.IceDiscovery.PluginFactory",
+ "IceLocatorDiscovery" : "com.zeroc.IceLocatorDiscovery.PluginFactory"
}[plugin]
def getEnv(self, process, current):
@@ -2635,7 +2642,8 @@ class JavaCompatMapping(JavaMapping):
return {
"IceSSL" : "IceSSL.PluginFactory",
"IceBT" : "IceBT.PluginFactory",
- "IceDiscovery" : "IceDiscovery.PluginFactory"
+ "IceDiscovery" : "IceDiscovery.PluginFactory",
+ "IceLocatorDiscovery" : "IceLocatorDiscovery.PluginFactory"
}[plugin]
def getDefaultExe(self, processType, config=None):
@@ -2675,7 +2683,8 @@ class CSharpMapping(Mapping):
"lib" if current.driver.useIceBinDist(self) else "Assemblies")
return {
"IceSSL" : plugindir + "/IceSSL.dll:IceSSL.PluginFactory",
- "IceDiscovery" : plugindir + "/IceDiscovery.dll:IceDiscovery.PluginFactory"
+ "IceDiscovery" : plugindir + "/IceDiscovery.dll:IceDiscovery.PluginFactory",
+ "IceLocatorDiscovery" : plugindir + "/IceLocatorDiscovery.dll:IceLocatorDiscovery.PluginFactory"
}[plugin]
def getEnv(self, process, current):
diff --git a/scripts/tests/IceDiscovery/simple.py b/scripts/tests/IceDiscovery/simple.py
index ef6f8163553..4eab32122e4 100644
--- a/scripts/tests/IceDiscovery/simple.py
+++ b/scripts/tests/IceDiscovery/simple.py
@@ -11,12 +11,16 @@
props = lambda process, current: {
"IceDiscovery.Timeout": 50,
"IceDiscovery.RetryCount": 5,
- "IceDiscovery.Interface": "" if isinstance(platform, Linux) else "::1" if current.config.ipv6 else "127.0.0.1",
+ "IceDiscovery.Interface": "::1" if current.config.ipv6 else "127.0.0.1",
"IceDiscovery.Port": current.driver.getTestPort(10),
"Ice.Plugin.IceDiscovery": current.getPluginEntryPoint("IceDiscovery", process)
}
+# Filter-out the warning about invalid lookup proxy
+outfilters = [ lambda x: re.sub("-! .* warning: .*failed to lookup adapter.*\n", "", x),
+ lambda x: re.sub("^ .*\n", "", x) ]
+
TestSuite(__name__, [
- ClientServerTestCase(client=Client(args=[3], props=props),
+ ClientServerTestCase(client=Client(args=[3], props=props, outfilters=outfilters),
servers=[Server(args=[i], readyCount=4, props=props) for i in range(0, 3)])
], multihost=False)
diff --git a/scripts/tests/IceGrid/simple.py b/scripts/tests/IceGrid/simple.py
index 30110ee5197..dc87a4a7f62 100644
--- a/scripts/tests/IceGrid/simple.py
+++ b/scripts/tests/IceGrid/simple.py
@@ -17,11 +17,23 @@ registryProps = {
"IceGrid.Registry.DynamicRegistration" : 1
}
+clientProps = lambda process, current: {
+ "IceLocatorDiscovery.Timeout": 50,
+ "IceLocatorDiscovery.RetryCount": 5,
+ "IceLocatorDiscovery.Interface": "::1" if current.config.ipv6 else "127.0.0.1",
+ "IceLocatorDiscovery.Port": current.driver.getTestPort(99),
+}
+
+# Filter-out the warning about invalid lookup proxy
+outfilters = [ lambda x: re.sub("-! .* warning: .*failed to lookup locator.*\n", "", x),
+ lambda x: re.sub("^ .*\n", "", x) ]
+
TestSuite(__name__, [
IceGridTestCase("without deployment", application=None,
icegridregistry=[IceGridRegistryMaster(props=registryProps),
IceGridRegistrySlave(1, props=registryProps),
IceGridRegistrySlave(2, props=registryProps)],
- client=ClientServerTestCase(client=IceGridClient(), server=IceGridServer(props=serverProps))),
+ client=ClientServerTestCase(client=IceGridClient(props=clientProps, outfilters=outfilters),
+ server=IceGridServer(props=serverProps))),
IceGridTestCase("with deployment", client=IceGridClient(args=["--with-deploy"]))
], multihost=False)