Chromium Code Reviews| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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/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 in the manifest has been built. | |
|
Wez
2016/06/06 23:52:15
nit: ... everything listed in the ...
Jess
2016/06/07 00:28:37
Done.
| |
| 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 | |
| 166 # Manually specify the actual arguments to the script. | |
|
Wez
2016/06/06 23:52:15
nit: This comment seems superfluous - isn't this h
Jess
2016/06/07 00:28:37
Removed.
| |
| 167 args = [ | |
| 168 "--build-dir", | |
| 169 _rebased_out_dir, | |
| 170 "--dockerfile", | |
| 171 _rebased_dockerfile, | |
| 172 "--manifest", | |
| 173 _rebased_blimp_engine_env_tests_manifest, | |
| 174 "--output", | |
| 175 rebase_path(_bundle), | |
| 176 ] | |
| 177 } | |
| 140 } | 178 } |
| OLD | NEW |