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

Side by Side Diff: blimp/BUILD.gn

Issue 2028353003: Support for bundling Chromium unittests into a tarball. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor Dockerfile fix. Created 4 years, 6 months 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 | « no previous file | blimp/Dockerfile » ('j') | blimp/Dockerfile » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 # By specifying a dependency (not a data_dependency) on :blimp_tests_group, 132 # By specifying a dependency (not a data_dependency) on :blimp_tests_group,
133 # we can be sure that everything is built before the action is 133 # we can be sure that everything is built before the action is
134 # complete (though not necessarily before we generate the manifest 134 # complete (though not necessarily before we generate the manifest
135 # itself). 135 # itself).
136 deps = [ 136 deps = [
137 ":blimp_engine_env_tests_group", 137 ":blimp_engine_env_tests_group",
138 ] 138 ]
139 } 139 }
140 } 140 }
141
142 # Builds and bundles the tests into a tarball that can be used to build a
143 # Docker image.
144 action("blimp_engine_env_tests_bundle") {
145 testonly = true
146 script = "//blimp/tools/bundle.py"
147
148 # These form the arguments to the script.
149 _rebased_out_dir = rebase_path(root_out_dir)
150 _rebased_dockerfile = rebase_path("//blimp/Dockerfile")
151 _bundle = "$root_out_dir/blimp_engine_env_tests_bundle.tar.gz"
152
153 # Depending on this ensures that both the manifest is generated
154 # and everything in the manifest has been built.
155 deps = [
156 ":generate_blimp_engine_env_tests_manifest",
157 ]
158
159 sources = [
160 _blimp_engine_env_tests_manifest,
Sriram 2016/06/02 19:55:05 Should this be _rebased_blimp_engine_env_tests_man
Jess 2016/06/02 23:02:14 Nope. That will fail to build. The issue is that
161 _rebased_dockerfile,
162 ]
163 outputs = [
164 _bundle,
165 ]
166
167 # Manually specify the actual arguments to the script.
168 args = [
169 "--build-dir",
170 _rebased_out_dir,
171 "--dockerfile",
172 _rebased_dockerfile,
173 "--manifest",
174 _rebased_blimp_engine_env_tests_manifest,
175 "--output",
176 rebase_path(_bundle),
177 ]
178 }
OLDNEW
« no previous file with comments | « no previous file | blimp/Dockerfile » ('j') | blimp/Dockerfile » ('J')

Powered by Google App Engine
This is Rietveld 408576698