| OLD | NEW |
| 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 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
| 7 'depot_tools/gclient', | 7 'depot_tools/gclient', |
| 8 'ios', | 8 'ios', |
| 9 'recipe_engine/path', | 9 'recipe_engine/path', |
| 10 'recipe_engine/platform', | 10 'recipe_engine/platform', |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 include_dir = api.path['checkout'].join( | 29 include_dir = api.path['checkout'].join( |
| 30 'webrtc', | 30 'webrtc', |
| 31 'build', | 31 'build', |
| 32 'ios', | 32 'ios', |
| 33 'tests', | 33 'tests', |
| 34 ) | 34 ) |
| 35 buildername = api.properties['buildername'].replace(' ', '_') | 35 buildername = api.properties['buildername'].replace(' ', '_') |
| 36 api.ios.read_build_config(build_config_dir=build_config_dir, | 36 api.ios.read_build_config(build_config_dir=build_config_dir, |
| 37 include_dir=include_dir, | 37 include_dir=include_dir, |
| 38 buildername=buildername) | 38 buildername=buildername) |
| 39 api.ios.build() | 39 mb_config_path = api.path['checkout'].join( |
| 40 'webrtc', |
| 41 'build', |
| 42 'mb_config.pyl', |
| 43 ) |
| 44 api.ios.build(mb_config_path=mb_config_path) |
| 40 api.ios.test() | 45 api.ios.test() |
| 41 | 46 |
| 42 | 47 |
| 43 def GenTests(api): | 48 def GenTests(api): |
| 44 yield ( | 49 yield ( |
| 45 api.test('basic') | 50 api.test('basic') |
| 46 + api.platform('mac', 64) | 51 + api.platform('mac', 64) |
| 47 + api.properties( | 52 + api.properties( |
| 48 buildername='ios debug', | 53 buildername='ios debug', |
| 49 buildnumber='0', | 54 buildnumber='0', |
| (...skipping 19 matching lines...) Expand all Loading... |
| 69 { | 74 { |
| 70 'app': 'fake tests 2', | 75 'app': 'fake tests 2', |
| 71 'device type': 'fake device', | 76 'device type': 'fake device', |
| 72 'os': '7.1', | 77 'os': '7.1', |
| 73 }, | 78 }, |
| 74 ], | 79 ], |
| 75 }) | 80 }) |
| 76 ) | 81 ) |
| 77 | 82 |
| 78 yield ( | 83 yield ( |
| 84 api.test('gn_build') |
| 85 + api.platform('mac', 64) |
| 86 + api.properties( |
| 87 buildername='ios', |
| 88 buildnumber='0', |
| 89 mastername='chromium.fake', |
| 90 slavename='fake-vm', |
| 91 ) |
| 92 + api.ios.make_test_build_config({ |
| 93 'xcode version': 'fake xcode version', |
| 94 'GYP_DEFINES': { |
| 95 }, |
| 96 "gn_args": [ |
| 97 "is_debug=true" |
| 98 ], |
| 99 "mb_type": "gn", |
| 100 'compiler': 'ninja', |
| 101 'configuration': 'Debug', |
| 102 'sdk': 'iphoneos8.0', |
| 103 'tests': [ |
| 104 ], |
| 105 }) |
| 106 ) |
| 107 |
| 108 yield ( |
| 79 api.test('no_tests') | 109 api.test('no_tests') |
| 80 + api.platform('mac', 64) | 110 + api.platform('mac', 64) |
| 81 + api.properties( | 111 + api.properties( |
| 82 buildername='ios', | 112 buildername='ios', |
| 83 buildnumber='0', | 113 buildnumber='0', |
| 84 mastername='chromium.fake', | 114 mastername='chromium.fake', |
| 85 slavename='fake-vm', | 115 slavename='fake-vm', |
| 86 ) | 116 ) |
| 87 + api.ios.make_test_build_config({ | 117 + api.ios.make_test_build_config({ |
| 88 'xcode version': 'fake xcode version', | 118 'xcode version': 'fake xcode version', |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 'os': '7.1', | 222 'os': '7.1', |
| 193 }, | 223 }, |
| 194 ], | 224 ], |
| 195 }) | 225 }) |
| 196 + api.step_data( | 226 + api.step_data( |
| 197 'fake tests 1 (fake device iOS 8.0)', | 227 'fake tests 1 (fake device iOS 8.0)', |
| 198 retcode=2, | 228 retcode=2, |
| 199 ) | 229 ) |
| 200 ) | 230 ) |
| 201 | 231 |
| OLD | NEW |