| 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 DEPS = [ | 5 DEPS = [ |
| 6 'bot_update', | 6 'bot_update', |
| 7 'file', |
| 7 'gclient', | 8 'gclient', |
| 8 'path', | 9 'path', |
| 9 'platform', | 10 'platform', |
| 10 'properties', | 11 'properties', |
| 11 'python', | 12 'python', |
| 12 'step', | 13 'step', |
| 13 'test_utils', | 14 'test_utils', |
| 14 ] | 15 ] |
| 15 | 16 |
| 16 | 17 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 def GenSteps(api): | 99 def GenSteps(api): |
| 99 # Sync and pull in everything. | 100 # Sync and pull in everything. |
| 100 api.gclient.set_config('boringssl') | 101 api.gclient.set_config('boringssl') |
| 101 api.bot_update.ensure_checkout(force=True) | 102 api.bot_update.ensure_checkout(force=True) |
| 102 api.gclient.runhooks() | 103 api.gclient.runhooks() |
| 103 | 104 |
| 104 # Set up paths. | 105 # Set up paths. |
| 105 bot_utils = api.path['checkout'].join('util', 'bot') | 106 bot_utils = api.path['checkout'].join('util', 'bot') |
| 106 go_env = bot_utils.join('go', 'env.py') | 107 go_env = bot_utils.join('go', 'env.py') |
| 107 build_dir = api.path['checkout'].join('build') | 108 build_dir = api.path['checkout'].join('build') |
| 108 api.path.makedirs('mkdir', build_dir) | 109 api.file.makedirs('mkdir', build_dir) |
| 109 | 110 |
| 110 # If building with MSVC, all commands must run with an environment wrapper. | 111 # If building with MSVC, all commands must run with an environment wrapper. |
| 111 # This is necessary both to find the toolchain and the runtime dlls. Rather | 112 # This is necessary both to find the toolchain and the runtime dlls. Rather |
| 112 # than copy the runtime to every directory where a binary is installed, just | 113 # than copy the runtime to every directory where a binary is installed, just |
| 113 # run the tests with the toolchain prefix as well. | 114 # run the tests with the toolchain prefix as well. |
| 114 msvc_prefix = _GetTargetMSVCPrefix(api.properties['buildername'], bot_utils) | 115 msvc_prefix = _GetTargetMSVCPrefix(api.properties['buildername'], bot_utils) |
| 115 | 116 |
| 116 # Build BoringSSL itself. | 117 # Build BoringSSL itself. |
| 117 cmake = bot_utils.join('cmake-' + _GetHostToolSuffix(api.platform), 'bin', | 118 cmake = bot_utils.join('cmake-' + _GetHostToolSuffix(api.platform), 'bin', |
| 118 'cmake' + _GetHostExeSuffix(api.platform)) | 119 'cmake' + _GetHostExeSuffix(api.platform)) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 yield ( | 159 yield ( |
| 159 api.test(buildername) + | 160 api.test(buildername) + |
| 160 host_platform + | 161 host_platform + |
| 161 api.properties.generic(mastername='client.boringssl', | 162 api.properties.generic(mastername='client.boringssl', |
| 162 buildername=buildername, slavename='slavename') + | 163 buildername=buildername, slavename='slavename') + |
| 163 api.override_step_data('unit tests', | 164 api.override_step_data('unit tests', |
| 164 api.test_utils.canned_test_output(True)) + | 165 api.test_utils.canned_test_output(True)) + |
| 165 api.override_step_data('ssl tests', | 166 api.override_step_data('ssl tests', |
| 166 api.test_utils.canned_test_output(True)) | 167 api.test_utils.canned_test_output(True)) |
| 167 ) | 168 ) |
| OLD | NEW |