Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Side by Side Diff: build/android/buildbot/bb_device_steps.py

Issue 189133005: Rename chromium_testshell target to chrome_shell_apk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/adb_gdb_chromium_testshell ('k') | build/android/buildbot/bb_run_bot.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 multiprocessing 10 import multiprocessing
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 annotation=None, exclude_annotation=None, extra_flags=None): 57 annotation=None, exclude_annotation=None, extra_flags=None):
58 return I_TEST(name, apk, apk_package, test_apk, test_data, host_driven_root, 58 return I_TEST(name, apk, apk_package, test_apk, test_data, host_driven_root,
59 annotation, exclude_annotation, extra_flags) 59 annotation, exclude_annotation, extra_flags)
60 60
61 INSTRUMENTATION_TESTS = dict((suite.name, suite) for suite in [ 61 INSTRUMENTATION_TESTS = dict((suite.name, suite) for suite in [
62 I('ContentShell', 62 I('ContentShell',
63 'ContentShell.apk', 63 'ContentShell.apk',
64 'org.chromium.content_shell_apk', 64 'org.chromium.content_shell_apk',
65 'ContentShellTest', 65 'ContentShellTest',
66 'content:content/test/data/android/device_files'), 66 'content:content/test/data/android/device_files'),
67 I('ChromiumTestShell', 67 I('ChromeShell',
68 'ChromiumTestShell.apk', 68 'ChromeShell.apk',
69 'org.chromium.chrome.shell', 69 'org.chromium.chrome.shell',
70 'ChromiumTestShellTest', 70 'ChromeShellTest',
71 'chrome:chrome/test/data/android/device_files', 71 'chrome:chrome/test/data/android/device_files',
72 constants.CHROMIUM_TEST_SHELL_HOST_DRIVEN_DIR), 72 constants.CHROME_SHELL_HOST_DRIVEN_DIR),
73 I('AndroidWebView', 73 I('AndroidWebView',
74 'AndroidWebView.apk', 74 'AndroidWebView.apk',
75 'org.chromium.android_webview.shell', 75 'org.chromium.android_webview.shell',
76 'AndroidWebViewTest', 76 'AndroidWebViewTest',
77 'webview:android_webview/test/data/device_files'), 77 'webview:android_webview/test/data/device_files'),
78 ]) 78 ])
79 79
80 VALID_TESTS = set(['chromedriver', 'gpu', 'ui', 'unit', 'webkit', 80 VALID_TESTS = set(['chromedriver', 'gpu', 'ui', 'unit', 'webkit',
81 'webkit_layout', 'webrtc_chromium', 'webrtc_native']) 81 'webkit_layout', 'webrtc_chromium', 'webrtc_native'])
82 82
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 if suite == 'content_browsertests': 149 if suite == 'content_browsertests':
150 cmd.append('--num_retries=1') 150 cmd.append('--num_retries=1')
151 RunCmd(cmd) 151 RunCmd(cmd)
152 152
153 153
154 def RunChromeDriverTests(options): 154 def RunChromeDriverTests(options):
155 """Run all the steps for running chromedriver tests.""" 155 """Run all the steps for running chromedriver tests."""
156 bb_annotations.PrintNamedStep('chromedriver_annotation') 156 bb_annotations.PrintNamedStep('chromedriver_annotation')
157 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py', 157 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py',
158 '--android-packages=%s,%s,%s,%s' % 158 '--android-packages=%s,%s,%s,%s' %
159 ('chromium_test_shell', 159 ('chrome_shell',
160 'chrome_stable', 160 'chrome_stable',
161 'chrome_beta', 161 'chrome_beta',
162 'chromedriver_webview_shell'), 162 'chromedriver_webview_shell'),
163 '--revision=%s' % _GetRevision(options), 163 '--revision=%s' % _GetRevision(options),
164 '--update-log']) 164 '--update-log'])
165 165
166 166
167 def InstallApk(options, test, print_step=False): 167 def InstallApk(options, test, print_step=False):
168 """Install an apk to all phones. 168 """Install an apk to all phones.
169 169
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) 646 setattr(options, 'target', options.factory_properties.get('target', 'Debug'))
647 if options.coverage_bucket: 647 if options.coverage_bucket:
648 setattr(options, 'coverage_dir', 648 setattr(options, 'coverage_dir',
649 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) 649 os.path.join(CHROME_OUT_DIR, options.target, 'coverage'))
650 650
651 MainTestWrapper(options) 651 MainTestWrapper(options)
652 652
653 653
654 if __name__ == '__main__': 654 if __name__ == '__main__':
655 sys.exit(main(sys.argv)) 655 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/adb_gdb_chromium_testshell ('k') | build/android/buildbot/bb_run_bot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698