OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Generates test runner factory and tests for GTests.""" | 5 """Generates test runner factory and tests for GTests.""" |
6 # pylint: disable=W0212 | 6 # pylint: disable=W0212 |
7 | 7 |
8 import logging | 8 import logging |
9 import os | 9 import os |
10 import sys | 10 import sys |
(...skipping 20 matching lines...) Expand all Loading... |
31 'third_party/WebKit/Source/platform/heap/BlinkHeapUnitTests.isolate', | 31 'third_party/WebKit/Source/platform/heap/BlinkHeapUnitTests.isolate', |
32 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate', | 32 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate', |
33 'cc_perftests': 'cc/cc_perftests.isolate', | 33 'cc_perftests': 'cc/cc_perftests.isolate', |
34 'components_unittests': 'components/components_unittests.isolate', | 34 'components_unittests': 'components/components_unittests.isolate', |
35 'content_browsertests': 'content/content_browsertests.isolate', | 35 'content_browsertests': 'content/content_browsertests.isolate', |
36 'content_unittests': 'content/content_unittests.isolate', | 36 'content_unittests': 'content/content_unittests.isolate', |
37 'media_perftests': 'media/media_perftests.isolate', | 37 'media_perftests': 'media/media_perftests.isolate', |
38 'media_unittests': 'media/media_unittests.isolate', | 38 'media_unittests': 'media/media_unittests.isolate', |
39 'net_unittests': 'net/net_unittests.isolate', | 39 'net_unittests': 'net/net_unittests.isolate', |
40 'sql_unittests': 'sql/sql_unittests.isolate', | 40 'sql_unittests': 'sql/sql_unittests.isolate', |
| 41 'sync_unit_tests': 'sync/sync_unit_tests.isolate', |
41 'ui_base_unittests': 'ui/base/ui_base_tests.isolate', | 42 'ui_base_unittests': 'ui/base/ui_base_tests.isolate', |
42 'unit_tests': 'chrome/unit_tests.isolate', | 43 'unit_tests': 'chrome/unit_tests.isolate', |
43 'webkit_unit_tests': | 44 'webkit_unit_tests': |
44 'third_party/WebKit/Source/web/WebKitUnitTests.isolate', | 45 'third_party/WebKit/Source/web/WebKitUnitTests.isolate', |
45 } | 46 } |
46 | 47 |
47 # Used for filtering large data deps at a finer grain than what's allowed in | 48 # Used for filtering large data deps at a finer grain than what's allowed in |
48 # isolate files since pushing deps to devices is expensive. | 49 # isolate files since pushing deps to devices is expensive. |
49 # Wildcards are allowed. | 50 # Wildcards are allowed. |
50 DEPS_EXCLUSION_LIST = [ | 51 DEPS_EXCLUSION_LIST = [ |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 if test_options.gtest_filter: | 235 if test_options.gtest_filter: |
235 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) | 236 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) |
236 | 237 |
237 # Coalesce unit tests into a single test per device | 238 # Coalesce unit tests into a single test per device |
238 if test_options.suite_name != 'content_browsertests': | 239 if test_options.suite_name != 'content_browsertests': |
239 num_devices = len(devices) | 240 num_devices = len(devices) |
240 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] | 241 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] |
241 tests = [t for t in tests if t] | 242 tests = [t for t in tests if t] |
242 | 243 |
243 return (TestRunnerFactory, tests) | 244 return (TestRunnerFactory, tests) |
OLD | NEW |