BUILD.gn 3.75 KB
Newer Older
1 2 3 4 5
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("../gni/isolate.gni")
6
import("../gni/v8.gni")
7 8 9 10 11 12

group("gn_all") {
  testonly = true

  deps = [
    ":default_tests",
13
    "inspector:inspector-test",
14
    "mkgrokdump:mkgrokdump",
15 16 17 18 19 20
  ]

  if (host_os != "mac" || !is_android) {
    # These items don't compile for Android on Mac.
    deps += [
      "cctest:cctest",
21
      "cctest:generate-bytecode-expectations",
22 23 24 25 26 27 28
      "unittests:unittests",
    ]
  }

  if (v8_test_isolation_mode != "noop") {
    deps += [
      ":benchmarks_run",
29
      ":bot_default_run",
30
      ":default_run",
31
      ":d8_default_run",
32
      ":mozilla_run",
33
      "test262:test262_run",
34 35 36 37 38 39 40 41 42 43 44 45 46 47
    ]
  }
}

###############################################################################
# Test groups
#

group("default_tests") {
  testonly = true

  if (v8_test_isolation_mode != "noop") {
    deps = [
      ":cctest_run",
48
      ":debugger_run",
49
      ":fuzzer_run",
50
      ":inspector-test_run",
51 52 53
      ":intl_run",
      ":message_run",
      ":mjsunit_run",
54
      ":mkgrokdump_run",
55 56
      ":preparser_run",
      ":unittests_run",
57
      ":wasm_spec_tests_run",
58 59 60 61 62 63
    ]
  }
}

v8_isolate_run("bot_default") {
  deps = [
64
    ":default_tests",
65 66 67 68 69 70 71 72 73 74 75 76 77 78
    ":webkit_run",
  ]

  isolate = "bot_default.isolate"
}

v8_isolate_run("default") {
  deps = [
    ":default_tests",
  ]

  isolate = "default.isolate"
}

79 80 81 82 83 84 85 86 87 88 89 90 91
v8_isolate_run("d8_default") {
  deps = [
    ":debugger_run",
    ":intl_run",
    ":message_run",
    ":mjsunit_run",
    ":preparser_run",
    ":webkit_run",
  ]

  isolate = "d8_default.isolate"
}

92 93 94
v8_isolate_run("optimize_for_size") {
  deps = [
    ":cctest_run",
95
    ":inspector-test_run",
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
    ":intl_run",
    ":mjsunit_run",
    ":webkit_run",
  ]

  isolate = "optimize_for_size.isolate"
}

v8_isolate_run("perf") {
  deps = [
    ":cctest_exe_run",
    "..:d8_run",
  ]

  isolate = "perf.isolate"
}

###############################################################################
# Subtests
#

v8_isolate_run("benchmarks") {
  deps = [
    "..:d8_run",
  ]

  isolate = "benchmarks/benchmarks.isolate"
}

v8_isolate_run("cctest") {
  deps = [
    ":cctest_exe_run",
  ]

  isolate = "cctest/cctest.isolate"
}

v8_isolate_run("cctest_exe") {
  deps = [
    "cctest:cctest",
  ]

  isolate = "cctest/cctest_exe.isolate"
}

141 142 143 144 145 146 147 148
v8_isolate_run("debugger") {
  deps = [
    "..:d8_run",
  ]

  isolate = "debugger/debugger.isolate"
}

149 150 151 152 153
v8_isolate_run("fuzzer") {
  deps = [
    "..:v8_simple_json_fuzzer",
    "..:v8_simple_parser_fuzzer",
    "..:v8_simple_regexp_fuzzer",
154
    "..:v8_simple_wasm_fuzzer",
155 156 157 158 159
  ]

  isolate = "fuzzer/fuzzer.isolate"
}

160
v8_isolate_run("inspector-test") {
161 162 163
  deps = [
    "inspector:inspector-test",
  ]
164 165 166 167

  isolate = "inspector/inspector.isolate"
}

168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
v8_isolate_run("intl") {
  deps = [
    "..:d8_run",
  ]

  isolate = "intl/intl.isolate"
}

v8_isolate_run("message") {
  deps = [
    "..:d8_run",
  ]

  isolate = "message/message.isolate"
}

v8_isolate_run("mjsunit") {
  deps = [
    "..:d8_run",
  ]

  isolate = "mjsunit/mjsunit.isolate"
}

192 193 194 195 196 197 198 199
v8_isolate_run("mkgrokdump") {
  deps = [
    "mkgrokdump:mkgrokdump",
  ]

  isolate = "mkgrokdump/mkgrokdump.isolate"
}

200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
v8_isolate_run("mozilla") {
  deps = [
    "..:d8_run",
  ]

  isolate = "mozilla/mozilla.isolate"
}

v8_isolate_run("preparser") {
  deps = [
    "..:d8_run",
  ]

  isolate = "preparser/preparser.isolate"
}

v8_isolate_run("unittests") {
  deps = [
    "unittests:unittests",
  ]

  isolate = "unittests/unittests.isolate"
}

224 225 226 227 228 229 230 231
v8_isolate_run("wasm_spec_tests") {
  deps = [
    "..:d8_run",
  ]

  isolate = "wasm-spec-tests/wasm-spec-tests.isolate"
}

232 233 234 235 236 237 238
v8_isolate_run("webkit") {
  deps = [
    "..:d8_run",
  ]

  isolate = "webkit/webkit.isolate"
}