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

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

Issue 12386034: Android: Run content_browsertests on the experimental bot (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disabling IndexedDBBrowserTest.ConnectionsClosedOnTabClose Created 7 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 | « no previous file | build/android/pylib/browsertests/dispatch.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 json 8 import json
9 import multiprocessing 9 import multiprocessing
10 import optparse 10 import optparse
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 """ 130 """
131 args = ['--verbose'] 131 args = ['--verbose']
132 if options.target == 'Release': 132 if options.target == 'Release':
133 args.append('--release') 133 args.append('--release')
134 if options.asan: 134 if options.asan:
135 args.append('--tool=asan') 135 args.append('--tool=asan')
136 for suite in suites: 136 for suite in suites:
137 buildbot_report.PrintNamedStep(suite) 137 buildbot_report.PrintNamedStep(suite)
138 RunCmd(['build/android/run_tests.py', '-s', suite] + args) 138 RunCmd(['build/android/run_tests.py', '-s', suite] + args)
139 139
140 def RunBrowserTestSuite(options):
141 """Manages an invocation of run_browser_tests.py.
142
143 Args:
144 options: options object.
145 """
146 args = ['--verbose']
147 if options.target == 'Release':
148 args.append('--release')
149 if options.asan:
150 args.append('--tool=asan')
151 buildbot_report.PrintNamedStep(constants.BROWSERTEST_SUITE_NAME)
152 RunCmd(['build/android/run_browser_tests.py'] + args)
140 153
141 def InstallApk(options, test, print_step=False): 154 def InstallApk(options, test, print_step=False):
142 """Install an apk to all phones. 155 """Install an apk to all phones.
143 156
144 Args: 157 Args:
145 options: options object 158 options: options object
146 test: An I_TEST namedtuple 159 test: An I_TEST namedtuple
147 print_step: Print a buildbot step 160 print_step: Print a buildbot step
148 """ 161 """
149 if print_step: 162 if print_step:
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 for test in INSTRUMENTATION_TESTS.itervalues(): 264 for test in INSTRUMENTATION_TESTS.itervalues():
252 RunInstrumentationSuite(options, test) 265 RunInstrumentationSuite(options, test)
253 if 'webkit' in options.test_filter: 266 if 'webkit' in options.test_filter:
254 RunTestSuites(options, ['webkit_unit_tests', 'TestWebKitAPI']) 267 RunTestSuites(options, ['webkit_unit_tests', 'TestWebKitAPI'])
255 RunWebkitLint(options.target) 268 RunWebkitLint(options.target)
256 if 'webkit_layout' in options.test_filter: 269 if 'webkit_layout' in options.test_filter:
257 RunWebkitLayoutTests(options) 270 RunWebkitLayoutTests(options)
258 271
259 if options.experimental: 272 if options.experimental:
260 RunTestSuites(options, gtest_config.EXPERIMENTAL_TEST_SUITES) 273 RunTestSuites(options, gtest_config.EXPERIMENTAL_TEST_SUITES)
274 RunBrowserTestSuite(options)
261 275
262 # Print logcat, kill logcat monitor 276 # Print logcat, kill logcat monitor
263 buildbot_report.PrintNamedStep('logcat_dump') 277 buildbot_report.PrintNamedStep('logcat_dump')
264 RunCmd(['build/android/adb_logcat_printer.py', logcat_dir]) 278 RunCmd(['build/android/adb_logcat_printer.py', logcat_dir])
265 279
266 buildbot_report.PrintNamedStep('test_report') 280 buildbot_report.PrintNamedStep('test_report')
267 for report in glob.glob( 281 for report in glob.glob(
268 os.path.join(CHROME_SRC, 'out', options.target, 'test_logs', '*.log')): 282 os.path.join(CHROME_SRC, 'out', options.target, 'test_logs', '*.log')):
269 RunCmd(['cat', report]) 283 RunCmd(['cat', report])
270 os.remove(report) 284 os.remove(report)
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 'slave', 'android')) 338 'slave', 'android'))
325 if os.path.exists(build_internal_android): 339 if os.path.exists(build_internal_android):
326 android_paths.insert(0, build_internal_android) 340 android_paths.insert(0, build_internal_android)
327 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) 341 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']])
328 342
329 MainTestWrapper(options) 343 MainTestWrapper(options)
330 344
331 345
332 if __name__ == '__main__': 346 if __name__ == '__main__':
333 sys.exit(main(sys.argv)) 347 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/browsertests/dispatch.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698