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

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

Issue 2226683002: ios: 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 'ios', 6 'ios',
7 'recipe_engine/platform', 7 'recipe_engine/platform',
8 'recipe_engine/properties', 8 'recipe_engine/properties',
9 ] 9 ]
10 10
11 def RunSteps(api): 11 def RunSteps(api):
12 api.ios.host_info() 12 api.ios.host_info()
13 api.ios.checkout() 13 api.ios.checkout()
14 api.ios.read_build_config() 14 api.ios.read_build_config()
15 api.ios.build() 15 api.ios.build()
16 api.ios.test() 16 api.ios.test()
17 17
18 def GenTests(api): 18 def GenTests(api):
19 yield ( 19 yield (
20 api.test('basic') 20 api.test('basic')
21 + api.platform('mac', 64) 21 + api.platform('mac', 64)
22 + api.properties( 22 + api.properties(
23 buildername='ios', 23 buildername='ios',
24 buildnumber='0', 24 buildnumber='0',
25 mastername='chromium.fake', 25 mastername='chromium.fake',
26 slavename='fake-vm', 26 slavename='fake-vm',
27 path_config='kitchen',
27 ) 28 )
28 + api.ios.make_test_build_config({ 29 + api.ios.make_test_build_config({
29 'xcode version': 'fake xcode version', 30 'xcode version': 'fake xcode version',
30 'GYP_DEFINES': { 31 'GYP_DEFINES': {
31 'fake gyp define 1': 'fake value 1', 32 'fake gyp define 1': 'fake value 1',
32 'fake gyp define 2': 'fake value 2', 33 'fake gyp define 2': 'fake value 2',
33 }, 34 },
34 'env': { 35 'env': {
35 'fake env var 1': 'fake env value 1', 36 'fake env var 1': 'fake env value 1',
36 'fake env var 2': 'fake env value 2', 37 'fake env var 2': 'fake env value 2',
(...skipping 23 matching lines...) Expand all
60 ) 61 )
61 62
62 yield ( 63 yield (
63 api.test('no_tests') 64 api.test('no_tests')
64 + api.platform('mac', 64) 65 + api.platform('mac', 64)
65 + api.properties( 66 + api.properties(
66 buildername='ios', 67 buildername='ios',
67 buildnumber='0', 68 buildnumber='0',
68 mastername='chromium.fake', 69 mastername='chromium.fake',
69 slavename='fake-vm', 70 slavename='fake-vm',
71 path_config='kitchen',
70 ) 72 )
71 + api.ios.make_test_build_config({ 73 + api.ios.make_test_build_config({
72 'xcode version': 'fake xcode version', 74 'xcode version': 'fake xcode version',
73 'GYP_DEFINES': { 75 'GYP_DEFINES': {
74 'fake gyp define 1': 'fake value 1', 76 'fake gyp define 1': 'fake value 1',
75 'fake gyp define 2': 'fake value 2', 77 'fake gyp define 2': 'fake value 2',
76 }, 78 },
77 'compiler': 'ninja', 79 'compiler': 'ninja',
78 'configuration': 'Release', 80 'configuration': 'Release',
79 'sdk': 'iphoneos8.0', 81 'sdk': 'iphoneos8.0',
80 'tests': [ 82 'tests': [
81 ], 83 ],
82 }) 84 })
83 ) 85 )
84 86
85 yield ( 87 yield (
86 api.test('goma') 88 api.test('goma')
87 + api.platform('mac', 64) 89 + api.platform('mac', 64)
88 + api.properties( 90 + api.properties(
89 buildername='ios', 91 buildername='ios',
90 buildnumber='0', 92 buildnumber='0',
91 mastername='chromium.fake', 93 mastername='chromium.fake',
92 slavename='fake-vm', 94 slavename='fake-vm',
95 path_config='kitchen',
93 ) 96 )
94 + api.ios.make_test_build_config({ 97 + api.ios.make_test_build_config({
95 'xcode version': 'fake xcode version', 98 'xcode version': 'fake xcode version',
96 'GYP_DEFINES': { 99 'GYP_DEFINES': {
97 'fake gyp define 1': 'fake value 1', 100 'fake gyp define 1': 'fake value 1',
98 'fake gyp define 2': 'fake value 2', 101 'fake gyp define 2': 'fake value 2',
99 'use_goma': '1', 102 'use_goma': '1',
100 }, 103 },
101 'compiler': 'ninja', 104 'compiler': 'ninja',
102 'configuration': 'Release', 105 'configuration': 'Release',
103 'sdk': 'iphoneos8.0', 106 'sdk': 'iphoneos8.0',
104 'tests': [ 107 'tests': [
105 ], 108 ],
106 }) 109 })
107 ) 110 )
108 111
109 yield ( 112 yield (
110 api.test('test_failure') 113 api.test('test_failure')
111 + api.platform('mac', 64) 114 + api.platform('mac', 64)
112 + api.properties(patch_url='patch url') 115 + api.properties(patch_url='patch url')
113 + api.properties( 116 + api.properties(
114 buildername='ios', 117 buildername='ios',
115 buildnumber='0', 118 buildnumber='0',
116 mastername='chromium.fake', 119 mastername='chromium.fake',
117 slavename='fake-vm', 120 slavename='fake-vm',
121 path_config='kitchen',
118 ) 122 )
119 + api.ios.make_test_build_config({ 123 + api.ios.make_test_build_config({
120 'xcode version': 'fake xcode version', 124 'xcode version': 'fake xcode version',
121 'GYP_DEFINES': { 125 'GYP_DEFINES': {
122 'fake gyp define 1': 'fake value 1', 126 'fake gyp define 1': 'fake value 1',
123 'fake gyp define 2': 'fake value 2', 127 'fake gyp define 2': 'fake value 2',
124 }, 128 },
125 'compiler': 'xcodebuild', 129 'compiler': 'xcodebuild',
126 'configuration': 'Debug', 130 'configuration': 'Debug',
127 'sdk': 'iphonesimulator8.0', 131 'sdk': 'iphonesimulator8.0',
(...skipping 17 matching lines...) Expand all
145 ) 149 )
146 150
147 yield ( 151 yield (
148 api.test('infrastructure_failure') 152 api.test('infrastructure_failure')
149 + api.platform('mac', 64) 153 + api.platform('mac', 64)
150 + api.properties( 154 + api.properties(
151 buildername='ios', 155 buildername='ios',
152 buildnumber='0', 156 buildnumber='0',
153 mastername='chromium.fake', 157 mastername='chromium.fake',
154 slavename='fake-vm', 158 slavename='fake-vm',
159 path_config='kitchen',
155 ) 160 )
156 + api.ios.make_test_build_config({ 161 + api.ios.make_test_build_config({
157 'xcode version': 'fake xcode version', 162 'xcode version': 'fake xcode version',
158 'GYP_DEFINES': { 163 'GYP_DEFINES': {
159 'fake gyp define 1': 'fake value 1', 164 'fake gyp define 1': 'fake value 1',
160 'fake gyp define 2': 'fake value 2', 165 'fake gyp define 2': 'fake value 2',
161 }, 166 },
162 'compiler': 'ninja', 167 'compiler': 'ninja',
163 'configuration': 'Debug', 168 'configuration': 'Debug',
164 'sdk': 'iphonesimulator8.0', 169 'sdk': 'iphonesimulator8.0',
(...skipping 17 matching lines...) Expand all
182 ) 187 )
183 188
184 yield ( 189 yield (
185 api.test('multiple_failures') 190 api.test('multiple_failures')
186 + api.platform('mac', 64) 191 + api.platform('mac', 64)
187 + api.properties( 192 + api.properties(
188 buildername='ios', 193 buildername='ios',
189 buildnumber='0', 194 buildnumber='0',
190 mastername='chromium.fake', 195 mastername='chromium.fake',
191 slavename='fake-vm', 196 slavename='fake-vm',
197 path_config='kitchen',
192 ) 198 )
193 + api.ios.make_test_build_config({ 199 + api.ios.make_test_build_config({
194 'xcode version': 'fake xcode version', 200 'xcode version': 'fake xcode version',
195 'GYP_DEFINES': { 201 'GYP_DEFINES': {
196 'fake gyp define 1': 'fake value 1', 202 'fake gyp define 1': 'fake value 1',
197 'fake gyp define 2': 'fake value 2', 203 'fake gyp define 2': 'fake value 2',
198 }, 204 },
199 'compiler': 'xcodebuild', 205 'compiler': 'xcodebuild',
200 'configuration': 'Debug', 206 'configuration': 'Debug',
201 'sdk': 'iphonesimulator7.1', 207 'sdk': 'iphonesimulator7.1',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 ) 244 )
239 + api.step_data( 245 + api.step_data(
240 'fake tests 3 (fake device iOS 8.1)', 246 'fake tests 3 (fake device iOS 8.1)',
241 retcode=1 247 retcode=1
242 ) 248 )
243 + api.step_data( 249 + api.step_data(
244 'fake tests 5 (fake device iOS 8.1)', 250 'fake tests 5 (fake device iOS 8.1)',
245 retcode=2 251 retcode=2
246 ) 252 )
247 ) 253 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698