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 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 # Convenience meta-target for all of Blimp's production & test code. | 9 # Convenience meta-target for all of Blimp's production & test code. |
10 group("blimp") { | 10 group("blimp") { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 deps += [ "//blimp/engine:unit_tests" ] | 72 deps += [ "//blimp/engine:unit_tests" ] |
73 } | 73 } |
74 } | 74 } |
75 | 75 |
76 if (is_linux) { | 76 if (is_linux) { |
77 test("blimp_browsertests") { | 77 test("blimp_browsertests") { |
78 deps = [ | 78 deps = [ |
79 "//blimp/test:engine_browsertests", | 79 "//blimp/test:engine_browsertests", |
80 ] | 80 ] |
81 } | 81 } |
82 | |
83 _blimp_engine_env_tests_runtime_deps = | |
84 "$root_gen_dir/blimp-tests.runtime_deps" | |
85 _rebased_blimp_engine_env_tests_runtime_deps = | |
86 rebase_path(_blimp_engine_env_tests_runtime_deps, root_out_dir) | |
87 | |
88 # This group contains Blimp Engine tests and tests of the various components | |
89 # the Blimp Engine depends on. The idea is that if this group of tests pass | |
90 # on a given system there is a high probability the Engine will also work on | |
91 # that platform. | |
92 group("blimp_engine_env_tests_group") { | |
93 testonly = true | |
94 | |
95 # Additional environment test targets should be added here. | |
96 # Executable targets and those executable targets' transitive | |
97 # dependencies are not considered unless that executable is listed in | |
98 # "data_deps". Otherwise, GN assumes that the executable (and | |
99 # everything it requires) is a build-time dependency only. | |
Wez
2016/06/02 00:07:20
IIUC you're saying that write_runtime_deps will on
Jess
2016/06/02 00:24:28
Yes.
| |
100 data_deps = [ | |
101 ":blimp_unittests", | |
102 "//base:base_unittests", | |
103 ] | |
104 | |
105 write_runtime_deps = _blimp_engine_env_tests_runtime_deps | |
106 } | |
107 | |
108 _blimp_engine_env_tests_manifest = "$root_gen_dir/blimp-tests-manifest.txt" | |
109 _rebased_blimp_engine_env_tests_manifest = | |
110 rebase_path(_blimp_engine_env_tests_manifest, root_out_dir) | |
111 _rebased_blimp_engine_env_tests_blacklist = | |
112 rebase_path("//blimp/tools/tests-manifest-blacklist.txt") | |
113 | |
114 action("generate_blimp_engine_env_tests_manifest") { | |
Wez
2016/06/02 00:07:20
Is there something elsewhere that will depend on t
Jess
2016/06/02 00:24:28
The action that creates the tarball will depend on
| |
115 testonly = true | |
116 script = "//blimp/tools/generate-target-manifest.py" | |
117 args = [ | |
118 "--blacklist", | |
119 _rebased_blimp_engine_env_tests_blacklist, | |
120 "--runtime-deps-file", | |
121 _rebased_blimp_engine_env_tests_runtime_deps, | |
122 "--output", | |
123 _rebased_blimp_engine_env_tests_manifest, | |
124 ] | |
125 inputs = [ | |
126 _blimp_engine_env_tests_runtime_deps, | |
127 ] | |
128 outputs = [ | |
129 _blimp_engine_env_tests_manifest, | |
130 ] | |
131 | |
132 # By specifying a dependency (not a data_dependency) on :blimp_tests_group, | |
Wez
2016/06/02 00:07:20
nit: Why does it need to be a public_dep?
Jess
2016/06/02 00:24:28
It doesn't. Fixed.
| |
133 # we can be sure that everything is built before the action is | |
134 # complete (though not necessarily before we generate the manifest | |
135 # itself). | |
136 public_deps = [ | |
137 ":blimp_engine_env_tests_group", | |
138 ] | |
139 } | |
82 } | 140 } |
OLD | NEW |