Add linux, mac as test platforms, only run _with_poll tests on linux

pull/2800/head
Craig Tiller 10 years ago
parent 17effabe42
commit d50993d49b
  1. 44
      build.json
  2. 12
      test/core/end2end/gen_build_json.py
  3. 2
      tools/buildgen/plugins/expand_bin_attrs.py
  4. 25
      tools/run_tests/run_tests.py
  5. 3694
      tools/run_tests/tests.json

@ -969,6 +969,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -986,6 +988,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1003,6 +1007,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1050,6 +1056,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1067,6 +1075,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1540,6 +1550,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1694,6 +1706,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1753,6 +1767,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1770,6 +1786,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1787,6 +1805,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1907,6 +1927,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1927,6 +1949,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1988,6 +2012,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2229,6 +2255,8 @@
"grpc++_test_config"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2250,6 +2278,8 @@
"grpc++_test_config"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2267,6 +2297,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2374,6 +2406,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2395,6 +2429,8 @@
"grpc++_test_config"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2416,6 +2452,8 @@
"grpc++_test_config"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2470,6 +2508,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2522,6 +2562,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2542,6 +2584,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},

@ -37,10 +37,10 @@ import collections
FixtureOptions = collections.namedtuple('FixtureOptions', 'fullstack includes_proxy dns_resolver secure platforms')
default_unsecure_fixture_options = FixtureOptions(True, False, True, False, ['windows', 'posix'])
default_unsecure_fixture_options = FixtureOptions(True, False, True, False, ['windows', 'linux', 'mac', 'posix'])
socketpair_unsecure_fixture_options = default_unsecure_fixture_options._replace(fullstack=False, dns_resolver=False)
default_secure_fixture_options = default_unsecure_fixture_options._replace(secure=True)
uds_fixture_options = default_unsecure_fixture_options._replace(dns_resolver=False, platforms=['posix'])
uds_fixture_options = default_unsecure_fixture_options._replace(dns_resolver=False, platforms=['linux', 'mac', 'posix'])
# maps fixture name to whether it requires the security library
END2END_FIXTURES = {
@ -48,11 +48,11 @@ END2END_FIXTURES = {
'chttp2_fullstack': default_unsecure_fixture_options,
'chttp2_fullstack_compression': default_unsecure_fixture_options,
'chttp2_fullstack_uds_posix': uds_fixture_options,
'chttp2_fullstack_uds_posix_with_poll': uds_fixture_options,
'chttp2_fullstack_with_poll': default_unsecure_fixture_options._replace(platforms=['posix']),
'chttp2_fullstack_uds_posix_with_poll': uds_fixture_options._replace(platforms=['linux']),
'chttp2_fullstack_with_poll': default_unsecure_fixture_options._replace(platforms=['linux']),
'chttp2_fullstack_with_proxy': default_unsecure_fixture_options._replace(includes_proxy=True),
'chttp2_simple_ssl_fullstack': default_secure_fixture_options,
'chttp2_simple_ssl_fullstack_with_poll': default_secure_fixture_options._replace(platforms=['posix']),
'chttp2_simple_ssl_fullstack_with_poll': default_secure_fixture_options._replace(platforms=['linux']),
'chttp2_simple_ssl_fullstack_with_proxy': default_secure_fixture_options._replace(includes_proxy=True),
'chttp2_simple_ssl_with_oauth2_fullstack': default_secure_fixture_options,
#'chttp2_simple_ssl_with_oauth2_fullstack_with_proxy': default_secure_fixture_options._replace(includes_proxy=True),
@ -139,7 +139,7 @@ def main():
'language': 'c',
'secure': 'check' if END2END_FIXTURES[f].secure else 'no',
'src': ['test/core/end2end/fixtures/%s.c' % f],
'platforms': [ 'posix' ] if f.endswith('_posix') else END2END_FIXTURES[f].platforms,
'platforms': [ 'linux', 'mac', 'posix' ] if f.endswith('_posix') else END2END_FIXTURES[f].platforms,
'deps': sec_deps if END2END_FIXTURES[f].secure else unsec_deps,
'headers': ['test/core/end2end/end2end_tests.h'],
}

@ -47,5 +47,5 @@ def mako_plugin(dictionary):
for tgt in targets:
tgt['flaky'] = tgt.get('flaky', False)
tgt['platforms'] = tgt.get('platforms', ['windows', 'posix'])
tgt['platforms'] = sorted(tgt.get('platforms', ['windows', 'posix']))

@ -54,6 +54,17 @@ os.chdir(ROOT)
_FORCE_ENVIRON_FOR_WRAPPERS = {}
def platform_string():
if platform.system() == 'Windows':
return 'windows'
elif platform.system() == 'Darwin':
return 'mac'
elif platform.system() == 'Linux':
return 'linux'
else:
return 'posix'
# SimpleConfig: just compile with CONFIG=config, and run the binary to test
class SimpleConfig(object):
@ -109,11 +120,7 @@ class CLanguage(object):
def __init__(self, make_target, test_lang):
self.make_target = make_target
if platform.system() == 'Windows':
plat = 'windows'
else:
plat = 'posix'
self.platform = plat
self.platform = platform_string()
with open('tools/run_tests/tests.json') as f:
js = json.load(f)
self.binaries = [tgt
@ -245,11 +252,7 @@ class RubyLanguage(object):
class CSharpLanguage(object):
def __init__(self):
if platform.system() == 'Windows':
plat = 'windows'
else:
plat = 'posix'
self.platform = plat
self.platform = platform_string()
def test_specs(self, config, travis):
assemblies = ['Grpc.Core.Tests',
@ -262,7 +265,7 @@ class CSharpLanguage(object):
return [config.job_spec([cmd, assembly],
None, shortname=assembly,
environ=_FORCE_ENVIRON_FOR_WRAPPERS)
for assembly in assemblies ]
for assembly in assemblies]
def make_targets(self):
# For Windows, this target doesn't really build anything,

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save