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

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

Issue 12758002: Add android buildbot support for exe tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: syntax fix 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
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 Args: 127 Args:
128 options: options object. 128 options: options object.
129 suites: List of suites to run. 129 suites: List of suites to run.
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 for suite in suites:
138 RunCmd(['build/android/run_tests.py', '-s', suite] + args) 138 buildbot_report.PrintNamedStep(suite.name)
139 cmd = ['build/android/run_tests.py', '-s', suite.name] + args
140 if suite.is_suite_exe:
141 cmd.append('--exe')
142 RunCmd(cmd)
139 143
140 def RunBrowserTestSuite(options): 144 def RunBrowserTestSuite(options):
141 """Manages an invocation of run_browser_tests.py. 145 """Manages an invocation of run_browser_tests.py.
142 146
143 Args: 147 Args:
144 options: options object. 148 options: options object.
145 """ 149 """
146 args = ['--verbose'] 150 args = ['--verbose']
147 if options.target == 'Release': 151 if options.target == 'Release':
148 args.append('--release') 152 args.append('--release')
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 InstallApk(options, test_obj, print_step=True) 270 InstallApk(options, test_obj, print_step=True)
267 271
268 if 'chromedriver' in options.test_filter: 272 if 'chromedriver' in options.test_filter:
269 RunChromeDriverTests() 273 RunChromeDriverTests()
270 if 'unit' in options.test_filter: 274 if 'unit' in options.test_filter:
271 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) 275 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES)
272 if 'ui' in options.test_filter: 276 if 'ui' in options.test_filter:
273 for test in INSTRUMENTATION_TESTS.itervalues(): 277 for test in INSTRUMENTATION_TESTS.itervalues():
274 RunInstrumentationSuite(options, test) 278 RunInstrumentationSuite(options, test)
275 if 'webkit' in options.test_filter: 279 if 'webkit' in options.test_filter:
276 RunTestSuites(options, ['webkit_unit_tests', 'TestWebKitAPI']) 280 RunTestSuites(options, [
281 gtest_config.Apk('webkit_unit_tests'),
282 gtest_config.Apk('TestWebKitAPI'),
283 ])
277 RunWebkitLint(options.target) 284 RunWebkitLint(options.target)
278 if 'webkit_layout' in options.test_filter: 285 if 'webkit_layout' in options.test_filter:
279 RunWebkitLayoutTests(options) 286 RunWebkitLayoutTests(options)
280 287
281 if options.experimental: 288 if options.experimental:
282 RunTestSuites(options, gtest_config.EXPERIMENTAL_TEST_SUITES) 289 RunTestSuites(options, gtest_config.EXPERIMENTAL_TEST_SUITES)
283 RunBrowserTestSuite(options) 290 RunBrowserTestSuite(options)
284 291
285 # Print logcat, kill logcat monitor 292 # Print logcat, kill logcat monitor
286 buildbot_report.PrintNamedStep('logcat_dump') 293 buildbot_report.PrintNamedStep('logcat_dump')
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 'slave', 'android')) 354 'slave', 'android'))
348 if os.path.exists(build_internal_android): 355 if os.path.exists(build_internal_android):
349 android_paths.insert(0, build_internal_android) 356 android_paths.insert(0, build_internal_android)
350 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) 357 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']])
351 358
352 MainTestWrapper(options) 359 MainTestWrapper(options)
353 360
354 361
355 if __name__ == '__main__': 362 if __name__ == '__main__':
356 sys.exit(main(sys.argv)) 363 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | build/android/buildbot/bb_run_bot.py » ('j') | build/android/pylib/gtest/dispatch.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698