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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 InstallablePackage = collections.namedtuple('InstallablePackage', [ | 87 InstallablePackage = collections.namedtuple('InstallablePackage', [ |
88 'name', 'apk', 'apk_package']) | 88 'name', 'apk', 'apk_package']) |
89 | 89 |
90 INSTALLABLE_PACKAGES = dict((package.name, package) for package in ( | 90 INSTALLABLE_PACKAGES = dict((package.name, package) for package in ( |
91 [InstallablePackage(i.name, i.apk, i.apk_package) | 91 [InstallablePackage(i.name, i.apk, i.apk_package) |
92 for i in INSTRUMENTATION_TESTS.itervalues()] + | 92 for i in INSTRUMENTATION_TESTS.itervalues()] + |
93 [InstallablePackage('ChromeDriverWebViewShell', | 93 [InstallablePackage('ChromeDriverWebViewShell', |
94 'ChromeDriverWebViewShell.apk', | 94 'ChromeDriverWebViewShell.apk', |
95 'org.chromium.chromedriver_webview_shell')])) | 95 'org.chromium.chromedriver_webview_shell')])) |
96 | 96 |
97 VALID_TESTS = set(['chromedriver', 'chrome_proxy', 'components_browsertests', | 97 VALID_TESTS = set(['chromedriver', 'chrome_proxy', 'components_browsertests', |
jbudorick
2015/05/11 16:03:42
You'll also need to add gfx_unittests here. (I did
tfarina
2015/05/11 16:35:18
Done.
| |
98 'gpu', 'python_unittests', 'telemetry_unittests', | 98 'gpu', 'python_unittests', 'telemetry_unittests', |
99 'telemetry_perf_unittests', 'ui', 'unit', 'webkit', | 99 'telemetry_perf_unittests', 'ui', 'unit', 'webkit', |
100 'webkit_layout']) | 100 'webkit_layout']) |
101 | 101 |
102 RunCmd = bb_utils.RunCmd | 102 RunCmd = bb_utils.RunCmd |
103 | 103 |
104 | 104 |
105 def _GetRevision(options): | 105 def _GetRevision(options): |
106 """Get the SVN revision number. | 106 """Get the SVN revision number. |
107 | 107 |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
558 bb_annotations.PrintNamedStep(suite) | 558 bb_annotations.PrintNamedStep(suite) |
559 RunCmd(['build/android/test_runner.py', 'python', '-s', suite]) | 559 RunCmd(['build/android/test_runner.py', 'python', '-s', suite]) |
560 | 560 |
561 | 561 |
562 def GetTestStepCmds(): | 562 def GetTestStepCmds(): |
563 return [ | 563 return [ |
564 ('chromedriver', RunChromeDriverTests), | 564 ('chromedriver', RunChromeDriverTests), |
565 ('chrome_proxy', RunChromeProxyTests), | 565 ('chrome_proxy', RunChromeProxyTests), |
566 ('components_browsertests', | 566 ('components_browsertests', |
567 lambda options: RunTestSuites(options, ['components_browsertests'])), | 567 lambda options: RunTestSuites(options, ['components_browsertests'])), |
568 ('gfx_unittests', | |
569 lambda options: RunTestSuites(options, ['gfx_unittests'])), | |
568 ('gpu', RunGPUTests), | 570 ('gpu', RunGPUTests), |
569 ('python_unittests', RunPythonUnitTests), | 571 ('python_unittests', RunPythonUnitTests), |
570 ('telemetry_unittests', RunTelemetryUnitTests), | 572 ('telemetry_unittests', RunTelemetryUnitTests), |
571 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), | 573 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), |
572 ('ui', RunInstrumentationTests), | 574 ('ui', RunInstrumentationTests), |
573 ('unit', RunUnitTests), | 575 ('unit', RunUnitTests), |
574 ('webkit', RunWebkitTests), | 576 ('webkit', RunWebkitTests), |
575 ('webkit_layout', RunWebkitLayoutTests), | 577 ('webkit_layout', RunWebkitLayoutTests), |
576 ] | 578 ] |
577 | 579 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
765 | 767 |
766 if options.coverage_bucket: | 768 if options.coverage_bucket: |
767 setattr(options, 'coverage_dir', | 769 setattr(options, 'coverage_dir', |
768 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 770 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
769 | 771 |
770 MainTestWrapper(options) | 772 MainTestWrapper(options) |
771 | 773 |
772 | 774 |
773 if __name__ == '__main__': | 775 if __name__ == '__main__': |
774 sys.exit(main(sys.argv)) | 776 sys.exit(main(sys.argv)) |
OLD | NEW |