OLD | NEW |
---|---|
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 multiprocessing | 10 import multiprocessing |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
477 | 477 |
478 | 478 |
479 def RunWebRTCChromiumTests(options): | 479 def RunWebRTCChromiumTests(options): |
480 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) | 480 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) |
481 | 481 |
482 | 482 |
483 def RunWebRTCNativeTests(options): | 483 def RunWebRTCNativeTests(options): |
484 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) | 484 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) |
485 | 485 |
486 | 486 |
487 def RunGPUTests(options): | 487 def RunGPUTests(options): |
navabi
2014/05/20 20:47:17
I think the PrintNamedStep should go here. Even wi
alokp
2014/05/23 17:38:27
OK. I added a gpu_tests step before the install, b
| |
488 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) | 488 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) |
489 | 489 |
490 bb_annotations.PrintNamedStep('gpu_tests') | |
491 revision = _GetRevision(options) | 490 revision = _GetRevision(options) |
491 builder_name = options.build_properties.get('buildername', 'noname') | |
492 | |
493 bb_annotations.PrintNamedStep('pixel_tests') | |
492 RunCmd(['content/test/gpu/run_gpu_test.py', | 494 RunCmd(['content/test/gpu/run_gpu_test.py', |
493 'pixel', | 495 'pixel', |
494 '--browser', | 496 '--browser', |
495 'android-content-shell', | 497 'android-content-shell', |
496 '--build-revision', | 498 '--build-revision', |
497 str(revision), | 499 str(revision), |
498 '--upload-refimg-to-cloud-storage', | 500 '--upload-refimg-to-cloud-storage', |
499 '--refimg-cloud-storage-bucket', | 501 '--refimg-cloud-storage-bucket', |
500 'chromium-gpu-archive/reference-images', | 502 'chromium-gpu-archive/reference-images', |
501 '--os-type', | 503 '--os-type', |
502 'android', | 504 'android', |
503 '--test-machine-name', | 505 '--test-machine-name', |
504 EscapeBuilderName( | 506 EscapeBuilderName(builder_name)]) |
505 options.build_properties.get('buildername', 'noname'))]) | |
506 | 507 |
507 bb_annotations.PrintNamedStep('webgl_conformance_tests') | 508 bb_annotations.PrintNamedStep('webgl_conformance_tests') |
508 RunCmd(['content/test/gpu/run_gpu_test.py', | 509 RunCmd(['content/test/gpu/run_gpu_test.py', |
509 '--browser=android-content-shell', 'webgl_conformance', | 510 '--browser=android-content-shell', 'webgl_conformance', |
510 '--webgl-conformance-version=1.0.1']) | 511 '--webgl-conformance-version=1.0.1']) |
511 | 512 |
513 bb_annotations.PrintNamedStep('gpu_rasterization_tests') | |
514 RunCmd(['content/test/gpu/run_gpu_test.py', | |
515 'gpu_rasterization', | |
516 '--browser', | |
517 'android-content-shell', | |
518 '--build-revision', | |
519 str(revision), | |
520 '--test-machine-name', | |
521 EscapeBuilderName(builder_name)]) | |
522 | |
512 | 523 |
513 def GetTestStepCmds(): | 524 def GetTestStepCmds(): |
514 return [ | 525 return [ |
515 ('chromedriver', RunChromeDriverTests), | 526 ('chromedriver', RunChromeDriverTests), |
516 ('gpu', RunGPUTests), | 527 ('gpu', RunGPUTests), |
517 ('mojo', RunMojoTests), | 528 ('mojo', RunMojoTests), |
518 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), | 529 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), |
519 ('unit', RunUnitTests), | 530 ('unit', RunUnitTests), |
520 ('ui', RunInstrumentationTests), | 531 ('ui', RunInstrumentationTests), |
521 ('webkit', RunWebkitTests), | 532 ('webkit', RunWebkitTests), |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
690 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 701 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
691 if options.coverage_bucket: | 702 if options.coverage_bucket: |
692 setattr(options, 'coverage_dir', | 703 setattr(options, 'coverage_dir', |
693 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 704 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
694 | 705 |
695 MainTestWrapper(options) | 706 MainTestWrapper(options) |
696 | 707 |
697 | 708 |
698 if __name__ == '__main__': | 709 if __name__ == '__main__': |
699 sys.exit(main(sys.argv)) | 710 sys.exit(main(sys.argv)) |
OLD | NEW |