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

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

Issue 511453003: Made ChromeSyncShellTest.apk run on the fyi-tests bot. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made the tests only run on fyi_tests now. Created 6 years, 3 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
« no previous file with comments | « build/all.gyp ('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 os 10 import os
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 'ChromeShellTest', 67 'ChromeShellTest',
68 'chrome:chrome/test/data/android/device_files', 68 'chrome:chrome/test/data/android/device_files',
69 constants.CHROME_SHELL_HOST_DRIVEN_DIR), 69 constants.CHROME_SHELL_HOST_DRIVEN_DIR),
70 I('AndroidWebView', 70 I('AndroidWebView',
71 'AndroidWebView.apk', 71 'AndroidWebView.apk',
72 'org.chromium.android_webview.shell', 72 'org.chromium.android_webview.shell',
73 'AndroidWebViewTest', 73 'AndroidWebViewTest',
74 'webview:android_webview/test/data/device_files'), 74 'webview:android_webview/test/data/device_files'),
75 ]) 75 ])
76 76
77 VALID_TESTS = set(['chromedriver', 'chrome_proxy', 'gpu', 'mojo', 77 VALID_TESTS = set(['chromedriver', 'chrome_proxy', 'gpu', 'mojo', 'sync',
78 'telemetry_perf_unittests', 'ui', 'unit', 'webkit', 78 'telemetry_perf_unittests', 'ui', 'unit', 'webkit',
79 'webkit_layout', 'webrtc_chromium', 'webrtc_native']) 79 'webkit_layout', 'webrtc_chromium', 'webrtc_native'])
80 80
81 RunCmd = bb_utils.RunCmd 81 RunCmd = bb_utils.RunCmd
82 82
83 83
84 def _GetRevision(options): 84 def _GetRevision(options):
85 """Get the SVN revision number. 85 """Get the SVN revision number.
86 86
87 Args: 87 Args:
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 options: options object. 173 options: options object.
174 """ 174 """
175 InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False) 175 InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False)
176 args = ['--browser', 'android-chrome-shell'] 176 args = ['--browser', 'android-chrome-shell']
177 devices = android_commands.GetAttachedDevices() 177 devices = android_commands.GetAttachedDevices()
178 if devices: 178 if devices:
179 args = args + ['--device', devices[0]] 179 args = args + ['--device', devices[0]]
180 bb_annotations.PrintNamedStep('chrome_proxy') 180 bb_annotations.PrintNamedStep('chrome_proxy')
181 RunCmd(['tools/chrome_proxy/run_tests'] + args) 181 RunCmd(['tools/chrome_proxy/run_tests'] + args)
182 182
183 def RunChromeSyncShellTests(options):
184 """Run the chrome sync shell tests"""
185 test = I('ChromeSyncShell',
186 'ChromeSyncShell.apk',
187 'org.chromium.chrome.browser.sync',
188 'ChromeSyncShellTest.apk',
189 'chrome:chrome/test/data/android/device_files')
190 RunInstrumentationSuite(options, test)
191
183 def RunTelemetryPerfUnitTests(options): 192 def RunTelemetryPerfUnitTests(options):
184 """Runs the telemetry perf unit tests. 193 """Runs the telemetry perf unit tests.
185 194
186 Args: 195 Args:
187 options: options object. 196 options: options object.
188 """ 197 """
189 InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False) 198 InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False)
190 args = ['--browser', 'android-chrome-shell'] 199 args = ['--browser', 'android-chrome-shell']
191 devices = android_commands.GetAttachedDevices() 200 devices = android_commands.GetAttachedDevices()
192 if devices: 201 if devices:
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 '--test-machine-name', 540 '--test-machine-name',
532 EscapeBuilderName(builder_name)]) 541 EscapeBuilderName(builder_name)])
533 542
534 543
535 def GetTestStepCmds(): 544 def GetTestStepCmds():
536 return [ 545 return [
537 ('chromedriver', RunChromeDriverTests), 546 ('chromedriver', RunChromeDriverTests),
538 ('chrome_proxy', RunChromeProxyTests), 547 ('chrome_proxy', RunChromeProxyTests),
539 ('gpu', RunGPUTests), 548 ('gpu', RunGPUTests),
540 ('mojo', RunMojoTests), 549 ('mojo', RunMojoTests),
550 ('sync', RunChromeSyncShellTests),
541 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), 551 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests),
552 ('ui', RunInstrumentationTests),
542 ('unit', RunUnitTests), 553 ('unit', RunUnitTests),
543 ('ui', RunInstrumentationTests),
544 ('webkit', RunWebkitTests), 554 ('webkit', RunWebkitTests),
545 ('webkit_layout', RunWebkitLayoutTests), 555 ('webkit_layout', RunWebkitLayoutTests),
546 ('webrtc_chromium', RunWebRTCChromiumTests), 556 ('webrtc_chromium', RunWebRTCChromiumTests),
547 ('webrtc_native', RunWebRTCNativeTests), 557 ('webrtc_native', RunWebRTCNativeTests),
548 ] 558 ]
549 559
550 560
551 def MakeGSPath(options, gs_base_dir): 561 def MakeGSPath(options, gs_base_dir):
552 revision = _GetRevision(options) 562 revision = _GetRevision(options)
553 bot_id = options.build_properties.get('buildername', 'testing') 563 bot_id = options.build_properties.get('buildername', 'testing')
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 744
735 if options.coverage_bucket: 745 if options.coverage_bucket:
736 setattr(options, 'coverage_dir', 746 setattr(options, 'coverage_dir',
737 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) 747 os.path.join(CHROME_OUT_DIR, options.target, 'coverage'))
738 748
739 MainTestWrapper(options) 749 MainTestWrapper(options)
740 750
741 751
742 if __name__ == '__main__': 752 if __name__ == '__main__':
743 sys.exit(main(sys.argv)) 753 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | build/android/buildbot/bb_run_bot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698