pull/19177/head
Muxi Yan 6 years ago
parent 1f1eff115a
commit 3931c0bcd2
  1. 140
      tools/run_tests/run_tests.py

@ -1050,72 +1050,80 @@ class ObjCLanguage(object):
def test_specs(self): def test_specs(self):
out = [] out = []
if self.config == 'dbg': if self.config == 'dbg':
out += self.config.job_spec( out += self.config.job_spec(
['src/objective-c/tests/build_one_example.sh'], ['src/objective-c/tests/build_one_example.sh'],
timeout_seconds=10 * 60, timeout_seconds=10 * 60,
shortname='ios-buildtest-example-sample', shortname='ios-buildtest-example-sample',
cpu_cost=1e6, cpu_cost=1e6,
environ={ environ={
'SCHEME': 'Sample', 'SCHEME': 'Sample',
'EXAMPLE_PATH': 'src/objective-c/examples/Sample' 'EXAMPLE_PATH': 'src/objective-c/examples/Sample'
}) })
out += job_spec( out += job_spec(
['src/objective-c/tests/build_one_example.sh'], ['src/objective-c/tests/build_one_example.sh'],
timeout_seconds=10 * 60, timeout_seconds=10 * 60,
shortname='ios-buildtest-example-sample-frameworks', shortname='ios-buildtest-example-sample-frameworks',
cpu_cost=1e6, cpu_cost=1e6,
environ={ environ={
'SCHEME': 'Sample', 'SCHEME': 'Sample',
'EXAMPLE_PATH': 'src/objective-c/examples/Sample', 'EXAMPLE_PATH': 'src/objective-c/examples/Sample',
'FRAMEWORKS': 'YES' 'FRAMEWORKS': 'YES'
}) })
out += self.config.job_spec( out += self.config.job_spec(
['src/objective-c/tests/build_one_example.sh'], ['src/objective-c/tests/build_one_example.sh'],
timeout_seconds=10 * 60, timeout_seconds=10 * 60,
shortname='ios-buildtest-example-switftsample', shortname='ios-buildtest-example-switftsample',
cpu_cost=1e6, cpu_cost=1e6,
environ={ environ={
'SCHEME': 'SwiftSample', 'SCHEME': 'SwiftSample',
'EXAMPLE_PATH': 'src/objective-c/examples/SwiftSample' 'EXAMPLE_PATH': 'src/objective-c/examples/SwiftSample'
}) })
out += self.config.job_spec( out += self.config.job_spec(
['src/objective-c/tests/run_plugin_tests.sh'], ['src/objective-c/tests/run_plugin_tests.sh'],
timeout_seconds=60 * 60, timeout_seconds=60 * 60,
shortname='ios-test-plugintest', shortname='ios-test-plugintest',
cpu_cost=1e6, cpu_cost=1e6,
environ=_FORCE_ENVIRON_FOR_WRAPPERS) environ=_FORCE_ENVIRON_FOR_WRAPPERS)
out += self.config.job_spec( out += self.config.job_spec(
['test/core/iomgr/ios/CFStreamTests/run_tests.sh'], ['test/core/iomgr/ios/CFStreamTests/run_tests.sh'],
timeout_seconds=20 * 60, timeout_seconds=20 * 60,
shortname='ios-test-cfstream-tests', shortname='ios-test-cfstream-tests',
cpu_cost=1e6, cpu_cost=1e6,
environ=_FORCE_ENVIRON_FOR_WRAPPERS) environ=_FORCE_ENVIRON_FOR_WRAPPERS)
out += self.config.job_spec( out += self.config.job_spec(
['src/objective-c/tests/run_one_test.sh'], ['src/objective-c/tests/run_one_test.sh'],
timeout_seconds=60 * 60, timeout_seconds=60 * 60,
shortname='ios-test-unittests', shortname='ios-test-unittests',
cpu_cost=1e6, cpu_cost=1e6,
environ={SCHEME: 'UnitTests'}) environ={
out += self.config.job_spec( SCHEME: 'UnitTests'
['src/objective-c/tests/run_one_test.sh'], })
timeout_seconds=60 * 60, out += self.config.job_spec(
shortname='ios-test-interoptests', ['src/objective-c/tests/run_one_test.sh'],
cpu_cost=1e6, timeout_seconds=60 * 60,
environ={SCHEME: 'InteropTests'}) shortname='ios-test-interoptests',
out += self.config.job_spec( cpu_cost=1e6,
['src/objective-c/tests/run_one_test.sh'], environ={
timeout_seconds=60 * 60, SCHEME: 'InteropTests'
shortname='ios-test-cronettests', })
cpu_cost=1e6, out += self.config.job_spec(
environ={SCHEME: 'CronetTests'}) ['src/objective-c/tests/run_one_test.sh'],
out += self.config.job_spec( timeout_seconds=60 * 60,
['src/objective-c/tests/run_one_test.sh'], shortname='ios-test-cronettests',
timeout_seconds=60 * 60, cpu_cost=1e6,
shortname='mac-test-basictests', environ={
cpu_cost=1e6, SCHEME: 'CronetTests'
environ={SCHEME: 'MacTests'}) })
out += self.config.job_spec(
return sorted(out); ['src/objective-c/tests/run_one_test.sh'],
timeout_seconds=60 * 60,
shortname='mac-test-basictests',
cpu_cost=1e6,
environ={
SCHEME: 'MacTests'
})
return sorted(out)
def pre_build_steps(self): def pre_build_steps(self):
return [] return []

Loading…
Cancel
Save