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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
441 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) | 441 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) |
442 | 442 |
443 | 443 |
444 def RunWebRTCNativeTests(options): | 444 def RunWebRTCNativeTests(options): |
445 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) | 445 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) |
446 | 446 |
447 | 447 |
448 def RunGPUTests(options): | 448 def RunGPUTests(options): |
449 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) | 449 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) |
450 | 450 |
451 bb_annotations.PrintNamedStep('gpu_tests') | |
452 revision = _GetRevision(options) | 451 revision = _GetRevision(options) |
452 builder_name = options.build_properties.get('buildername', 'noname') | |
453 | |
454 bb_annotations.PrintNamedStep('pixel_tests') | |
navabi
2014/05/28 21:54:04
Can we move the PrintNamedStep to the top of this
alokp
2014/05/28 21:58:35
Please review https://codereview.chromium.org/2959
| |
453 RunCmd(['content/test/gpu/run_gpu_test.py', | 455 RunCmd(['content/test/gpu/run_gpu_test.py', |
454 'pixel', | 456 'pixel', |
455 '--browser', | 457 '--browser', |
456 'android-content-shell', | 458 'android-content-shell', |
457 '--build-revision', | 459 '--build-revision', |
458 str(revision), | 460 str(revision), |
459 '--upload-refimg-to-cloud-storage', | 461 '--upload-refimg-to-cloud-storage', |
460 '--refimg-cloud-storage-bucket', | 462 '--refimg-cloud-storage-bucket', |
461 'chromium-gpu-archive/reference-images', | 463 'chromium-gpu-archive/reference-images', |
462 '--os-type', | 464 '--os-type', |
463 'android', | 465 'android', |
464 '--test-machine-name', | 466 '--test-machine-name', |
465 EscapeBuilderName( | 467 EscapeBuilderName(builder_name)]) |
466 options.build_properties.get('buildername', 'noname'))]) | |
467 | 468 |
468 bb_annotations.PrintNamedStep('webgl_conformance_tests') | 469 bb_annotations.PrintNamedStep('webgl_conformance_tests') |
469 RunCmd(['content/test/gpu/run_gpu_test.py', | 470 RunCmd(['content/test/gpu/run_gpu_test.py', |
470 '--browser=android-content-shell', 'webgl_conformance', | 471 '--browser=android-content-shell', 'webgl_conformance', |
471 '--webgl-conformance-version=1.0.1']) | 472 '--webgl-conformance-version=1.0.1']) |
472 | 473 |
474 bb_annotations.PrintNamedStep('gpu_rasterization_tests') | |
475 RunCmd(['content/test/gpu/run_gpu_test.py', | |
476 'gpu_rasterization', | |
477 '--browser', | |
478 'android-content-shell', | |
479 '--build-revision', | |
480 str(revision), | |
481 '--test-machine-name', | |
482 EscapeBuilderName(builder_name)]) | |
483 | |
473 | 484 |
474 def GetTestStepCmds(): | 485 def GetTestStepCmds(): |
475 return [ | 486 return [ |
476 ('chromedriver', RunChromeDriverTests), | 487 ('chromedriver', RunChromeDriverTests), |
477 ('gpu', RunGPUTests), | 488 ('gpu', RunGPUTests), |
478 ('mojo', RunMojoTests), | 489 ('mojo', RunMojoTests), |
479 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), | 490 ('telemetry_perf_unittests', RunTelemetryPerfUnitTests), |
480 ('unit', RunUnitTests), | 491 ('unit', RunUnitTests), |
481 ('ui', RunInstrumentationTests), | 492 ('ui', RunInstrumentationTests), |
482 ('webkit', RunWebkitTests), | 493 ('webkit', RunWebkitTests), |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
651 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 662 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
652 if options.coverage_bucket: | 663 if options.coverage_bucket: |
653 setattr(options, 'coverage_dir', | 664 setattr(options, 'coverage_dir', |
654 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 665 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
655 | 666 |
656 MainTestWrapper(options) | 667 MainTestWrapper(options) |
657 | 668 |
658 | 669 |
659 if __name__ == '__main__': | 670 if __name__ == '__main__': |
660 sys.exit(main(sys.argv)) | 671 sys.exit(main(sys.argv)) |
OLD | NEW |