OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 # This library should build cleanly with the extra warnings turned on | 7 # This library should build cleanly with the extra warnings turned on |
8 # for Chromium. | 8 # for Chromium. |
9 'chromium_code': 1, | 9 'chromium_code': 1, |
10 # The relative path of the cacheinvalidation proto files from 'src'. | 10 # The relative path of the cacheinvalidation proto files from 'src'. |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 ], | 139 ], |
140 'dependencies': [ | 140 'dependencies': [ |
141 '../../base/base.gyp:base', | 141 '../../base/base.gyp:base', |
142 '../../base/base.gyp:run_all_unittests', | 142 '../../base/base.gyp:run_all_unittests', |
143 '../../testing/gmock.gyp:gmock', | 143 '../../testing/gmock.gyp:gmock', |
144 '../../testing/gtest.gyp:gtest', | 144 '../../testing/gtest.gyp:gtest', |
145 'cacheinvalidation', | 145 'cacheinvalidation', |
146 'cacheinvalidation_proto_cpp', | 146 'cacheinvalidation_proto_cpp', |
147 ], | 147 ], |
148 }, | 148 }, |
149 { | 149 ], |
150 'target_name': 'cacheinvalidation_unittests_run', | 150 'conditions': [ |
151 'type': 'none', | 151 ['test_isolation_mode != "noop"', { |
152 'dependencies': [ | 152 'targets': [ |
153 'cacheinvalidation_unittests', | |
154 ], | |
155 'includes': [ | |
156 'cacheinvalidation_unittests.isolate', | |
157 ], | |
158 'actions': [ | |
159 { | 153 { |
160 'action_name': 'isolate', | 154 'target_name': 'cacheinvalidation_unittests_run', |
161 'inputs': [ | 155 'type': 'none', |
| 156 'dependencies': [ |
| 157 'cacheinvalidation_unittests', |
| 158 ], |
| 159 'includes': [ |
162 'cacheinvalidation_unittests.isolate', | 160 'cacheinvalidation_unittests.isolate', |
163 '<@(isolate_dependency_tracked)', | |
164 ], | 161 ], |
165 'outputs': [ | 162 'actions': [ |
166 '<(PRODUCT_DIR)/cacheinvalidation_unittests.isolated', | 163 { |
167 ], | 164 'action_name': 'isolate', |
168 'action': [ | 165 'inputs': [ |
169 'python', | 166 'cacheinvalidation_unittests.isolate', |
170 '../../tools/swarm_client/isolate.py', | 167 '<@(isolate_dependency_tracked)', |
171 '<(test_isolation_mode)', | 168 ], |
172 '--outdir', '<(test_isolation_outdir)', | 169 'outputs': [ |
173 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | 170 '<(PRODUCT_DIR)/cacheinvalidation_unittests.isolated', |
174 '--variable', 'OS', '<(OS)', | 171 ], |
175 '--result', '<@(_outputs)', | 172 'action': [ |
176 '--isolate', 'cacheinvalidation_unittests.isolate', | 173 'python', |
| 174 '../../tools/swarm_client/isolate.py', |
| 175 '<(test_isolation_mode)', |
| 176 '--outdir', '<(test_isolation_outdir)', |
| 177 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', |
| 178 '--variable', 'OS', '<(OS)', |
| 179 '--result', '<@(_outputs)', |
| 180 '--isolate', 'cacheinvalidation_unittests.isolate', |
| 181 ], |
| 182 }, |
177 ], | 183 ], |
178 }, | 184 }, |
179 ], | 185 ], |
180 }, | 186 }], |
181 ], | 187 ], |
182 } | 188 } |
OLD | NEW |