Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1090)

Side by Side Diff: scripts/slave/recipes/webrtc/ios.py

Issue 1659163003: WebRTC: Add iOS bots running tests with the simulator (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 DEPS = [ 5 DEPS = [
6 'depot_tools/bot_update',
7 'depot_tools/gclient',
6 'ios', 8 'ios',
9 'recipe_engine/path',
7 'recipe_engine/platform', 10 'recipe_engine/platform',
8 'recipe_engine/properties', 11 'recipe_engine/properties',
12 'webrtc'
9 ] 13 ]
10 14
11 def RunSteps(api): 15 def RunSteps(api):
16 api.gclient.set_config('webrtc_ios')
17
12 api.ios.host_info() 18 api.ios.host_info()
13 api.ios.checkout() 19 api.bot_update.ensure_checkout()
14 api.ios.read_build_config() 20 api.path['checkout'] = api.path['slave_build'].join('src')
21
22 build_config_dir = api.path['checkout'].join(
23 'webrtc',
24 'build',
25 'ios',
26 api.properties['mastername'],
27 )
28 include_dir = api.path['checkout'].join(
29 'webrtc',
30 'build',
31 'ios',
32 'tests',
33 )
34 api.ios.read_build_config(build_config_dir=build_config_dir,
35 include_dir=include_dir)
15 api.ios.build() 36 api.ios.build()
16 api.ios.test() 37 api.ios.test()
17 38
39
18 def GenTests(api): 40 def GenTests(api):
19 yield ( 41 yield (
20 api.test('basic') 42 api.test('basic')
21 + api.platform('mac', 64) 43 + api.platform('mac', 64)
22 + api.properties( 44 + api.properties(
23 buildername='ios', 45 buildername='ios',
24 buildnumber='0', 46 buildnumber='0',
25 mastername='chromium.fake', 47 mastername='chromium.fake',
26 slavename='fake-vm', 48 slavename='fake-vm',
27 ) 49 )
28 + api.ios.make_test_build_config({ 50 + api.ios.make_test_build_config({
29 'xcode version': 'fake xcode version', 51 'xcode version': 'fake xcode version',
30 'GYP_DEFINES': { 52 'GYP_DEFINES': {
31 'fake gyp define 1': 'fake value 1', 53 'fake gyp define 1': 'fake value 1',
32 'fake gyp define 2': 'fake value 2', 54 'fake gyp define 2': 'fake value 2',
55 'use_goma': '1',
33 }, 56 },
34 'env': { 57 'compiler': 'ninja',
35 'fake env var 1': 'fake env value 1',
36 'fake env var 2': 'fake env value 2',
37 },
38 'compiler': 'xcodebuild',
39 'configuration': 'Debug', 58 'configuration': 'Debug',
40 'sdk': 'iphonesimulator8.0', 59 'sdk': 'iphonesimulator8.0',
41 'tests': [ 60 'tests': [
42 { 61 {
43 'app': 'fake tests 1', 62 'app': 'fake tests 1',
44 'device type': 'fake device', 63 'device type': 'fake device',
45 'os': '8.0', 64 'os': '8.0',
46 }, 65 },
47 { 66 {
48 'app': 'fake tests 2', 67 'app': 'fake tests 2',
(...skipping 11 matching lines...) Expand all
60 buildername='ios', 79 buildername='ios',
61 buildnumber='0', 80 buildnumber='0',
62 mastername='chromium.fake', 81 mastername='chromium.fake',
63 slavename='fake-vm', 82 slavename='fake-vm',
64 ) 83 )
65 + api.ios.make_test_build_config({ 84 + api.ios.make_test_build_config({
66 'xcode version': 'fake xcode version', 85 'xcode version': 'fake xcode version',
67 'GYP_DEFINES': { 86 'GYP_DEFINES': {
68 'fake gyp define 1': 'fake value 1', 87 'fake gyp define 1': 'fake value 1',
69 'fake gyp define 2': 'fake value 2', 88 'fake gyp define 2': 'fake value 2',
89 'use_goma': '1',
70 }, 90 },
71 'compiler': 'ninja', 91 'compiler': 'ninja',
72 'configuration': 'Release', 92 'configuration': 'Release',
73 'sdk': 'iphoneos8.0', 93 'sdk': 'iphoneos8.0',
74 'tests': [ 94 'tests': [
75 ], 95 ],
76 }) 96 })
77 ) 97 )
78 98
79 yield ( 99 yield (
80 api.test('goma') 100 api.test('trybot')
81 + api.platform('mac', 64) 101 + api.platform('mac', 64)
82 + api.properties( 102 + api.properties(
83 buildername='ios', 103 buildername='ios',
84 buildnumber='0', 104 buildnumber='0',
85 mastername='chromium.fake', 105 mastername='chromium.fake',
86 slavename='fake-vm', 106 slavename='fake-vm',
87 ) 107 )
88 + api.ios.make_test_build_config({ 108 + api.ios.make_test_build_config({
89 'xcode version': 'fake xcode version', 109 'xcode version': 'fake xcode version',
90 'GYP_DEFINES': { 110 'GYP_DEFINES': {
91 'fake gyp define 1': 'fake value 1', 111 'fake gyp define 1': 'fake value 1',
92 'fake gyp define 2': 'fake value 2', 112 'fake gyp define 2': 'fake value 2',
93 'use_goma': '1', 113 'use_goma': '1',
94 }, 114 },
115 'use_analyze': 'false',
95 'compiler': 'ninja', 116 'compiler': 'ninja',
96 'configuration': 'Release', 117 'configuration': 'Release',
97 'sdk': 'iphoneos8.0', 118 'sdk': 'iphoneos8.0',
98 'tests': [ 119 'tests': [
99 ], 120 ],
100 }) 121 })
101 ) 122 )
102 123
103 yield ( 124 yield (
104 api.test('test_failure') 125 api.test('test_failure')
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 'os': '7.1', 189 'os': '7.1',
169 }, 190 },
170 ], 191 ],
171 }) 192 })
172 + api.step_data( 193 + api.step_data(
173 'fake tests 1 (fake device iOS 8.0)', 194 'fake tests 1 (fake device iOS 8.0)',
174 retcode=2, 195 retcode=2,
175 ) 196 )
176 ) 197 )
177 198
178 yield (
179 api.test('multiple_failures')
180 + api.platform('mac', 64)
181 + api.properties(
182 buildername='ios',
183 buildnumber='0',
184 mastername='chromium.fake',
185 slavename='fake-vm',
186 )
187 + api.ios.make_test_build_config({
188 'xcode version': 'fake xcode version',
189 'GYP_DEFINES': {
190 'fake gyp define 1': 'fake value 1',
191 'fake gyp define 2': 'fake value 2',
192 },
193 'compiler': 'xcodebuild',
194 'configuration': 'Debug',
195 'sdk': 'iphonesimulator7.1',
196 'tests': [
197 {
198 'app': 'fake tests 1',
199 'device type': 'fake device',
200 'os': '8.1',
201 },
202 {
203 'app': 'fake tests 2',
204 'device type': 'fake device',
205 'os': '8.1',
206 },
207 {
208 'app': 'fake tests 3',
209 'device type': 'fake device',
210 'os': '8.1',
211 },
212 {
213 'app': 'fake tests 4',
214 'device type': 'fake device',
215 'os': '8.1',
216 },
217 {
218 'app': 'fake tests 5',
219 'device type': 'fake device',
220 'os': '8.1',
221 },
222 {
223 'app': 'fake tests 6',
224 'device type': 'fake device',
225 'os': '8.1',
226 },
227 ],
228 })
229 + api.step_data(
230 'fake tests 2 (fake device iOS 8.1)',
231 retcode=1
232 )
233 + api.step_data(
234 'fake tests 3 (fake device iOS 8.1)',
235 retcode=1
236 )
237 + api.step_data(
238 'fake tests 5 (fake device iOS 8.1)',
239 retcode=2
240 )
241 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698