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 data_dir = os.path.join(DIR_BUILD_ROOT, 'content_gpu_data', 'telemetry') | |
456 RunCmd(['content/test/gpu/run_gpu_test', | 455 RunCmd(['content/test/gpu/run_gpu_test', |
457 '--browser=android-content-shell', | 456 'pixel', |
458 '--generated-dir=%s' % os.path.join(data_dir, 'generated'), | 457 '--browser', |
459 '--reference-dir=%s' % os.path.join(data_dir, 'reference'), | 458 'android-content-shell', |
460 '--build-revision=%s' % revision, | 459 '--build-revision', |
461 'pixel']) | 460 str(revision), |
461 '--upload-refimg-to-cloud-storage', | |
462 '--refimg-cloud-storage-bucket', | |
463 'chromium-gpu-archive/reference-images', | |
464 '--os-type', | |
465 'android', | |
466 '--test-machine-name', | |
467 EscapeBuilderName( | |
468 options.build_properties.get('buildername', 'noname'))]) | |
Sami
2014/01/03 13:20:20
Probably not worth going into in this patch, but i
navabi
2014/01/06 21:35:33
agreed.
Ken Russell (switch to Gerrit)
2014/01/07 00:48:28
I suspect that we can assume it, but having a fall
| |
462 | 469 |
463 bb_annotations.PrintNamedStep('webgl_conformance_tests') | 470 bb_annotations.PrintNamedStep('webgl_conformance_tests') |
464 RunCmd(['content/test/gpu/run_gpu_test', | 471 RunCmd(['content/test/gpu/run_gpu_test', |
465 '--browser=android-content-shell', 'webgl_conformance', | 472 '--browser=android-content-shell', 'webgl_conformance', |
466 '--webgl-conformance-version=1.0.1']) | 473 '--webgl-conformance-version=1.0.1']) |
467 | 474 |
468 | 475 |
469 def GetTestStepCmds(): | 476 def GetTestStepCmds(): |
470 return [ | 477 return [ |
471 ('chromedriver', RunChromeDriverTests), | 478 ('chromedriver', RunChromeDriverTests), |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
612 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 619 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
613 if options.coverage_bucket: | 620 if options.coverage_bucket: |
614 setattr(options, 'coverage_dir', | 621 setattr(options, 'coverage_dir', |
615 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 622 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
616 | 623 |
617 MainTestWrapper(options) | 624 MainTestWrapper(options) |
618 | 625 |
619 | 626 |
620 if __name__ == '__main__': | 627 if __name__ == '__main__': |
621 sys.exit(main(sys.argv)) | 628 sys.exit(main(sys.argv)) |
OLD | NEW |