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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 def RunUnitTests(options): | 428 def RunUnitTests(options): |
429 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) | 429 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) |
430 | 430 |
431 | 431 |
432 def RunInstrumentationTests(options): | 432 def RunInstrumentationTests(options): |
433 for test in INSTRUMENTATION_TESTS.itervalues(): | 433 for test in INSTRUMENTATION_TESTS.itervalues(): |
434 RunInstrumentationSuite(options, test) | 434 RunInstrumentationSuite(options, test) |
435 | 435 |
436 | 436 |
437 def RunWebkitTests(options): | 437 def RunWebkitTests(options): |
438 RunTestSuites(options, ['webkit_unit_tests']) | 438 RunTestSuites(options, ['webkit_unit_tests', 'blink_heap_unittests']) |
439 RunWebkitLint(options.target) | 439 RunWebkitLint(options.target) |
440 | 440 |
441 | 441 |
442 def RunWebRTCChromiumTests(options): | 442 def RunWebRTCChromiumTests(options): |
443 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) | 443 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) |
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 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 620 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
621 if options.coverage_bucket: | 621 if options.coverage_bucket: |
622 setattr(options, 'coverage_dir', | 622 setattr(options, 'coverage_dir', |
623 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 623 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
624 | 624 |
625 MainTestWrapper(options) | 625 MainTestWrapper(options) |
626 | 626 |
627 | 627 |
628 if __name__ == '__main__': | 628 if __name__ == '__main__': |
629 sys.exit(main(sys.argv)) | 629 sys.exit(main(sys.argv)) |
OLD | NEW |