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

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: 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
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', 77 VALID_TESTS = set(['chromedriver', 'chrome_proxy', 'gpu', 'mojo',
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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 def RunInstrumentationTests(options): 482 def RunInstrumentationTests(options):
483 for test in INSTRUMENTATION_TESTS.itervalues(): 483 for test in INSTRUMENTATION_TESTS.itervalues():
484 RunInstrumentationSuite(options, test) 484 RunInstrumentationSuite(options, test)
485 485
486 486
487 def RunWebkitTests(options): 487 def RunWebkitTests(options):
488 RunTestSuites(options, ['webkit_unit_tests', 'blink_heap_unittests']) 488 RunTestSuites(options, ['webkit_unit_tests', 'blink_heap_unittests'])
489 RunWebkitLint(options.target) 489 RunWebkitLint(options.target)
490 490
491 491
492 def RunWebRTCChromiumTests(options):
493 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES)
494
495
496 def RunWebRTCNativeTests(options):
497 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES)
498
499
500 def RunGPUTests(options): 492 def RunGPUTests(options):
501 revision = _GetRevision(options) 493 revision = _GetRevision(options)
502 builder_name = options.build_properties.get('buildername', 'noname') 494 builder_name = options.build_properties.get('buildername', 'noname')
503 495
504 bb_annotations.PrintNamedStep('pixel_tests') 496 bb_annotations.PrintNamedStep('pixel_tests')
505 RunCmd(['content/test/gpu/run_gpu_test.py', 497 RunCmd(['content/test/gpu/run_gpu_test.py',
506 'pixel', 498 'pixel',
507 '--browser', 499 '--browser',
508 'android-content-shell', 500 'android-content-shell',
509 '--build-revision', 501 '--build-revision',
(...skipping 26 matching lines...) Expand all
536 return [ 528 return [
537 ('chromedriver', RunChromeDriverTests), 529 ('chromedriver', RunChromeDriverTests),
538 ('chrome_proxy', RunChromeProxyTests), 530 ('chrome_proxy', RunChromeProxyTests),
539 ('gpu', RunGPUTests), 531 ('gpu', RunGPUTests),
540 ('mojo', RunMojoTests), 532 ('mojo', RunMojoTests),
541 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), 533 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests),
542 ('unit', RunUnitTests), 534 ('unit', RunUnitTests),
543 ('ui', RunInstrumentationTests), 535 ('ui', RunInstrumentationTests),
544 ('webkit', RunWebkitTests), 536 ('webkit', RunWebkitTests),
545 ('webkit_layout', RunWebkitLayoutTests), 537 ('webkit_layout', RunWebkitLayoutTests),
546 ('webrtc_chromium', RunWebRTCChromiumTests),
kjellander_chromium 2014/08/27 14:09:58 None of these are used anymore. The tests executed
547 ('webrtc_native', RunWebRTCNativeTests),
548 ] 538 ]
549 539
550 540
551 def MakeGSPath(options, gs_base_dir): 541 def MakeGSPath(options, gs_base_dir):
552 revision = _GetRevision(options) 542 revision = _GetRevision(options)
553 bot_id = options.build_properties.get('buildername', 'testing') 543 bot_id = options.build_properties.get('buildername', 'testing')
554 randhash = hashlib.sha1(str(random.random())).hexdigest() 544 randhash = hashlib.sha1(str(random.random())).hexdigest()
555 gs_path = '%s/%s/%s/%s' % (gs_base_dir, bot_id, revision, randhash) 545 gs_path = '%s/%s/%s/%s' % (gs_base_dir, bot_id, revision, randhash)
556 # remove double slashes, happens with blank revisions and confuses gsutil 546 # remove double slashes, happens with blank revisions and confuses gsutil
557 gs_path = re.sub('/+', '/', gs_path) 547 gs_path = re.sub('/+', '/', gs_path)
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 724
735 if options.coverage_bucket: 725 if options.coverage_bucket:
736 setattr(options, 'coverage_dir', 726 setattr(options, 'coverage_dir',
737 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) 727 os.path.join(CHROME_OUT_DIR, options.target, 'coverage'))
738 728
739 MainTestWrapper(options) 729 MainTestWrapper(options)
740 730
741 731
742 if __name__ == '__main__': 732 if __name__ == '__main__':
743 sys.exit(main(sys.argv)) 733 sys.exit(main(sys.argv))
OLDNEW
« build/all.gyp ('K') | « 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