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

Side by Side Diff: chromecast/chromecast_tests.gypi

Issue 719353005: Chromecast: test support for builders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
« no previous file with comments | « chromecast/chromecast.gyp ('k') | chromecast/tools/build/generate_test_lists.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2014 Google Inc. All Rights Reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6 'targets': [
7 {
8 'target_name': 'cast_tests',
9 'type': 'none',
10 'dependencies': [
11 'cast_test_generator',
12 ],
13 'conditions': [
14 ['chromecast_branding=="Chrome"', {
15 'dependencies': [
16 '<(cast_internal_gyp):cast_tests_internal',
17 ],
18 }],
19 ],
20 },
21 # This target only depends on targets that generate test binaries.
22 {
23 'target_name': 'cast_test_generator',
24 'type': 'none',
25 'dependencies': [
26 'media/media.gyp:cast_media_unittests',
27 '../base/base.gyp:base_unittests',
28 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n_unittests',
29 '../content/content_shell_and_tests.gyp:content_unittests',
30 '../crypto/crypto.gyp:crypto_unittests',
31 '../ipc/ipc.gyp:ipc_tests',
32 '../jingle/jingle.gyp:jingle_unittests',
33 '../media/media.gyp:media_unittests',
34 '../net/net.gyp:net_unittests',
35 '../sandbox/sandbox.gyp:sandbox_linux_unittests',
36 '../sql/sql.gyp:sql_unittests',
37 '../sync/sync.gyp:sync_unit_tests',
38 '../ui/base/ui_base_tests.gyp:ui_base_unittests',
39 '../url/url.gyp:url_unittests',
40 ],
41 'conditions': [
42 ['OS!="android"', {
43 'dependencies': [
44 'cast_shell_browser_test',
45 'cast_shell_unittests',
46 ],
47 }],
48 ],
49 'includes': ['build/tests/test_list.gypi'],
50 },
51 # Builds all tests and the output lists of build/run targets for those tests .
52 # Note: producing a predetermined list of dependent inputs on which to
53 # regenerate this output is difficult with GYP. This file is not
54 # guaranteed to be regenerated outside of a clean build.
55 {
56 'target_name': 'cast_test_lists',
57 'type': 'none',
58 'dependencies': [
59 'cast_tests',
60 ],
61 'variables': {
62 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_list s.py',
63 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
64 'test_additional_options': '--ozone-platform=test'
65 },
66 'actions': [
67 {
68 'action_name': 'generate_combined_test_build_list',
69 'message': 'Generating combined test build list',
70 'inputs': ['<(test_generator_py)'],
71 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
72 'action': [
73 'python', '<(test_generator_py)',
74 '-t', '<(test_inputs_dir)',
75 '-o', '<@(_outputs)',
76 'pack_build',
77 ],
78 },
79 {
80 'action_name': 'generate_combined_test_run_list',
81 'message': 'Generating combined test run list',
82 'inputs': ['<(test_generator_py)'],
83 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
84 'action': [
85 'python', '<(test_generator_py)',
86 '-t', '<(test_inputs_dir)',
87 '-o', '<@(_outputs)',
88 '-a', '<(test_additional_options)',
89 'pack_run',
90 ],
91 }
92 ],
93 },
94 {
95 'target_name': 'cast_metrics_test_support',
96 'type': '<(component)',
97 'dependencies': [
98 'cast_base',
99 ],
100 'sources': [
101 'base/metrics/cast_metrics_test_helper.cc',
102 'base/metrics/cast_metrics_test_helper.h',
103 ],
104 }, # end of target 'cast_metrics_test_support'
105 ], # end of targets
106 'conditions': [
107 ['OS=="android"', {
108 'targets': [
109 {
110 'target_name': 'cast_android_tests',
111 'type': 'none',
112 'dependencies': [
113 '../base/base.gyp:base_unittests_apk',
114 '../cc/cc_tests.gyp:cc_unittests_apk',
115 '../ipc/ipc.gyp:ipc_tests_apk',
116 '../media/media.gyp:media_unittests_apk',
117 '../net/net.gyp:net_unittests_apk',
118 '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
119 '../sql/sql.gyp:sql_unittests_apk',
120 '../sync/sync.gyp:sync_unit_tests_apk',
121 '../ui/events/events.gyp:events_unittests_apk',
122 '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
123 ],
124 'includes': ['build/tests/test_list.gypi'],
125 },
126 {
127 'target_name': 'cast_android_test_lists',
128 'type': 'none',
129 'dependencies': [
130 'cast_android_tests',
131 ],
132 'variables': {
133 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_ lists.py',
134 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
135 },
136 'actions': [
137 {
138 'action_name': 'generate_combined_test_build_list',
139 'message': 'Generating combined test build list',
140 'inputs': ['<(test_generator_py)'],
141 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
142 'action': [
143 'python', '<(test_generator_py)',
144 '-t', '<(test_inputs_dir)',
145 '-o', '<@(_outputs)',
146 'pack_build',
147 ],
148 },
149 ],
150 },
151 ], # end of targets
152 }, { # OS!="android"
153 'targets': [
154 {
155 'target_name': 'cast_shell_test_support',
156 'type': '<(component)',
157 'defines': [
158 'HAS_OUT_OF_PROC_TEST_RUNNER',
159 ],
160 'dependencies': [
161 'cast_shell_core',
162 '../content/content_shell_and_tests.gyp:content_browser_test_support ',
163 '../testing/gtest.gyp:gtest',
164 ],
165 'sources': [
166 'browser/test/chromecast_browser_test.cc',
167 'browser/test/chromecast_browser_test.h',
168 'browser/test/chromecast_browser_test_runner.cc',
169 ],
170 }, # end of target 'cast_shell_test_support'
171 {
172 'target_name': 'cast_shell_browser_test',
173 'type': '<(gtest_target_type)',
174 'dependencies': [
175 'cast_shell_test_support',
176 '../testing/gtest.gyp:gtest',
177 ],
178 'defines': [
179 'HAS_OUT_OF_PROC_TEST_RUNNER',
180 ],
181 'sources': [
182 'browser/test/chromecast_shell_browser_test.cc',
183 ],
184 },
185 {
186 'target_name': 'cast_shell_unittests',
187 'type': '<(gtest_target_type)',
188 'dependencies': [
189 'cast_shell_core',
190 '../base/base.gyp:base_prefs_test_support',
191 '../base/base.gyp:run_all_unittests',
192 '../base/base.gyp:test_support_base',
193 '../components/components.gyp:component_metrics_proto',
194 '../testing/gtest.gyp:gtest',
195 ],
196 'sources': [
197 'browser/metrics/cast_metrics_service_client_unittest.cc',
198 ],
199 'conditions': [
200 ['use_allocator!="none"', {
201 'dependencies': [
202 '../base/allocator/allocator.gyp:allocator',
203 ],
204 }],
205 ]
206 }, # end of target 'cast_shell_unittests'
207 ], # end of targets
208 }],
209 ], # end of conditions
210 }
OLDNEW
« no previous file with comments | « chromecast/chromecast.gyp ('k') | chromecast/tools/build/generate_test_lists.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698