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

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

Issue 500423004: Refactor/cleanup WebRTC-specific Andorid glue code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
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', 'sync', 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'])
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:
88 options: options object. 88 options: options object.
89 89
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 def RunInstrumentationTests(options): 491 def RunInstrumentationTests(options):
492 for test in INSTRUMENTATION_TESTS.itervalues(): 492 for test in INSTRUMENTATION_TESTS.itervalues():
493 RunInstrumentationSuite(options, test) 493 RunInstrumentationSuite(options, test)
494 494
495 495
496 def RunWebkitTests(options): 496 def RunWebkitTests(options):
497 RunTestSuites(options, ['webkit_unit_tests', 'blink_heap_unittests']) 497 RunTestSuites(options, ['webkit_unit_tests', 'blink_heap_unittests'])
498 RunWebkitLint(options.target) 498 RunWebkitLint(options.target)
499 499
500 500
501 def RunWebRTCChromiumTests(options):
502 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES)
503
504
505 def RunWebRTCNativeTests(options):
506 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES)
507
508
509 def RunGPUTests(options): 501 def RunGPUTests(options):
510 revision = _GetRevision(options) 502 revision = _GetRevision(options)
511 builder_name = options.build_properties.get('buildername', 'noname') 503 builder_name = options.build_properties.get('buildername', 'noname')
512 504
513 bb_annotations.PrintNamedStep('pixel_tests') 505 bb_annotations.PrintNamedStep('pixel_tests')
514 RunCmd(['content/test/gpu/run_gpu_test.py', 506 RunCmd(['content/test/gpu/run_gpu_test.py',
515 'pixel', 507 'pixel',
516 '--browser', 508 '--browser',
517 'android-content-shell', 509 'android-content-shell',
518 '--build-revision', 510 '--build-revision',
(...skipping 27 matching lines...) Expand all
546 ('chromedriver', RunChromeDriverTests), 538 ('chromedriver', RunChromeDriverTests),
547 ('chrome_proxy', RunChromeProxyTests), 539 ('chrome_proxy', RunChromeProxyTests),
548 ('gpu', RunGPUTests), 540 ('gpu', RunGPUTests),
549 ('mojo', RunMojoTests), 541 ('mojo', RunMojoTests),
550 ('sync', RunChromeSyncShellTests), 542 ('sync', RunChromeSyncShellTests),
551 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), 543 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests),
552 ('ui', RunInstrumentationTests), 544 ('ui', RunInstrumentationTests),
553 ('unit', RunUnitTests), 545 ('unit', RunUnitTests),
554 ('webkit', RunWebkitTests), 546 ('webkit', RunWebkitTests),
555 ('webkit_layout', RunWebkitLayoutTests), 547 ('webkit_layout', RunWebkitLayoutTests),
556 ('webrtc_chromium', RunWebRTCChromiumTests),
557 ('webrtc_native', RunWebRTCNativeTests),
558 ] 548 ]
559 549
560 550
561 def MakeGSPath(options, gs_base_dir): 551 def MakeGSPath(options, gs_base_dir):
562 revision = _GetRevision(options) 552 revision = _GetRevision(options)
563 bot_id = options.build_properties.get('buildername', 'testing') 553 bot_id = options.build_properties.get('buildername', 'testing')
564 randhash = hashlib.sha1(str(random.random())).hexdigest() 554 randhash = hashlib.sha1(str(random.random())).hexdigest()
565 gs_path = '%s/%s/%s/%s' % (gs_base_dir, bot_id, revision, randhash) 555 gs_path = '%s/%s/%s/%s' % (gs_base_dir, bot_id, revision, randhash)
566 # remove double slashes, happens with blank revisions and confuses gsutil 556 # remove double slashes, happens with blank revisions and confuses gsutil
567 gs_path = re.sub('/+', '/', gs_path) 557 gs_path = re.sub('/+', '/', gs_path)
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 734
745 if options.coverage_bucket: 735 if options.coverage_bucket:
746 setattr(options, 'coverage_dir', 736 setattr(options, 'coverage_dir',
747 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) 737 os.path.join(CHROME_OUT_DIR, options.target, 'coverage'))
748 738
749 MainTestWrapper(options) 739 MainTestWrapper(options)
750 740
751 741
752 if __name__ == '__main__': 742 if __name__ == '__main__':
753 sys.exit(main(sys.argv)) 743 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