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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 RunTestSuites(options, ['webkit_unit_tests']) | 418 RunTestSuites(options, ['webkit_unit_tests']) |
419 RunWebkitLint(options.target) | 419 RunWebkitLint(options.target) |
420 | 420 |
421 | 421 |
422 def RunWebRTCTests(options): | 422 def RunWebRTCTests(options): |
423 RunTestSuites(options, gtest_config.WEBRTC_TEST_SUITES) | 423 RunTestSuites(options, gtest_config.WEBRTC_TEST_SUITES) |
424 | 424 |
425 | 425 |
426 def RunGPUTests(options): | 426 def RunGPUTests(options): |
427 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) | 427 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) |
428 bb_annotations.PrintNamedStep('gpu_tests') | 428 |
429 RunCmd(['content/test/gpu/run_gpu_test', | 429 # Pixel tests require that the browser implements GrabWindowSnapshot and |
430 '--browser=android-content-shell', 'pixel']) | 430 # GrabViewSnapshot, which android-content-shell currently does not. |
| 431 # (crbug.com/285932) |
| 432 |
| 433 # bb_annotations.PrintNamedStep('gpu_tests') |
| 434 # RunCmd(['content/test/gpu/run_gpu_test', |
| 435 # '--browser=android-content-shell', 'pixel']) |
| 436 |
431 bb_annotations.PrintNamedStep('webgl_conformance_tests') | 437 bb_annotations.PrintNamedStep('webgl_conformance_tests') |
432 RunCmd(['content/test/gpu/run_gpu_test', | 438 RunCmd(['content/test/gpu/run_gpu_test', |
433 '--browser=android-content-shell', 'webgl_conformance', | 439 '--browser=android-content-shell', 'webgl_conformance', |
434 '--webgl-conformance-version=1.0.1']) | 440 '--webgl-conformance-version=1.0.1']) |
435 | 441 |
436 | 442 |
437 def GetTestStepCmds(): | 443 def GetTestStepCmds(): |
438 return [ | 444 return [ |
439 ('chromedriver', RunChromeDriverTests), | 445 ('chromedriver', RunChromeDriverTests), |
440 ('gpu', RunGPUTests), | 446 ('gpu', RunGPUTests), |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 584 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
579 if options.coverage_bucket: | 585 if options.coverage_bucket: |
580 setattr(options, 'coverage_dir', | 586 setattr(options, 'coverage_dir', |
581 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 587 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
582 | 588 |
583 MainTestWrapper(options) | 589 MainTestWrapper(options) |
584 | 590 |
585 | 591 |
586 if __name__ == '__main__': | 592 if __name__ == '__main__': |
587 sys.exit(main(sys.argv)) | 593 sys.exit(main(sys.argv)) |
OLD | NEW |