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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 444 |
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) |
| 455 data_dir = os.path.join(DIR_BUILD_ROOT, 'content_gpu_data', 'telemetry') |
454 RunCmd(['content/test/gpu/run_gpu_test', | 456 RunCmd(['content/test/gpu/run_gpu_test', |
455 '--browser=android-content-shell', 'pixel']) | 457 '--browser=android-content-shell', |
| 458 '--generated-dir=%s' % os.path.join(data_dir, 'generated'), |
| 459 '--reference-dir=%s' % os.path.join(data_dir, 'reference'), |
| 460 '--build-revision=%s' % revision, |
| 461 'pixel']) |
456 | 462 |
457 bb_annotations.PrintNamedStep('webgl_conformance_tests') | 463 bb_annotations.PrintNamedStep('webgl_conformance_tests') |
458 RunCmd(['content/test/gpu/run_gpu_test', | 464 RunCmd(['content/test/gpu/run_gpu_test', |
459 '--browser=android-content-shell', 'webgl_conformance', | 465 '--browser=android-content-shell', 'webgl_conformance', |
460 '--webgl-conformance-version=1.0.1']) | 466 '--webgl-conformance-version=1.0.1']) |
461 | 467 |
462 | 468 |
463 def GetTestStepCmds(): | 469 def GetTestStepCmds(): |
464 return [ | 470 return [ |
465 ('chromedriver', RunChromeDriverTests), | 471 ('chromedriver', RunChromeDriverTests), |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 612 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
607 if options.coverage_bucket: | 613 if options.coverage_bucket: |
608 setattr(options, 'coverage_dir', | 614 setattr(options, 'coverage_dir', |
609 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 615 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
610 | 616 |
611 MainTestWrapper(options) | 617 MainTestWrapper(options) |
612 | 618 |
613 | 619 |
614 if __name__ == '__main__': | 620 if __name__ == '__main__': |
615 sys.exit(main(sys.argv)) | 621 sys.exit(main(sys.argv)) |
OLD | NEW |