Chromium Code Reviews| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 465 | 465 |
| 466 | 466 |
| 467 def RunUnitTests(options): | 467 def RunUnitTests(options): |
| 468 suites = gtest_config.STABLE_TEST_SUITES | 468 suites = gtest_config.STABLE_TEST_SUITES |
| 469 if options.asan: | 469 if options.asan: |
| 470 suites = [s for s in suites | 470 suites = [s for s in suites |
| 471 if s not in gtest_config.ASAN_EXCLUDED_TEST_SUITES] | 471 if s not in gtest_config.ASAN_EXCLUDED_TEST_SUITES] |
| 472 RunTestSuites(options, suites) | 472 RunTestSuites(options, suites) |
| 473 | 473 |
| 474 | 474 |
| 475 def RunTelemetryUnitTests(options): | 475 def RunTelemetryUnitTests(options): |
|
tonyg
2014/11/20 00:40:05
This is a copy/paste from RunTelemetryPerfUnitTest
| |
| 476 suites = gtest_config.TELEMETRY_EXPERIMENTAL_TEST_SUITES | 476 """Runs the telemetry unit tests. |
| 477 RunTestSuites(options, suites) | 477 |
| 478 Args: | |
| 479 options: options object. | |
| 480 """ | |
| 481 InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False) | |
| 482 args = ['--browser', 'android-chrome-shell'] | |
| 483 devices = android_commands.GetAttachedDevices() | |
| 484 if devices: | |
| 485 args = args + ['--device', devices[0]] | |
| 486 bb_annotations.PrintNamedStep('telemetry_unittests') | |
| 487 RunCmd(['tools/telemetry/run_tests'] + args) | |
| 478 | 488 |
| 479 | 489 |
| 480 def RunInstrumentationTests(options): | 490 def RunInstrumentationTests(options): |
| 481 for test in INSTRUMENTATION_TESTS.itervalues(): | 491 for test in INSTRUMENTATION_TESTS.itervalues(): |
| 482 RunInstrumentationSuite(options, test) | 492 RunInstrumentationSuite(options, test) |
| 483 | 493 |
| 484 | 494 |
| 485 def RunWebkitTests(options): | 495 def RunWebkitTests(options): |
| 486 RunTestSuites(options, ['webkit_unit_tests', 'blink_heap_unittests']) | 496 RunTestSuites(options, ['webkit_unit_tests', 'blink_heap_unittests']) |
| 487 RunWebkitLint() | 497 RunWebkitLint() |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 729 | 739 |
| 730 if options.coverage_bucket: | 740 if options.coverage_bucket: |
| 731 setattr(options, 'coverage_dir', | 741 setattr(options, 'coverage_dir', |
| 732 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 742 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
| 733 | 743 |
| 734 MainTestWrapper(options) | 744 MainTestWrapper(options) |
| 735 | 745 |
| 736 | 746 |
| 737 if __name__ == '__main__': | 747 if __name__ == '__main__': |
| 738 sys.exit(main(sys.argv)) | 748 sys.exit(main(sys.argv)) |
| OLD | NEW |