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

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

Issue 309523002: Move installation of ContentShell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 449
450 def RunWebRTCChromiumTests(options): 450 def RunWebRTCChromiumTests(options):
451 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) 451 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES)
452 452
453 453
454 def RunWebRTCNativeTests(options): 454 def RunWebRTCNativeTests(options):
455 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) 455 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES)
456 456
457 457
458 def RunGPUTests(options): 458 def RunGPUTests(options):
459 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) 459 revision = _GetRevision(options)
460 builder_name = options.build_properties.get('buildername', 'noname')
460 461
461 bb_annotations.PrintNamedStep('gpu_tests') 462 bb_annotations.PrintNamedStep('pixel_tests')
462 revision = _GetRevision(options)
463 RunCmd(['content/test/gpu/run_gpu_test.py', 463 RunCmd(['content/test/gpu/run_gpu_test.py',
464 'pixel', 464 'pixel',
465 '--browser', 465 '--browser',
466 'android-content-shell', 466 'android-content-shell',
467 '--build-revision', 467 '--build-revision',
468 str(revision), 468 str(revision),
469 '--upload-refimg-to-cloud-storage', 469 '--upload-refimg-to-cloud-storage',
470 '--refimg-cloud-storage-bucket', 470 '--refimg-cloud-storage-bucket',
471 'chromium-gpu-archive/reference-images', 471 'chromium-gpu-archive/reference-images',
472 '--os-type', 472 '--os-type',
473 'android', 473 'android',
474 '--test-machine-name', 474 '--test-machine-name',
475 EscapeBuilderName( 475 EscapeBuilderName(builder_name)])
476 options.build_properties.get('buildername', 'noname'))])
477 476
478 bb_annotations.PrintNamedStep('webgl_conformance_tests') 477 bb_annotations.PrintNamedStep('webgl_conformance_tests')
479 RunCmd(['content/test/gpu/run_gpu_test.py', 478 RunCmd(['content/test/gpu/run_gpu_test.py',
480 '--browser=android-content-shell', 'webgl_conformance', 479 '--browser=android-content-shell', 'webgl_conformance',
481 '--webgl-conformance-version=1.0.1']) 480 '--webgl-conformance-version=1.0.1'])
482 481
483 482
484 def GetTestStepCmds(): 483 def GetTestStepCmds():
485 return [ 484 return [
486 ('chromedriver', RunChromeDriverTests), 485 ('chromedriver', RunChromeDriverTests),
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) 660 setattr(options, 'target', options.factory_properties.get('target', 'Debug'))
662 if options.coverage_bucket: 661 if options.coverage_bucket:
663 setattr(options, 'coverage_dir', 662 setattr(options, 'coverage_dir',
664 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) 663 os.path.join(CHROME_OUT_DIR, options.target, 'coverage'))
665 664
666 MainTestWrapper(options) 665 MainTestWrapper(options)
667 666
668 667
669 if __name__ == '__main__': 668 if __name__ == '__main__':
670 sys.exit(main(sys.argv)) 669 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | build/android/buildbot/bb_run_bot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698