| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 import bb_utils | 9 import bb_utils |
| 10 import bb_annotations | 10 import bb_annotations |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 'run_findbugs_plugin_tests.py')] + build_type) | 98 'run_findbugs_plugin_tests.py')] + build_type) |
| 99 | 99 |
| 100 | 100 |
| 101 def BisectPerfRegression(_): | 101 def BisectPerfRegression(_): |
| 102 RunCmd([SrcPath('tools', 'prepare-bisect-perf-regression.py'), | 102 RunCmd([SrcPath('tools', 'prepare-bisect-perf-regression.py'), |
| 103 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) | 103 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) |
| 104 RunCmd([SrcPath('tools', 'run-bisect-perf-regression.py'), | 104 RunCmd([SrcPath('tools', 'run-bisect-perf-regression.py'), |
| 105 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) | 105 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) |
| 106 | 106 |
| 107 | 107 |
| 108 def DownloadWebRTCResources(_): | |
| 109 bb_annotations.PrintNamedStep('download_resources') | |
| 110 RunCmd([SrcPath('third_party', 'webrtc', 'tools', 'update_resources.py'), | |
| 111 '-p', '../../../'], halt_on_failure=True) | |
| 112 | |
| 113 | |
| 114 def GetHostStepCmds(): | 108 def GetHostStepCmds(): |
| 115 return [ | 109 return [ |
| 116 ('compile', Compile), | 110 ('compile', Compile), |
| 117 ('extract_build', ExtractBuild), | 111 ('extract_build', ExtractBuild), |
| 118 ('check_webview_licenses', CheckWebViewLicenses), | 112 ('check_webview_licenses', CheckWebViewLicenses), |
| 119 ('bisect_perf_regression', BisectPerfRegression), | 113 ('bisect_perf_regression', BisectPerfRegression), |
| 120 ('download_webrtc_resources', DownloadWebRTCResources), | |
| 121 ('findbugs', FindBugs), | 114 ('findbugs', FindBugs), |
| 122 ('zip_build', ZipBuild) | 115 ('zip_build', ZipBuild) |
| 123 ] | 116 ] |
| 124 | 117 |
| 125 | 118 |
| 126 def GetHostStepsOptParser(): | 119 def GetHostStepsOptParser(): |
| 127 parser = bb_utils.GetParser() | 120 parser = bb_utils.GetParser() |
| 128 parser.add_option('--steps', help='Comma separated list of host tests.') | 121 parser.add_option('--steps', help='Comma separated list of host tests.') |
| 129 parser.add_option('--build-targets', default='All', | 122 parser.add_option('--build-targets', default='All', |
| 130 help='Comma separated list of build targets.') | 123 help='Comma separated list of build targets.') |
| (...skipping 10 matching lines...) Expand all Loading... |
| 141 return sys.exit('Unused args %s' % args) | 134 return sys.exit('Unused args %s' % args) |
| 142 | 135 |
| 143 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 136 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
| 144 | 137 |
| 145 if options.steps: | 138 if options.steps: |
| 146 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) | 139 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) |
| 147 | 140 |
| 148 | 141 |
| 149 if __name__ == '__main__': | 142 if __name__ == '__main__': |
| 150 sys.exit(main(sys.argv)) | 143 sys.exit(main(sys.argv)) |
| OLD | NEW |