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

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: Updates based on review feedback. 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') | no next file with comments »
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ] 130 ]
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
141 # Builds and bundles the tests into a tarball that can be used to build a
142 # Docker image.
143 action("blimp_engine_env_tests_bundle") {
144 testonly = true
145 script = "//blimp/tools/create-bundle.py"
146
147 # These form the arguments to the script.
148 _rebased_out_dir = rebase_path(root_out_dir)
149 _rebased_dockerfile = rebase_path("//blimp/Dockerfile")
150 _bundle = "$root_out_dir/blimp_engine_env_tests_bundle.tar.gz"
151
152 # Depending on this ensures that both the manifest is generated
153 # and everything listed in the manifest has been built.
154 deps = [
155 ":generate_blimp_engine_env_tests_manifest",
156 ]
157
158 sources = [
159 _blimp_engine_env_tests_manifest,
160 _rebased_dockerfile,
161 ]
162 outputs = [
163 _bundle,
164 ]
165 args = [
166 "--build-dir",
167 _rebased_out_dir,
168 "--dockerfile",
169 _rebased_dockerfile,
170 "--manifest",
171 _rebased_blimp_engine_env_tests_manifest,
172 "--output",
173 rebase_path(_bundle),
174 ]
175 }
140 } 176 }
OLDNEW
« no previous file with comments | « no previous file | blimp/Dockerfile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698