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

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

Issue 2226283002: webrtc: prepare for running under remote_run (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 4 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 2016 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 'chromium_tests',
6 'depot_tools/bot_update', 7 'depot_tools/bot_update',
7 'depot_tools/gclient', 8 'depot_tools/gclient',
8 'ios', 9 'ios',
9 'recipe_engine/path', 10 'recipe_engine/path',
10 'recipe_engine/platform', 11 'recipe_engine/platform',
11 'recipe_engine/properties', 12 'recipe_engine/properties',
12 'webrtc' 13 'webrtc'
13 ] 14 ]
14 15
15 16
16 def RunSteps(api): 17 def RunSteps(api):
17 api.gclient.set_config('webrtc_ios') 18 api.gclient.set_config('webrtc_ios')
18 19
19 api.ios.host_info() 20 api.ios.host_info()
20 api.bot_update.ensure_checkout() 21
21 api.path['checkout'] = api.path['slave_build'].join('src') 22 checkout_kwargs = {'force': True}
23 checkout_dir = api.chromium_tests.get_checkout_dir({})
24 if checkout_dir:
25 checkout_kwargs['cwd'] = checkout_dir
26 api.bot_update.ensure_checkout(**checkout_kwargs)
22 27
23 build_config_base_dir = api.path['checkout'].join( 28 build_config_base_dir = api.path['checkout'].join(
24 'webrtc', 29 'webrtc',
25 'build', 30 'build',
26 'ios', 31 'ios',
27 ) 32 )
28 buildername = api.properties['buildername'].replace(' ', '_') 33 buildername = api.properties['buildername'].replace(' ', '_')
29 api.ios.read_build_config(build_config_base_dir=build_config_base_dir, 34 api.ios.read_build_config(build_config_base_dir=build_config_base_dir,
30 buildername=buildername) 35 buildername=buildername)
31 mb_config_path = api.path['checkout'].join( 36 mb_config_path = api.path['checkout'].join(
32 'webrtc', 37 'webrtc',
33 'build', 38 'build',
34 'mb_config.pyl', 39 'mb_config.pyl',
35 ) 40 )
36 api.ios.build(mb_config_path=mb_config_path) 41 api.ios.build(mb_config_path=mb_config_path)
37 api.ios.test() 42 api.ios.test()
38 43
39 44
40 def GenTests(api): 45 def GenTests(api):
41 yield ( 46 yield (
42 api.test('basic') 47 api.test('basic')
43 + api.platform('mac', 64) 48 + api.platform('mac', 64)
44 + api.properties( 49 + api.properties(
45 buildername='ios debug', 50 buildername='ios debug',
46 buildnumber='0', 51 buildnumber='0',
47 mastername='chromium.fake', 52 mastername='chromium.fake',
48 slavename='fake-vm', 53 slavename='fake-vm',
54 path_config='kitchen',
49 ) 55 )
50 + api.ios.make_test_build_config({ 56 + api.ios.make_test_build_config({
51 'xcode version': 'fake xcode version', 57 'xcode version': 'fake xcode version',
52 'GYP_DEFINES': { 58 'GYP_DEFINES': {
53 'fake gyp define 1': 'fake value 1', 59 'fake gyp define 1': 'fake value 1',
54 'fake gyp define 2': 'fake value 2', 60 'fake gyp define 2': 'fake value 2',
55 'use_goma': '1', 61 'use_goma': '1',
56 }, 62 },
57 'compiler': 'ninja', 63 'compiler': 'ninja',
58 'configuration': 'Debug', 64 'configuration': 'Debug',
(...skipping 14 matching lines...) Expand all
73 ) 79 )
74 80
75 yield ( 81 yield (
76 api.test('gn_build') 82 api.test('gn_build')
77 + api.platform('mac', 64) 83 + api.platform('mac', 64)
78 + api.properties( 84 + api.properties(
79 buildername='ios', 85 buildername='ios',
80 buildnumber='0', 86 buildnumber='0',
81 mastername='chromium.fake', 87 mastername='chromium.fake',
82 slavename='fake-vm', 88 slavename='fake-vm',
89 path_config='kitchen',
83 ) 90 )
84 + api.ios.make_test_build_config({ 91 + api.ios.make_test_build_config({
85 'xcode version': 'fake xcode version', 92 'xcode version': 'fake xcode version',
86 'GYP_DEFINES': { 93 'GYP_DEFINES': {
87 }, 94 },
88 "gn_args": [ 95 "gn_args": [
89 "is_debug=true" 96 "is_debug=true"
90 ], 97 ],
91 "mb_type": "gn", 98 "mb_type": "gn",
92 'compiler': 'ninja', 99 'compiler': 'ninja',
93 'configuration': 'Debug', 100 'configuration': 'Debug',
94 'sdk': 'iphoneos8.0', 101 'sdk': 'iphoneos8.0',
95 'tests': [ 102 'tests': [
96 ], 103 ],
97 }) 104 })
98 ) 105 )
99 106
100 yield ( 107 yield (
101 api.test('no_tests') 108 api.test('no_tests')
102 + api.platform('mac', 64) 109 + api.platform('mac', 64)
103 + api.properties( 110 + api.properties(
104 buildername='ios', 111 buildername='ios',
105 buildnumber='0', 112 buildnumber='0',
106 mastername='chromium.fake', 113 mastername='chromium.fake',
107 slavename='fake-vm', 114 slavename='fake-vm',
115 path_config='kitchen',
108 ) 116 )
109 + api.ios.make_test_build_config({ 117 + api.ios.make_test_build_config({
110 'xcode version': 'fake xcode version', 118 'xcode version': 'fake xcode version',
111 'GYP_DEFINES': { 119 'GYP_DEFINES': {
112 'fake gyp define 1': 'fake value 1', 120 'fake gyp define 1': 'fake value 1',
113 'fake gyp define 2': 'fake value 2', 121 'fake gyp define 2': 'fake value 2',
114 'use_goma': '1', 122 'use_goma': '1',
115 }, 123 },
116 'compiler': 'ninja', 124 'compiler': 'ninja',
117 'configuration': 'Release', 125 'configuration': 'Release',
118 'sdk': 'iphoneos8.0', 126 'sdk': 'iphoneos8.0',
119 'tests': [ 127 'tests': [
120 ], 128 ],
121 }) 129 })
122 ) 130 )
123 131
124 yield ( 132 yield (
125 api.test('trybot') 133 api.test('trybot')
126 + api.platform('mac', 64) 134 + api.platform('mac', 64)
127 + api.properties( 135 + api.properties(
128 buildername='ios', 136 buildername='ios',
129 buildnumber='0', 137 buildnumber='0',
130 mastername='chromium.fake', 138 mastername='chromium.fake',
131 slavename='fake-vm', 139 slavename='fake-vm',
140 path_config='kitchen',
132 ) 141 )
133 + api.ios.make_test_build_config({ 142 + api.ios.make_test_build_config({
134 'xcode version': 'fake xcode version', 143 'xcode version': 'fake xcode version',
135 'GYP_DEFINES': { 144 'GYP_DEFINES': {
136 'fake gyp define 1': 'fake value 1', 145 'fake gyp define 1': 'fake value 1',
137 'fake gyp define 2': 'fake value 2', 146 'fake gyp define 2': 'fake value 2',
138 'use_goma': '1', 147 'use_goma': '1',
139 }, 148 },
140 'use_analyze': 'false', 149 'use_analyze': 'false',
141 'compiler': 'ninja', 150 'compiler': 'ninja',
142 'configuration': 'Release', 151 'configuration': 'Release',
143 'sdk': 'iphoneos8.0', 152 'sdk': 'iphoneos8.0',
144 'tests': [ 153 'tests': [
145 ], 154 ],
146 }) 155 })
147 ) 156 )
148 157
149 yield ( 158 yield (
150 api.test('test_failure') 159 api.test('test_failure')
151 + api.platform('mac', 64) 160 + api.platform('mac', 64)
152 + api.properties(patch_url='patch url') 161 + api.properties(patch_url='patch url')
153 + api.properties( 162 + api.properties(
154 buildername='ios', 163 buildername='ios',
155 buildnumber='0', 164 buildnumber='0',
156 mastername='chromium.fake', 165 mastername='chromium.fake',
157 slavename='fake-vm', 166 slavename='fake-vm',
167 path_config='kitchen',
158 ) 168 )
159 + api.ios.make_test_build_config({ 169 + api.ios.make_test_build_config({
160 'xcode version': 'fake xcode version', 170 'xcode version': 'fake xcode version',
161 'GYP_DEFINES': { 171 'GYP_DEFINES': {
162 'fake gyp define 1': 'fake value 1', 172 'fake gyp define 1': 'fake value 1',
163 'fake gyp define 2': 'fake value 2', 173 'fake gyp define 2': 'fake value 2',
164 }, 174 },
165 'compiler': 'xcodebuild', 175 'compiler': 'xcodebuild',
166 'configuration': 'Debug', 176 'configuration': 'Debug',
167 'sdk': 'iphonesimulator8.0', 177 'sdk': 'iphonesimulator8.0',
(...skipping 17 matching lines...) Expand all
185 ) 195 )
186 196
187 yield ( 197 yield (
188 api.test('infrastructure_failure') 198 api.test('infrastructure_failure')
189 + api.platform('mac', 64) 199 + api.platform('mac', 64)
190 + api.properties( 200 + api.properties(
191 buildername='ios', 201 buildername='ios',
192 buildnumber='0', 202 buildnumber='0',
193 mastername='chromium.fake', 203 mastername='chromium.fake',
194 slavename='fake-vm', 204 slavename='fake-vm',
205 path_config='kitchen',
195 ) 206 )
196 + api.ios.make_test_build_config({ 207 + api.ios.make_test_build_config({
197 'xcode version': 'fake xcode version', 208 'xcode version': 'fake xcode version',
198 'GYP_DEFINES': { 209 'GYP_DEFINES': {
199 'fake gyp define 1': 'fake value 1', 210 'fake gyp define 1': 'fake value 1',
200 'fake gyp define 2': 'fake value 2', 211 'fake gyp define 2': 'fake value 2',
201 }, 212 },
202 'compiler': 'ninja', 213 'compiler': 'ninja',
203 'configuration': 'Debug', 214 'configuration': 'Debug',
204 'sdk': 'iphonesimulator8.0', 215 'sdk': 'iphonesimulator8.0',
205 'tests': [ 216 'tests': [
206 { 217 {
207 'app': 'fake tests 1', 218 'app': 'fake tests 1',
208 'device type': 'fake device', 219 'device type': 'fake device',
209 'os': '8.0', 220 'os': '8.0',
210 }, 221 },
211 { 222 {
212 'app': 'fake tests 2', 223 'app': 'fake tests 2',
213 'device type': 'fake device', 224 'device type': 'fake device',
214 'os': '7.1', 225 'os': '7.1',
215 }, 226 },
216 ], 227 ],
217 }) 228 })
218 + api.step_data( 229 + api.step_data(
219 'fake tests 1 (fake device iOS 8.0)', 230 'fake tests 1 (fake device iOS 8.0)',
220 retcode=2, 231 retcode=2,
221 ) 232 )
222 ) 233 )
223 234
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698