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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 | 445 |
446 def RunWebRTCNativeTests(options): | 446 def RunWebRTCNativeTests(options): |
447 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) | 447 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) |
448 | 448 |
449 | 449 |
450 def RunGPUTests(options): | 450 def RunGPUTests(options): |
451 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) | 451 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) |
452 | 452 |
453 bb_annotations.PrintNamedStep('gpu_tests') | 453 bb_annotations.PrintNamedStep('gpu_tests') |
454 revision = _GetRevision(options) | 454 revision = _GetRevision(options) |
455 RunCmd(['content/test/gpu/run_gpu_test', | 455 RunCmd(['content/test/gpu/run_gpu_test.py', |
456 'pixel', | 456 'pixel', |
457 '--browser', | 457 '--browser', |
458 'android-content-shell', | 458 'android-content-shell', |
459 '--build-revision', | 459 '--build-revision', |
460 str(revision), | 460 str(revision), |
461 '--upload-refimg-to-cloud-storage', | 461 '--upload-refimg-to-cloud-storage', |
462 '--refimg-cloud-storage-bucket', | 462 '--refimg-cloud-storage-bucket', |
463 'chromium-gpu-archive/reference-images', | 463 'chromium-gpu-archive/reference-images', |
464 '--os-type', | 464 '--os-type', |
465 'android', | 465 'android', |
466 '--test-machine-name', | 466 '--test-machine-name', |
467 EscapeBuilderName( | 467 EscapeBuilderName( |
468 options.build_properties.get('buildername', 'noname'))]) | 468 options.build_properties.get('buildername', 'noname'))]) |
469 | 469 |
470 bb_annotations.PrintNamedStep('webgl_conformance_tests') | 470 bb_annotations.PrintNamedStep('webgl_conformance_tests') |
471 RunCmd(['content/test/gpu/run_gpu_test', | 471 RunCmd(['content/test/gpu/run_gpu_test.py', |
472 '--browser=android-content-shell', 'webgl_conformance', | 472 '--browser=android-content-shell', 'webgl_conformance', |
473 '--webgl-conformance-version=1.0.1']) | 473 '--webgl-conformance-version=1.0.1']) |
474 | 474 |
475 | 475 |
476 def GetTestStepCmds(): | 476 def GetTestStepCmds(): |
477 return [ | 477 return [ |
478 ('chromedriver', RunChromeDriverTests), | 478 ('chromedriver', RunChromeDriverTests), |
479 ('gpu', RunGPUTests), | 479 ('gpu', RunGPUTests), |
480 ('unit', RunUnitTests), | 480 ('unit', RunUnitTests), |
481 ('ui', RunInstrumentationTests), | 481 ('ui', RunInstrumentationTests), |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 642 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
643 if options.coverage_bucket: | 643 if options.coverage_bucket: |
644 setattr(options, 'coverage_dir', | 644 setattr(options, 'coverage_dir', |
645 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 645 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
646 | 646 |
647 MainTestWrapper(options) | 647 MainTestWrapper(options) |
648 | 648 |
649 | 649 |
650 if __name__ == '__main__': | 650 if __name__ == '__main__': |
651 sys.exit(main(sys.argv)) | 651 sys.exit(main(sys.argv)) |
OLD | NEW |