2016-06-03 13:46:08 +00:00
|
|
|
# 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")
|
2016-11-21 19:29:02 +00:00
|
|
|
import("../gni/v8.gni")
|
2016-06-03 13:46:08 +00:00
|
|
|
|
|
|
|
group("gn_all") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":default_tests",
|
2017-03-31 08:24:34 +00:00
|
|
|
"inspector:inspector-test",
|
2016-06-03 13:46:08 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if (host_os != "mac" || !is_android) {
|
|
|
|
# These items don't compile for Android on Mac.
|
|
|
|
deps += [
|
|
|
|
"cctest:cctest",
|
2016-06-27 11:55:33 +00:00
|
|
|
"cctest:generate-bytecode-expectations",
|
2016-06-03 13:46:08 +00:00
|
|
|
"unittests:unittests",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (v8_test_isolation_mode != "noop") {
|
|
|
|
deps += [
|
|
|
|
":benchmarks_run",
|
2016-06-30 11:29:20 +00:00
|
|
|
":bot_default_run",
|
2016-06-03 13:46:08 +00:00
|
|
|
":default_run",
|
|
|
|
":mozilla_run",
|
2016-06-06 08:55:13 +00:00
|
|
|
"test262:test262_run",
|
2016-06-03 13:46:08 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Test groups
|
|
|
|
#
|
|
|
|
|
|
|
|
group("default_tests") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
if (v8_test_isolation_mode != "noop") {
|
|
|
|
deps = [
|
|
|
|
":cctest_run",
|
|
|
|
":fuzzer_run",
|
2016-11-04 08:49:56 +00:00
|
|
|
":inspector-test_run",
|
2016-06-03 13:46:08 +00:00
|
|
|
":intl_run",
|
|
|
|
":message_run",
|
|
|
|
":mjsunit_run",
|
|
|
|
":preparser_run",
|
|
|
|
":unittests_run",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_isolate_run("bot_default") {
|
|
|
|
deps = [
|
2016-06-30 11:29:20 +00:00
|
|
|
":default_tests",
|
2016-06-03 13:46:08 +00:00
|
|
|
":webkit_run",
|
|
|
|
]
|
|
|
|
|
|
|
|
isolate = "bot_default.isolate"
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_isolate_run("default") {
|
|
|
|
deps = [
|
|
|
|
":default_tests",
|
|
|
|
]
|
|
|
|
|
|
|
|
isolate = "default.isolate"
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_isolate_run("optimize_for_size") {
|
|
|
|
deps = [
|
|
|
|
":cctest_run",
|
2016-10-12 07:31:53 +00:00
|
|
|
":inspector-test_run",
|
2016-06-03 13:46:08 +00:00
|
|
|
":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"
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_isolate_run("fuzzer") {
|
|
|
|
deps = [
|
|
|
|
"..:v8_simple_json_fuzzer",
|
|
|
|
"..:v8_simple_parser_fuzzer",
|
|
|
|
"..:v8_simple_regexp_fuzzer",
|
|
|
|
"..:v8_simple_wasm_asmjs_fuzzer",
|
2016-06-30 11:29:20 +00:00
|
|
|
"..:v8_simple_wasm_fuzzer",
|
2016-06-03 13:46:08 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
isolate = "fuzzer/fuzzer.isolate"
|
|
|
|
}
|
|
|
|
|
2016-10-12 07:31:53 +00:00
|
|
|
v8_isolate_run("inspector-test") {
|
2017-03-31 08:24:34 +00:00
|
|
|
deps = [
|
|
|
|
"inspector:inspector-test",
|
|
|
|
]
|
2016-10-12 07:31:53 +00:00
|
|
|
|
|
|
|
isolate = "inspector/inspector.isolate"
|
|
|
|
}
|
|
|
|
|
2016-06-03 13:46:08 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_isolate_run("webkit") {
|
|
|
|
deps = [
|
|
|
|
"..:d8_run",
|
|
|
|
]
|
|
|
|
|
|
|
|
isolate = "webkit/webkit.isolate"
|
|
|
|
}
|