blob: 271df0d6efd85405433fe6ad44b20451bdbca035 [file] [log] [blame]
Ben Murdoch61f157c2016-09-16 13:49:30 +01001# 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
3# found in the LICENSE file.
4
5import("../gni/isolate.gni")
6
7group("gn_all") {
8 testonly = true
9
10 deps = [
11 ":default_tests",
12 ]
13
14 if (host_os != "mac" || !is_android) {
15 # These items don't compile for Android on Mac.
16 deps += [
17 "cctest:cctest",
18 "cctest:generate-bytecode-expectations",
19 "unittests:unittests",
20 ]
21 }
22
23 if (v8_test_isolation_mode != "noop") {
24 deps += [
25 ":bot_default_run",
26 ":benchmarks_run",
27 ":default_run",
28 ":mozilla_run",
29 ":simdjs_run",
30 "test262:test262_run",
31 ]
32 }
33}
34
35###############################################################################
36# Test groups
37#
38
39group("default_tests") {
40 testonly = true
41
42 if (v8_test_isolation_mode != "noop") {
43 deps = [
44 ":cctest_run",
45 ":fuzzer_run",
46 ":intl_run",
47 ":message_run",
48 ":mjsunit_run",
49 ":preparser_run",
50 ":unittests_run",
51 ]
52 }
53}
54
55v8_isolate_run("bot_default") {
56 deps = [
57 ":default_tests",
58 ":webkit_run",
59 ]
60
61 isolate = "bot_default.isolate"
62}
63
64v8_isolate_run("default") {
65 deps = [
66 ":default_tests",
67 ]
68
69 isolate = "default.isolate"
70}
71
72v8_isolate_run("ignition") {
73 deps = [
74 ":cctest_run",
75 ":mjsunit_run",
76 ]
77
78 isolate = "ignition.isolate"
79}
80
81v8_isolate_run("optimize_for_size") {
82 deps = [
83 ":cctest_run",
84 ":intl_run",
85 ":mjsunit_run",
86 ":webkit_run",
87 ]
88
89 isolate = "optimize_for_size.isolate"
90}
91
92v8_isolate_run("perf") {
93 deps = [
94 ":cctest_exe_run",
95 "..:d8_run",
96 ]
97
98 isolate = "perf.isolate"
99}
100
101###############################################################################
102# Subtests
103#
104
105v8_isolate_run("benchmarks") {
106 deps = [
107 "..:d8_run",
108 ]
109
110 isolate = "benchmarks/benchmarks.isolate"
111}
112
113v8_isolate_run("cctest") {
114 deps = [
115 ":cctest_exe_run",
116 ]
117
118 isolate = "cctest/cctest.isolate"
119}
120
121v8_isolate_run("cctest_exe") {
122 deps = [
123 "cctest:cctest",
124 ]
125
126 isolate = "cctest/cctest_exe.isolate"
127}
128
129v8_isolate_run("fuzzer") {
130 deps = [
131 "..:v8_simple_json_fuzzer",
132 "..:v8_simple_parser_fuzzer",
133 "..:v8_simple_regexp_fuzzer",
134 "..:v8_simple_wasm_fuzzer",
135 "..:v8_simple_wasm_asmjs_fuzzer",
136 ]
137
138 isolate = "fuzzer/fuzzer.isolate"
139}
140
141v8_isolate_run("intl") {
142 deps = [
143 "..:d8_run",
144 ]
145
146 isolate = "intl/intl.isolate"
147}
148
149v8_isolate_run("message") {
150 deps = [
151 "..:d8_run",
152 ]
153
154 isolate = "message/message.isolate"
155}
156
157v8_isolate_run("mjsunit") {
158 deps = [
159 "..:d8_run",
160 ]
161
162 isolate = "mjsunit/mjsunit.isolate"
163}
164
165v8_isolate_run("mozilla") {
166 deps = [
167 "..:d8_run",
168 ]
169
170 isolate = "mozilla/mozilla.isolate"
171}
172
173v8_isolate_run("preparser") {
174 deps = [
175 "..:d8_run",
176 ]
177
178 isolate = "preparser/preparser.isolate"
179}
180
181v8_isolate_run("simdjs") {
182 deps = [
183 "..:d8_run",
184 ]
185
186 isolate = "simdjs/simdjs.isolate"
187}
188
189v8_isolate_run("unittests") {
190 deps = [
191 "unittests:unittests",
192 ]
193
194 isolate = "unittests/unittests.isolate"
195}
196
197v8_isolate_run("webkit") {
198 deps = [
199 "..:d8_run",
200 ]
201
202 isolate = "webkit/webkit.isolate"
203}