OLD | NEW |
1 # Copyright (c) 2014 Google Inc. All Rights Reserved. | 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 | 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1 | 7 'chromium_code': 1 |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'cast_base_unittests', | 11 'target_name': 'cast_base_unittests', |
12 'type': '<(gtest_target_type)', | 12 'type': '<(gtest_target_type)', |
13 'dependencies': [ | 13 'dependencies': [ |
14 'chromecast.gyp:cast_base', | 14 'chromecast.gyp:cast_base', |
15 '../base/base.gyp:run_all_unittests', | 15 '../base/base.gyp:run_all_unittests', |
16 '../testing/gtest.gyp:gtest', | 16 '../testing/gtest.gyp:gtest', |
17 ], | 17 ], |
18 'sources': [ | 18 'sources': [ |
19 'base/error_codes_unittest.cc', | 19 'base/error_codes_unittest.cc', |
20 'base/path_utils_unittest.cc', | 20 'base/path_utils_unittest.cc', |
21 'base/process_utils_unittest.cc', | 21 'base/process_utils_unittest.cc', |
22 'base/serializers_unittest.cc', | 22 'base/serializers_unittest.cc', |
23 ], | 23 ], |
| 24 'conditions': [ |
| 25 ['OS == "android"', { |
| 26 'dependencies': [ |
| 27 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 28 ], |
| 29 }], |
| 30 ], |
24 }, # end of cast_base_unittests | 31 }, # end of cast_base_unittests |
25 { | 32 { |
26 'target_name': 'cast_crash_unittests', | 33 'target_name': 'cast_crash_unittests', |
27 'type': '<(gtest_target_type)', | 34 'type': '<(gtest_target_type)', |
28 'dependencies': [ | 35 'dependencies': [ |
29 'chromecast.gyp:cast_crash', | 36 'chromecast.gyp:cast_crash', |
30 '../base/base.gyp:run_all_unittests', | 37 '../base/base.gyp:run_all_unittests', |
31 '../testing/gmock.gyp:gmock', | 38 '../testing/gmock.gyp:gmock', |
32 '../testing/gtest.gyp:gtest', | 39 '../testing/gtest.gyp:gtest', |
33 ], | 40 ], |
34 'include_dirs': [ | 41 'include_dirs': [ |
35 '../breakpad/src', | 42 '../breakpad/src', |
36 ], | 43 ], |
37 'sources': [ | 44 'sources': [ |
38 'crash/cast_crashdump_uploader_unittest.cc', | 45 'crash/cast_crashdump_uploader_unittest.cc', |
39 'crash/linux/dummy_minidump_generator_unittest.cc', | 46 'crash/linux/dummy_minidump_generator_unittest.cc', |
40 'crash/linux/dump_info_unittest.cc', | 47 'crash/linux/dump_info_unittest.cc', |
41 'crash/linux/synchronized_minidump_manager_unittest.cc', | 48 'crash/linux/synchronized_minidump_manager_unittest.cc', |
42 'crash/linux/minidump_writer_unittest.cc', | 49 'crash/linux/minidump_writer_unittest.cc', |
43 ], | 50 ], |
| 51 'conditions': [ |
| 52 ['OS == "android"', { |
| 53 'dependencies': [ |
| 54 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 55 ], |
| 56 }], |
| 57 ], |
44 }, # end of cast_crash_unittests | 58 }, # end of cast_crash_unittests |
45 { | 59 { |
46 'target_name': 'cast_tests', | 60 'target_name': 'cast_tests', |
47 'type': 'none', | 61 'type': 'none', |
48 'dependencies': [ | 62 'dependencies': [ |
49 'cast_test_generator', | 63 'cast_test_generator', |
50 ], | 64 ], |
51 'conditions': [ | 65 'conditions': [ |
52 ['chromecast_branding=="Chrome"', { | 66 ['chromecast_branding=="Chrome"', { |
53 'dependencies': [ | 67 'dependencies': [ |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 } | 168 } |
155 }], | 169 }], |
156 ['enable_plugins==1', { | 170 ['enable_plugins==1', { |
157 'dependencies': [ | 171 'dependencies': [ |
158 '../ppapi/ppapi_internal.gyp:ppapi_unittests', | 172 '../ppapi/ppapi_internal.gyp:ppapi_unittests', |
159 ], | 173 ], |
160 }], | 174 }], |
161 ], | 175 ], |
162 'includes': ['build/tests/test_list.gypi'], | 176 'includes': ['build/tests/test_list.gypi'], |
163 }, | 177 }, |
164 # Builds all tests and the output lists of build/run targets for those tests
. | |
165 # Note: producing a predetermined list of dependent inputs on which to | |
166 # regenerate this output is difficult with GYP. This file is not | |
167 # guaranteed to be regenerated outside of a clean build. | |
168 { | |
169 'target_name': 'cast_test_lists', | |
170 'type': 'none', | |
171 'dependencies': [ | |
172 'cast_tests', | |
173 ], | |
174 'variables': { | |
175 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_list
s.py', | |
176 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests', | |
177 'test_additional_options': '--ozone-platform=test' | |
178 }, | |
179 'actions': [ | |
180 { | |
181 'action_name': 'generate_combined_test_build_list', | |
182 'message': 'Generating combined test build list', | |
183 'inputs': ['<(test_generator_py)'], | |
184 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'], | |
185 'action': [ | |
186 'python', '<(test_generator_py)', | |
187 '-t', '<(test_inputs_dir)', | |
188 '-o', '<@(_outputs)', | |
189 'pack_build', | |
190 ], | |
191 }, | |
192 { | |
193 'action_name': 'generate_combined_test_run_list', | |
194 'message': 'Generating combined test run list', | |
195 'inputs': ['<(test_generator_py)'], | |
196 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'], | |
197 'action': [ | |
198 'python', '<(test_generator_py)', | |
199 '-t', '<(test_inputs_dir)', | |
200 '-o', '<@(_outputs)', | |
201 '-a', '<(test_additional_options)', | |
202 'pack_run', | |
203 ], | |
204 } | |
205 ], | |
206 }, | |
207 { | 178 { |
208 'target_name': 'cast_metrics_test_support', | 179 'target_name': 'cast_metrics_test_support', |
209 'type': '<(component)', | 180 'type': '<(component)', |
210 'dependencies': [ | 181 'dependencies': [ |
211 'cast_base', | 182 'cast_base', |
212 ], | 183 ], |
213 'sources': [ | 184 'sources': [ |
214 'base/metrics/cast_metrics_test_helper.cc', | 185 'base/metrics/cast_metrics_test_helper.cc', |
215 'base/metrics/cast_metrics_test_helper.h', | 186 'base/metrics/cast_metrics_test_helper.h', |
216 ], | 187 ], |
217 }, # end of target 'cast_metrics_test_support' | 188 }, # end of target 'cast_metrics_test_support' |
218 ], # end of targets | 189 ], # end of targets |
219 'conditions': [ | 190 'conditions': [ |
220 ['OS=="android"', { | 191 ['OS=="android"', { |
221 'targets': [ | 192 'targets': [ |
222 { | 193 { |
| 194 'target_name': 'cast_base_unittests_apk', |
| 195 'type': 'none', |
| 196 'dependencies': [ |
| 197 'cast_base_unittests', |
| 198 ], |
| 199 'variables': { |
| 200 'test_suite_name': 'cast_base_unittests', |
| 201 }, |
| 202 'includes': ['../build/apk_test.gypi'], |
| 203 }, # end of target 'cast_base_unittests_apk' |
| 204 { |
| 205 'target_name': 'cast_crash_unittests_apk', |
| 206 'type': 'none', |
| 207 'dependencies': [ |
| 208 'cast_crash_unittests', |
| 209 ], |
| 210 'variables': { |
| 211 'test_suite_name': 'cast_crash_unittests', |
| 212 }, |
| 213 'includes': ['../build/apk_test.gypi'], |
| 214 }, # end of target 'cast_crash_unittests_apk' |
| 215 { |
223 'target_name': 'cast_android_tests', | 216 'target_name': 'cast_android_tests', |
224 'type': 'none', | 217 'type': 'none', |
| 218 'variables': { |
| 219 'filters': [ |
| 220 # The following tests all crash on fugu. |
| 221 'cc_unittests_apk --gtest_filter=*:-LayerTreeHostTestContinuousDra
wWhenCreatingVisibleTiles.RunMultiThread_DelegatingRenderer_ImplSidePaint', |
| 222 'gfx_unittests_apk --gtest_filter=*:-FontListTest.Fonts_DeriveWith
HeightUpperBound', |
| 223 'media_unittests_apk --gtest_filter=*-AudioInputTest.*:AudioAndroi
dInputTest*', |
| 224 ], |
| 225 }, |
225 'dependencies': [ | 226 'dependencies': [ |
| 227 'cast_base_unittests_apk', |
| 228 'cast_crash_unittests_apk', |
226 '../base/base.gyp:base_unittests_apk', | 229 '../base/base.gyp:base_unittests_apk', |
227 '../cc/cc_tests.gyp:cc_unittests_apk', | 230 '../cc/cc_tests.gyp:cc_unittests_apk', |
228 '../ipc/ipc.gyp:ipc_tests_apk', | 231 '../ipc/ipc.gyp:ipc_tests_apk', |
229 '../media/media.gyp:media_unittests_apk', | 232 '../media/media.gyp:media_unittests_apk', |
230 '../media/midi/midi.gyp:midi_unittests_apk', | 233 '../media/midi/midi.gyp:midi_unittests_apk', |
231 '../net/net.gyp:net_unittests_apk', | 234 '../net/net.gyp:net_unittests_apk', |
232 '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk', | 235 # Note(gunsch): crashes 100% on Fugu. b/22489355 |
| 236 # '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk', |
233 '../sql/sql.gyp:sql_unittests_apk', | 237 '../sql/sql.gyp:sql_unittests_apk', |
234 '../sync/sync.gyp:sync_unit_tests_apk', | 238 '../sync/sync.gyp:sync_unit_tests_apk', |
235 '../ui/events/events.gyp:events_unittests_apk', | 239 '../ui/events/events.gyp:events_unittests_apk', |
236 '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk', | 240 '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk', |
237 ], | 241 ], |
238 'includes': ['build/tests/test_list.gypi'], | 242 'includes': ['build/tests/test_list.gypi'], |
| 243 'conditions': [ |
| 244 ['chromecast_branding=="Chrome"', { |
| 245 'dependencies': [ |
| 246 'internal/chromecast_internal.gyp:cast_android_tests_internal', |
| 247 ], |
| 248 }], |
| 249 ], |
239 }, | 250 }, |
240 { | 251 { |
241 'target_name': 'cast_android_test_lists', | 252 'target_name': 'cast_android_test_lists', |
242 'type': 'none', | 253 'type': 'none', |
243 'dependencies': [ | 254 'dependencies': [ |
244 'cast_android_tests', | 255 'cast_android_tests', |
245 ], | 256 ], |
246 'variables': { | 257 'variables': { |
247 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_
lists.py', | 258 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_
lists.py', |
248 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests', | 259 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests', |
249 }, | 260 }, |
250 'actions': [ | 261 'actions': [ |
251 { | 262 { |
252 'action_name': 'generate_combined_test_build_list', | 263 'action_name': 'generate_combined_test_build_list', |
253 'message': 'Generating combined test build list', | 264 'message': 'Generating combined test build list', |
254 'inputs': ['<(test_generator_py)'], | 265 'inputs': ['<(test_generator_py)'], |
255 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'], | 266 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'], |
256 'action': [ | 267 'action': [ |
257 'python', '<(test_generator_py)', | 268 'python', '<(test_generator_py)', |
258 '-t', '<(test_inputs_dir)', | 269 '-t', '<(test_inputs_dir)', |
259 '-o', '<@(_outputs)', | 270 '-o', '<@(_outputs)', |
260 'pack_build', | 271 'pack_build', |
261 ], | 272 ], |
262 }, | 273 }, |
| 274 { |
| 275 'action_name': 'generate_combined_test_run_list', |
| 276 'message': 'Generating combined test run list', |
| 277 'inputs': ['<(test_generator_py)'], |
| 278 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'], |
| 279 'action': [ |
| 280 'python', '<(test_generator_py)', |
| 281 '-t', '<(test_inputs_dir)', |
| 282 '-o', '<@(_outputs)', |
| 283 'pack_run', |
| 284 ], |
| 285 } |
263 ], | 286 ], |
264 }, | 287 }, |
265 ], # end of targets | 288 ], # end of targets |
266 }, { # OS!="android" | 289 }, { # OS!="android" |
267 'targets': [ | 290 'targets': [ |
268 { | 291 { |
269 'target_name': 'cast_shell_test_support', | 292 'target_name': 'cast_shell_test_support', |
270 'type': '<(component)', | 293 'type': '<(component)', |
271 'defines': [ | 294 'defines': [ |
272 'HAS_OUT_OF_PROC_TEST_RUNNER', | 295 'HAS_OUT_OF_PROC_TEST_RUNNER', |
(...skipping 29 matching lines...) Expand all Loading... |
302 'type': '<(gtest_target_type)', | 325 'type': '<(gtest_target_type)', |
303 'dependencies': [ | 326 'dependencies': [ |
304 'chromecast.gyp:cast_crash_client', | 327 'chromecast.gyp:cast_crash_client', |
305 '../base/base.gyp:run_all_unittests', | 328 '../base/base.gyp:run_all_unittests', |
306 '../testing/gtest.gyp:gtest', | 329 '../testing/gtest.gyp:gtest', |
307 ], | 330 ], |
308 'sources': [ | 331 'sources': [ |
309 'app/linux/cast_crash_reporter_client_unittest.cc', | 332 'app/linux/cast_crash_reporter_client_unittest.cc', |
310 ], | 333 ], |
311 }, # end of cast_shell_unittests | 334 }, # end of cast_shell_unittests |
| 335 # Builds all tests and the output lists of build/run targets for those t
ests. |
| 336 # Note: producing a predetermined list of dependent inputs on which to |
| 337 # regenerate this output is difficult with GYP. This file is not |
| 338 # guaranteed to be regenerated outside of a clean build. |
| 339 { |
| 340 'target_name': 'cast_test_lists', |
| 341 'type': 'none', |
| 342 'dependencies': [ |
| 343 'cast_tests', |
| 344 ], |
| 345 'variables': { |
| 346 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_
lists.py', |
| 347 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests', |
| 348 'test_additional_options': '--ozone-platform=test' |
| 349 }, |
| 350 'actions': [ |
| 351 { |
| 352 'action_name': 'generate_combined_test_build_list', |
| 353 'message': 'Generating combined test build list', |
| 354 'inputs': ['<(test_generator_py)'], |
| 355 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'], |
| 356 'action': [ |
| 357 'python', '<(test_generator_py)', |
| 358 '-t', '<(test_inputs_dir)', |
| 359 '-o', '<@(_outputs)', |
| 360 'pack_build', |
| 361 ], |
| 362 }, |
| 363 { |
| 364 'action_name': 'generate_combined_test_run_list', |
| 365 'message': 'Generating combined test run list', |
| 366 'inputs': ['<(test_generator_py)'], |
| 367 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'], |
| 368 'action': [ |
| 369 'python', '<(test_generator_py)', |
| 370 '-t', '<(test_inputs_dir)', |
| 371 '-o', '<@(_outputs)', |
| 372 '-a', '<(test_additional_options)', |
| 373 'pack_run', |
| 374 ], |
| 375 } |
| 376 ], |
| 377 }, |
312 ], # end of targets | 378 ], # end of targets |
313 }], | 379 }], |
314 ], # end of conditions | 380 ], # end of conditions |
315 } | 381 } |
OLD | NEW |