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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 RunTestSuites(options, ['webkit_unit_tests', 'blink_heap_unittests']) | 528 RunTestSuites(options, ['webkit_unit_tests', 'blink_heap_unittests']) |
529 RunWebkitLint() | 529 RunWebkitLint() |
530 | 530 |
531 | 531 |
532 def RunGPUTests(options): | 532 def RunGPUTests(options): |
533 revision = _GetRevision(options) | 533 revision = _GetRevision(options) |
534 builder_name = options.build_properties.get('buildername', 'noname') | 534 builder_name = options.build_properties.get('buildername', 'noname') |
535 | 535 |
536 bb_annotations.PrintNamedStep('pixel_tests') | 536 bb_annotations.PrintNamedStep('pixel_tests') |
537 RunCmd(['content/test/gpu/run_gpu_test.py', | 537 RunCmd(['content/test/gpu/run_gpu_test.py', |
538 'pixel', | 538 'pixel', '-v', |
539 '--browser', | 539 '--browser', |
540 'android-content-shell', | 540 'android-content-shell', |
541 '--build-revision', | 541 '--build-revision', |
542 str(revision), | 542 str(revision), |
543 '--upload-refimg-to-cloud-storage', | 543 '--upload-refimg-to-cloud-storage', |
544 '--refimg-cloud-storage-bucket', | 544 '--refimg-cloud-storage-bucket', |
545 'chromium-gpu-archive/reference-images', | 545 'chromium-gpu-archive/reference-images', |
546 '--os-type', | 546 '--os-type', |
547 'android', | 547 'android', |
548 '--test-machine-name', | 548 '--test-machine-name', |
549 EscapeBuilderName(builder_name)]) | 549 EscapeBuilderName(builder_name)]) |
550 | 550 |
551 bb_annotations.PrintNamedStep('webgl_conformance_tests') | 551 bb_annotations.PrintNamedStep('webgl_conformance_tests') |
552 RunCmd(['content/test/gpu/run_gpu_test.py', | 552 RunCmd(['content/test/gpu/run_gpu_test.py', '-v', |
553 '--browser=android-content-shell', 'webgl_conformance', | 553 '--browser=android-content-shell', 'webgl_conformance', |
554 '--webgl-conformance-version=1.0.1']) | 554 '--webgl-conformance-version=1.0.1']) |
555 | 555 |
556 bb_annotations.PrintNamedStep('android_webview_webgl_conformance_tests') | 556 bb_annotations.PrintNamedStep('android_webview_webgl_conformance_tests') |
557 RunCmd(['content/test/gpu/run_gpu_test.py', | 557 RunCmd(['content/test/gpu/run_gpu_test.py', '-v', |
558 '--browser=android-webview-shell', 'webgl_conformance', | 558 '--browser=android-webview-shell', 'webgl_conformance', |
559 '--webgl-conformance-version=1.0.1']) | 559 '--webgl-conformance-version=1.0.1']) |
560 | 560 |
561 bb_annotations.PrintNamedStep('gpu_rasterization_tests') | 561 bb_annotations.PrintNamedStep('gpu_rasterization_tests') |
562 RunCmd(['content/test/gpu/run_gpu_test.py', | 562 RunCmd(['content/test/gpu/run_gpu_test.py', |
563 'gpu_rasterization', | 563 'gpu_rasterization', '-v', |
564 '--browser', | 564 '--browser', |
565 'android-content-shell', | 565 'android-content-shell', |
566 '--build-revision', | 566 '--build-revision', |
567 str(revision), | 567 str(revision), |
568 '--test-machine-name', | 568 '--test-machine-name', |
569 EscapeBuilderName(builder_name)]) | 569 EscapeBuilderName(builder_name)]) |
570 | 570 |
571 | 571 |
572 def RunPythonUnitTests(_options): | 572 def RunPythonUnitTests(_options): |
573 for suite in constants.PYTHON_UNIT_TEST_SUITES: | 573 for suite in constants.PYTHON_UNIT_TEST_SUITES: |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 | 787 |
788 if options.coverage_bucket: | 788 if options.coverage_bucket: |
789 setattr(options, 'coverage_dir', | 789 setattr(options, 'coverage_dir', |
790 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 790 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
791 | 791 |
792 MainTestWrapper(options) | 792 MainTestWrapper(options) |
793 | 793 |
794 | 794 |
795 if __name__ == '__main__': | 795 if __name__ == '__main__': |
796 sys.exit(main(sys.argv)) | 796 sys.exit(main(sys.argv)) |
OLD | NEW |