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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 build_type = [] | 89 build_type = [] |
90 if options.target == 'Release': | 90 if options.target == 'Release': |
91 build_type = ['--release-build'] | 91 build_type = ['--release-build'] |
92 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')] + build_type) | 92 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')] + build_type) |
93 RunCmd([SrcPath( | 93 RunCmd([SrcPath( |
94 'tools', 'android', 'findbugs_plugin', 'test', | 94 'tools', 'android', 'findbugs_plugin', 'test', |
95 'run_findbugs_plugin_tests.py')] + build_type) | 95 'run_findbugs_plugin_tests.py')] + build_type) |
96 | 96 |
97 | 97 |
98 def BisectPerfRegression(_): | 98 def BisectPerfRegression(_): |
99 bb_annotations.PrintNamedStep('Bisect Perf Regression') | |
100 RunCmd([SrcPath('tools', 'prepare-bisect-perf-regression.py'), | 99 RunCmd([SrcPath('tools', 'prepare-bisect-perf-regression.py'), |
101 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) | 100 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) |
102 RunCmd([SrcPath('tools', 'run-bisect-perf-regression.py'), | 101 RunCmd([SrcPath('tools', 'run-bisect-perf-regression.py'), |
103 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) | 102 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) |
104 | 103 |
105 | 104 |
106 def GetHostStepCmds(): | 105 def GetHostStepCmds(): |
107 return [ | 106 return [ |
108 ('compile', Compile), | 107 ('compile', Compile), |
109 ('extract_build', ExtractBuild), | 108 ('extract_build', ExtractBuild), |
(...skipping 22 matching lines...) Expand all Loading... |
132 return sys.exit('Unused args %s' % args) | 131 return sys.exit('Unused args %s' % args) |
133 | 132 |
134 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 133 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
135 | 134 |
136 if options.steps: | 135 if options.steps: |
137 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) | 136 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) |
138 | 137 |
139 | 138 |
140 if __name__ == '__main__': | 139 if __name__ == '__main__': |
141 sys.exit(main(sys.argv)) | 140 sys.exit(main(sys.argv)) |
OLD | NEW |