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 os | 10 import os |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
| 482 bb_annotations.PrintNamedStep('gpu_rasterization_tests') |
| 483 RunCmd(['content/test/gpu/run_gpu_test.py', |
| 484 'gpu_rasterization', |
| 485 '--browser', |
| 486 'android-content-shell', |
| 487 '--build-revision', |
| 488 str(revision), |
| 489 '--test-machine-name', |
| 490 EscapeBuilderName(builder_name)]) |
| 491 |
483 | 492 |
484 def GetTestStepCmds(): | 493 def GetTestStepCmds(): |
485 return [ | 494 return [ |
486 ('chromedriver', RunChromeDriverTests), | 495 ('chromedriver', RunChromeDriverTests), |
487 ('gpu', RunGPUTests), | 496 ('gpu', RunGPUTests), |
488 ('mojo', RunMojoTests), | 497 ('mojo', RunMojoTests), |
489 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), | 498 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), |
490 ('unit', RunUnitTests), | 499 ('unit', RunUnitTests), |
491 ('ui', RunInstrumentationTests), | 500 ('ui', RunInstrumentationTests), |
492 ('webkit', RunWebkitTests), | 501 ('webkit', RunWebkitTests), |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 670 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
662 if options.coverage_bucket: | 671 if options.coverage_bucket: |
663 setattr(options, 'coverage_dir', | 672 setattr(options, 'coverage_dir', |
664 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 673 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
665 | 674 |
666 MainTestWrapper(options) | 675 MainTestWrapper(options) |
667 | 676 |
668 | 677 |
669 if __name__ == '__main__': | 678 if __name__ == '__main__': |
670 sys.exit(main(sys.argv)) | 679 sys.exit(main(sys.argv)) |
OLD | NEW |