| OLD | NEW |
| 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 # TODO: remove redundant DEPS. | 5 # TODO: remove redundant DEPS. |
| 6 DEPS = [ | 6 DEPS = [ |
| 7 'file', | 7 'file', |
| 8 'depot_tools/infra_paths', |
| 8 'recipe_engine/path', | 9 'recipe_engine/path', |
| 9 'recipe_engine/properties', | 10 'recipe_engine/properties', |
| 10 'repo', | 11 'repo', |
| 11 'recipe_engine/step', | 12 'recipe_engine/step', |
| 12 ] | 13 ] |
| 13 | 14 |
| 14 _TARGET_DEVICE_MAP = { | 15 _TARGET_DEVICE_MAP = { |
| 15 'volantis': { | 16 'volantis': { |
| 16 'bitness': 64, | 17 'bitness': 64, |
| 17 'make_jobs': 2, | 18 'make_jobs': 2, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 api.repo.sync() | 49 api.repo.sync() |
| 49 | 50 |
| 50 def full_checkout(api): | 51 def full_checkout(api): |
| 51 api.repo.init('https://android.googlesource.com/platform/manifest', | 52 api.repo.init('https://android.googlesource.com/platform/manifest', |
| 52 '-b', 'master') | 53 '-b', 'master') |
| 53 api.repo.sync() | 54 api.repo.sync() |
| 54 | 55 |
| 55 def clobber(api): | 56 def clobber(api): |
| 56 # buildbot sets 'clobber' to the empty string which is falsey, check with 'in' | 57 # buildbot sets 'clobber' to the empty string which is falsey, check with 'in' |
| 57 if 'clobber' in api.properties: | 58 if 'clobber' in api.properties: |
| 58 api.file.rmtree('clobber', api.path['slave_build'].join('out')) | 59 api.file.rmtree('clobber', api.infra_paths['slave_build'].join('out')) |
| 59 | 60 |
| 60 def setup_host_x86(api, debug, bitness, concurrent_collector=False): | 61 def setup_host_x86(api, debug, bitness, concurrent_collector=False): |
| 61 with api.step.defer_results(): | 62 with api.step.defer_results(): |
| 62 checkout(api) | 63 checkout(api) |
| 63 clobber(api) | 64 clobber(api) |
| 64 | 65 |
| 65 build_top_dir = api.path['slave_build'] | 66 build_top_dir = api.infra_paths['slave_build'] |
| 66 art_tools = api.path['slave_build'].join('art', 'tools') | 67 art_tools = api.infra_paths['slave_build'].join('art', 'tools') |
| 67 env = { 'TARGET_PRODUCT': 'sdk', | 68 env = { 'TARGET_PRODUCT': 'sdk', |
| 68 'TARGET_BUILD_VARIANT': 'eng', | 69 'TARGET_BUILD_VARIANT': 'eng', |
| 69 'TARGET_BUILD_TYPE': 'release', | 70 'TARGET_BUILD_TYPE': 'release', |
| 70 'ANDROID_BUILD_TOP': build_top_dir, | 71 'ANDROID_BUILD_TOP': build_top_dir, |
| 71 'LEGACY_USE_JAVA7': 'true', | 72 'LEGACY_USE_JAVA7': 'true', |
| 72 'JACK_SERVER': 'false', | 73 'JACK_SERVER': 'false', |
| 73 'JACK_REPOSITORY': str(build_top_dir.join('prebuilts', 'sdk', | 74 'JACK_REPOSITORY': str(build_top_dir.join('prebuilts', 'sdk', |
| 74 'tools', 'jacks')), | 75 'tools', 'jacks')), |
| 75 'PATH': str(build_top_dir.join('out', 'host', 'linux-x86', 'bin')) + | 76 'PATH': str(build_top_dir.join('out', 'host', 'linux-x86', 'bin')) + |
| 76 api.path.pathsep + '%(PATH)s', | 77 api.path.pathsep + '%(PATH)s', |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 '--variant=X%d' % bitness] | 127 '--variant=X%d' % bitness] |
| 127 if debug: | 128 if debug: |
| 128 jdwp_command.append('--debug') | 129 jdwp_command.append('--debug') |
| 129 api.step('test jdwp', jdwp_command, env=env) | 130 api.step('test jdwp', jdwp_command, env=env) |
| 130 | 131 |
| 131 def setup_target(api, | 132 def setup_target(api, |
| 132 serial, | 133 serial, |
| 133 debug, | 134 debug, |
| 134 device, | 135 device, |
| 135 concurrent_collector=False): | 136 concurrent_collector=False): |
| 136 build_top_dir = api.path['slave_build'] | 137 build_top_dir = api.infra_paths['slave_build'] |
| 137 art_tools = api.path['slave_build'].join('art', 'tools') | 138 art_tools = api.infra_paths['slave_build'].join('art', 'tools') |
| 138 android_root = '/data/local/tmp/system' | 139 android_root = '/data/local/tmp/system' |
| 139 | 140 |
| 140 env = {'TARGET_BUILD_VARIANT': 'eng', | 141 env = {'TARGET_BUILD_VARIANT': 'eng', |
| 141 'TARGET_BUILD_TYPE': 'release', | 142 'TARGET_BUILD_TYPE': 'release', |
| 142 'ANDROID_SERIAL': serial, | 143 'ANDROID_SERIAL': serial, |
| 143 'ANDROID_BUILD_TOP': build_top_dir, | 144 'ANDROID_BUILD_TOP': build_top_dir, |
| 144 'PATH': str(build_top_dir.join('out', 'host', 'linux-x86', 'bin')) + | 145 'PATH': str(build_top_dir.join('out', 'host', 'linux-x86', 'bin')) + |
| 145 api.path.pathsep + '%(PATH)s', | 146 api.path.pathsep + '%(PATH)s', |
| 146 'LEGACY_USE_JAVA7': 'true', | 147 'LEGACY_USE_JAVA7': 'true', |
| 147 'JACK_SERVER': 'false', | 148 'JACK_SERVER': 'false', |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 # ) | 474 # ) |
| 474 # ) | 475 # ) |
| 475 # yield ( | 476 # yield ( |
| 476 # api.test('invalid buildername') + | 477 # api.test('invalid buildername') + |
| 477 # api.properties( | 478 # api.properties( |
| 478 # mastername='client.art', | 479 # mastername='client.art', |
| 479 # buildername='builder_does_not_exist', | 480 # buildername='builder_does_not_exist', |
| 480 # slavename='TestSlave', | 481 # slavename='TestSlave', |
| 481 # ) | 482 # ) |
| 482 # ) | 483 # ) |
| OLD | NEW |