Chromium Code Reviews| 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 | 6 |
| 7 import fnmatch | 7 import fnmatch |
| 8 import glob | 8 import glob |
| 9 import logging | 9 import logging |
| 10 import os | 10 import os |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 import test_runner | 21 import test_runner |
| 22 | 22 |
| 23 sys.path.insert(0, | 23 sys.path.insert(0, |
| 24 os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'util', 'lib', | 24 os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'util', 'lib', |
| 25 'common')) | 25 'common')) |
| 26 import unittest_util | 26 import unittest_util |
| 27 | 27 |
| 28 | 28 |
| 29 _ISOLATE_FILE_PATHS = { | 29 _ISOLATE_FILE_PATHS = { |
| 30 'base_unittests': 'base/base_unittests.isolate', | 30 'base_unittests': 'base/base_unittests.isolate', |
| 31 'blink_heap_unittests': | |
| 32 'third_party/WebKit/Source/heap/blink_heap_unittests.isolate', | |
|
Dirk Pranke
2014/01/14 22:02:50
Is this really necessary / used ? Why do we need i
Yaron
2014/01/14 23:40:36
I haven't been keeping super up to date on this bu
navabi1
2014/02/03 17:21:41
The isolate filename here is wrong. It is "BlinkHe
| |
| 31 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate', | 33 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate', |
| 32 'cc_perftests': 'cc/cc_perftests.isolate', | 34 'cc_perftests': 'cc/cc_perftests.isolate', |
| 33 'components_unittests': 'components/components_unittests.isolate', | 35 'components_unittests': 'components/components_unittests.isolate', |
| 34 'content_browsertests': 'content/content_browsertests.isolate', | 36 'content_browsertests': 'content/content_browsertests.isolate', |
| 35 'content_unittests': 'content/content_unittests.isolate', | 37 'content_unittests': 'content/content_unittests.isolate', |
| 36 'media_perftests': 'media/media_perftests.isolate', | 38 'media_perftests': 'media/media_perftests.isolate', |
| 37 'media_unittests': 'media/media_unittests.isolate', | 39 'media_unittests': 'media/media_unittests.isolate', |
| 38 'net_unittests': 'net/net_unittests.isolate', | 40 'net_unittests': 'net/net_unittests.isolate', |
| 39 'ui_unittests': 'ui/ui_unittests.isolate', | 41 'ui_unittests': 'ui/ui_unittests.isolate', |
| 40 'unit_tests': 'chrome/unit_tests.isolate', | 42 'unit_tests': 'chrome/unit_tests.isolate', |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 307 if test_options.gtest_filter: | 309 if test_options.gtest_filter: |
| 308 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) | 310 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) |
| 309 | 311 |
| 310 # Coalesce unit tests into a single test per device | 312 # Coalesce unit tests into a single test per device |
| 311 if test_options.suite_name != 'content_browsertests': | 313 if test_options.suite_name != 'content_browsertests': |
| 312 num_devices = len(devices) | 314 num_devices = len(devices) |
| 313 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] | 315 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] |
| 314 tests = [t for t in tests if t] | 316 tests = [t for t in tests if t] |
| 315 | 317 |
| 316 return (TestRunnerFactory, tests) | 318 return (TestRunnerFactory, tests) |
| OLD | NEW |