OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # This file contains templates which are meant to simplify building and | 5 # This file contains templates which are meant to simplify building and |
6 # running test binaries with the Chromecast build infrastructure. See | 6 # running test binaries with the Chromecast build infrastructure. See |
7 # documentation above each template for specific use. | 7 # documentation above each template for specific use. |
8 # | 8 # |
9 # Example Usage | 9 # Example Usage |
10 # | 10 # |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 assert(invoker.test_type == "gtest" || invoker.test_type == "junit") | 247 assert(invoker.test_type == "gtest" || invoker.test_type == "junit") |
248 _test_type = invoker.test_type | 248 _test_type = invoker.test_type |
249 } | 249 } |
250 | 250 |
251 if (_test_type == "gtest") { | 251 if (_test_type == "gtest") { |
252 _shared_dir = _gtest_gen_dir | 252 _shared_dir = _gtest_gen_dir |
253 } else if (_test_type == "junit") { | 253 } else if (_test_type == "junit") { |
254 _shared_dir = _junit_gen_dir | 254 _shared_dir = _junit_gen_dir |
255 } | 255 } |
256 | 256 |
| 257 # Add the run list to runtime data dependencies |
| 258 data = [ |
| 259 invoker.run_list_path, |
| 260 ] |
| 261 |
257 # Generate a list of the "create_list" actions for each group. These will be | 262 # Generate a list of the "create_list" actions for each group. These will be |
258 # depended upon to ensure they're run before the "pack_build" step. | 263 # depended upon to ensure they're run before the "pack_build" step. |
259 _build_actions = [] | 264 _build_actions = [] |
260 foreach(_test_group, invoker.test_groups) { | 265 foreach(_test_group, invoker.test_groups) { |
261 _build_actions += [ _test_group + "_create_list" ] | 266 _build_actions += [ _test_group + "_create_list" ] |
262 } | 267 } |
263 | 268 |
264 # Generate a list of the "filter" actions for each group. These will be | 269 # Generate a list of the "filter" actions for each group. These will be |
265 # depended upon to ensure they're run before the "pack_run" step. | 270 # depended upon to ensure they're run before the "pack_run" step. |
266 _filter_actions = [] | 271 _filter_actions = [] |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 # script executes. | 342 # script executes. |
338 deps += _filter_actions | 343 deps += _filter_actions |
339 | 344 |
340 # If |build_tests| has been set to true, depend on the testing targets so | 345 # If |build_tests| has been set to true, depend on the testing targets so |
341 # that the tests are built. | 346 # that the tests are built. |
342 if (defined(_build_tests)) { | 347 if (defined(_build_tests)) { |
343 deps += _build_tests | 348 deps += _build_tests |
344 } | 349 } |
345 } | 350 } |
346 } | 351 } |
OLD | NEW |