Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: build/android/pylib/gtest/dispatch.py

Issue 19040002: [Android] Convert more test targets to use isolate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add maruel/csharp as owners for isolate files Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/browsertests/dispatch.py ('k') | build/android/pylib/gtest/test_package.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 """Dispatches GTests.""" 5 """Dispatches GTests."""
6 6
7 import copy 7 import copy
8 import fnmatch 8 import fnmatch
9 import glob 9 import glob
10 import logging 10 import logging
(...skipping 11 matching lines...) Expand all
22 from pylib.utils import xvfb 22 from pylib.utils import xvfb
23 23
24 import gtest_config 24 import gtest_config
25 import test_runner 25 import test_runner
26 26
27 27
28 # TODO(frankf): Add more test targets here after making sure we don't 28 # TODO(frankf): Add more test targets here after making sure we don't
29 # blow up the dependency size (and the world). 29 # blow up the dependency size (and the world).
30 _ISOLATE_FILE_PATHS = { 30 _ISOLATE_FILE_PATHS = {
31 'base_unittests': 'base/base_unittests.isolate', 31 'base_unittests': 'base/base_unittests.isolate',
32 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate',
33 'cc_perftests': 'cc/cc_perftests.isolate',
34 'components_unittests': 'components/components_unittests.isolate',
35 'content_browsertests': 'content/content_browsertests.isolate',
36 'content_unittests': 'content/content_unittests.isolate',
37 'media_unittests': 'media/media_unittests.isolate',
38 'net_unittests': 'net/net_unittests.isolate',
39 'ui_unittests': 'ui/ui_unittests.isolate',
32 'unit_tests': 'chrome/unit_tests.isolate', 40 'unit_tests': 'chrome/unit_tests.isolate',
33 } 41 }
34 42
35 # Used for filtering large data deps at a finer grain than what's allowed in 43 # Used for filtering large data deps at a finer grain than what's allowed in
36 # isolate files since pushing deps to devices is expensive. 44 # isolate files since pushing deps to devices is expensive.
37 # Wildcards are allowed. 45 # Wildcards are allowed.
38 _DEPS_EXCLUSION_LIST = [ 46 _DEPS_EXCLUSION_LIST = [
39 'chrome/test/data/extensions/api_test', 47 'chrome/test/data/extensions/api_test',
40 'chrome/test/data/extensions/secure_shell', 48 'chrome/test/data/extensions/secure_shell',
41 'chrome/test/data/firefox*', 49 'chrome/test/data/firefox*',
42 'chrome/test/data/gpu', 50 'chrome/test/data/gpu',
43 'chrome/test/data/image_decoding', 51 'chrome/test/data/image_decoding',
44 'chrome/test/data/import', 52 'chrome/test/data/import',
45 'chrome/test/data/page_cycler', 53 'chrome/test/data/page_cycler',
46 'chrome/test/data/perf', 54 'chrome/test/data/perf',
47 'chrome/test/data/pyauto_private', 55 'chrome/test/data/pyauto_private',
48 'chrome/test/data/safari_import', 56 'chrome/test/data/safari_import',
49 'chrome/test/data/scroll', 57 'chrome/test/data/scroll',
50 'chrome/test/data/third_party', 58 'chrome/test/data/third_party',
51 'third_party/hunspell_dictionaries/*.dic', 59 'third_party/hunspell_dictionaries/*.dic',
60 # crbug.com/258690
61 'webkit/data/bmp_decoder',
62 'webkit/data/ico_decoder',
52 ] 63 ]
53 64
54 _ISOLATE_SCRIPT = os.path.join( 65 _ISOLATE_SCRIPT = os.path.join(
55 constants.DIR_SOURCE_ROOT, 'tools', 'swarm_client', 'isolate.py') 66 constants.DIR_SOURCE_ROOT, 'tools', 'swarm_client', 'isolate.py')
56 67
57 68
58 def _GenerateDepsDirUsingIsolate(test_suite, build_type): 69 def _GenerateDepsDirUsingIsolate(test_suite, build_type):
59 """Generate the dependency dir for the test suite using isolate. 70 """Generate the dependency dir for the test suite using isolate.
60 71
61 Args: 72 Args:
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 test_options.test_suite = suite_path 361 test_options.test_suite = suite_path
351 test_results, test_exit_code = _RunATestSuite(test_options, suite_name) 362 test_results, test_exit_code = _RunATestSuite(test_options, suite_name)
352 results.AddTestRunResults(test_results) 363 results.AddTestRunResults(test_results)
353 if test_exit_code and exit_code != constants.ERROR_EXIT_CODE: 364 if test_exit_code and exit_code != constants.ERROR_EXIT_CODE:
354 exit_code = test_exit_code 365 exit_code = test_exit_code
355 366
356 if options.use_xvfb: 367 if options.use_xvfb:
357 framebuffer.Stop() 368 framebuffer.Stop()
358 369
359 return (results, exit_code) 370 return (results, exit_code)
OLDNEW
« no previous file with comments | « build/android/pylib/browsertests/dispatch.py ('k') | build/android/pylib/gtest/test_package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698