diff options
author | slan <slan@chromium.org> | 2016-03-08 13:58:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-08 22:00:37 +0000 |
commit | 9ee70e87532bab8ec57ef1a2e45bef27f7895b1f (patch) | |
tree | 6d70bb16c961005799198a466bc028fa5d126f94 /chromecast | |
parent | 4e0e6528676be9ee35c31286c19f7bb9d4c7e957 (diff) | |
download | chromium_src-9ee70e87532bab8ec57ef1a2e45bef27f7895b1f.zip chromium_src-9ee70e87532bab8ec57ef1a2e45bef27f7895b1f.tar.gz chromium_src-9ee70e87532bab8ec57ef1a2e45bef27f7895b1f.tar.bz2 |
[Chromecast] Allow recursive dependencies for cast_test_groups.
Forward invoker dependencies such that a cast_test_group can depend on
another cast_test_group. Enforce these dependencies for the build steps
as well as the filter generation.
Bug: b/27303049
Test: Filters file is correct.
BUG=
Review URL: https://codereview.chromium.org/1776103003
Cr-Commit-Position: refs/heads/master@{#379923}
Diffstat (limited to 'chromecast')
-rw-r--r-- | chromecast/build/tests/cast_test.gni | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chromecast/build/tests/cast_test.gni b/chromecast/build/tests/cast_test.gni index ee79bd0..1c56095 100644 --- a/chromecast/build/tests/cast_test.gni +++ b/chromecast/build/tests/cast_test.gni @@ -139,6 +139,13 @@ template("cast_test_group") { ] args += _test_names + + deps = [] + if (defined(invoker.deps)) { + foreach(_dep, invoker.deps) { + deps += [ _dep + "_create_list" ] + } + } } # This action generates a list of test filters, which will have a priority @@ -158,6 +165,13 @@ template("cast_test_group") { ] args += _filters + + deps = [] + if (defined(invoker.deps)) { + foreach(_dep, invoker.deps) { + deps += [ _dep + "_filters" ] + } + } } # This target allows us to reference each test as a fully-qualified GN path, @@ -167,6 +181,11 @@ template("cast_test_group") { group(target_name + "_build_tests") { testonly = true deps = invoker.tests + if (defined(invoker.deps)) { + foreach(_dep, invoker.deps) { + deps += [ _dep + "_build_tests" ] + } + } } } |