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

Side by Side Diff: gni/isolate.gni

Issue 2033813004: [gn] Add swarming support for all test targets (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@gn32
Patch Set: Fixes 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 | « BUILD.gn ('k') | test/BUILD.gn » ('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 2016 the V8 project authors. All rights reserved. 1 # Copyright 2016 the V8 project 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/sanitizers/sanitizers.gni") 5 import("//build/config/sanitizers/sanitizers.gni")
6 import("v8.gni") 6 import("v8.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Sets the test isolation mode (noop|prepare|check). 9 # Sets the test isolation mode (noop|prepare|check).
10 v8_test_isolation_mode = "noop" 10 v8_test_isolation_mode = "noop"
11 } 11 }
12 12
13 template("v8_isolate_run") { 13 template("v8_isolate_run") {
14 # Remember target name as within the action scope the target name will be 14 # Remember target name as within the action scope the target name will be
15 # different. 15 # different.
16 name = target_name 16 name = target_name
17 if (name != "" && invoker.isolate != "" && invoker.deps != [] && 17 if (name != "" && invoker.isolate != "" && invoker.deps != [] &&
18 v8_test_isolation_mode != "noop") { 18 v8_test_isolation_mode != "noop") {
19 action(name + "_run") { 19 action(name + "_run") {
20 testonly = true
21
20 deps = invoker.deps 22 deps = invoker.deps
21 23
22 script = "tools/isolate_driver.py" 24 script = "//tools/isolate_driver.py"
23 25
24 sources = [ 26 sources = [
25 invoker.isolate, 27 invoker.isolate,
26 ] 28 ]
27 29
28 inputs = [ 30 inputs = [
29 # Files that are known to be involved in this step. 31 # Files that are known to be involved in this step.
30 "tools/swarming_client/isolate.py", 32 "//tools/swarming_client/isolate.py",
31 "tools/swarming_client/run_isolated.py", 33 "//tools/swarming_client/run_isolated.py",
32 ] 34 ]
33 35
34 outputs = [ 36 if (v8_test_isolation_mode == "prepare") {
35 "$root_out_dir/$name.isolated", 37 outputs = [
36 ] 38 "$root_out_dir/$name.isolated.gen.json",
39 ]
40 } else if (v8_test_isolation_mode == "check") {
41 outputs = [
42 "$root_out_dir/$name.isolated",
43 "$root_out_dir/$name.isolated.state",
44 ]
45 }
37 46
38 # Translate gn to gyp variables. 47 # Translate gn to gyp variables.
39 if (is_asan) { 48 if (is_asan) {
40 asan = "1" 49 asan = "1"
41 } else { 50 } else {
42 asan = "0" 51 asan = "0"
43 } 52 }
44 if (is_msan) { 53 if (is_msan) {
45 msan = "1" 54 msan = "1"
46 } else { 55 } else {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 ] 159 ]
151 } else { 160 } else {
152 args += [ 161 args += [
153 "--config-variable", 162 "--config-variable",
154 "msvs_version=0", 163 "msvs_version=0",
155 ] 164 ]
156 } 165 }
157 } 166 }
158 } 167 }
159 } 168 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698