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