OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 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 collections | 6 import collections |
7 import glob | 7 import glob |
8 import hashlib | 8 import hashlib |
9 import json | 9 import json |
10 import os | 10 import os |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 def RunMojoTests(options): | 207 def RunMojoTests(options): |
208 """Runs the mojo unit tests. | 208 """Runs the mojo unit tests. |
209 | 209 |
210 Args: | 210 Args: |
211 options: options object. | 211 options: options object. |
212 """ | 212 """ |
213 test = I('MojoTest', | 213 test = I('MojoTest', |
214 None, | 214 None, |
215 'org.chromium.mojo.tests', | 215 'org.chromium.mojo.tests', |
216 'MojoTest', | 216 'MojoTest', |
217 None) | 217 'bindings:mojo/public/interfaces/bindings/tests/data') |
218 RunInstrumentationSuite(options, test) | 218 RunInstrumentationSuite(options, test) |
219 | 219 |
220 | 220 |
221 def InstallApk(options, test, print_step=False): | 221 def InstallApk(options, test, print_step=False): |
222 """Install an apk to all phones. | 222 """Install an apk to all phones. |
223 | 223 |
224 Args: | 224 Args: |
225 options: options object | 225 options: options object |
226 test: An I_TEST namedtuple | 226 test: An I_TEST namedtuple |
227 print_step: Print a buildbot step | 227 print_step: Print a buildbot step |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 | 744 |
745 if options.coverage_bucket: | 745 if options.coverage_bucket: |
746 setattr(options, 'coverage_dir', | 746 setattr(options, 'coverage_dir', |
747 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 747 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
748 | 748 |
749 MainTestWrapper(options) | 749 MainTestWrapper(options) |
750 | 750 |
751 | 751 |
752 if __name__ == '__main__': | 752 if __name__ == '__main__': |
753 sys.exit(main(sys.argv)) | 753 sys.exit(main(sys.argv)) |
OLD | NEW |