summaryrefslogtreecommitdiff
path: root/deps/v8/test/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/BUILD.gn')
-rw-r--r--deps/v8/test/BUILD.gn262
1 files changed, 80 insertions, 182 deletions
diff --git a/deps/v8/test/BUILD.gn b/deps/v8/test/BUILD.gn
index 532a3ddaa2..c15413675e 100644
--- a/deps/v8/test/BUILD.gn
+++ b/deps/v8/test/BUILD.gn
@@ -2,14 +2,25 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("../gni/isolate.gni")
import("../gni/v8.gni")
group("gn_all") {
testonly = true
+ data_deps = [
+ "benchmarks:v8_benchmarks",
+ "intl:v8_intl",
+ "fuzzer:v8_fuzzer",
+ "message:v8_message",
+ "mjsunit:v8_mjsunit",
+ "mozilla:v8_mozilla",
+ "preparser:v8_preparser",
+ "test262:v8_test262",
+ "wasm-spec-tests:v8_wasm_spec_tests",
+ "webkit:v8_webkit",
+ ]
+
deps = [
- ":default_tests",
"inspector:inspector-test",
"mkgrokdump:mkgrokdump",
]
@@ -22,217 +33,104 @@ group("gn_all") {
"unittests:unittests",
]
}
-
- if (v8_test_isolation_mode != "noop") {
- deps += [
- ":benchmarks_run",
- ":bot_default_run",
- ":default_run",
- ":d8_default_run",
- ":mozilla_run",
- "test262:test262_run",
- ]
- }
}
###############################################################################
# Test groups
#
-group("default_tests") {
+group("v8_perf") {
testonly = true
- if (v8_test_isolation_mode != "noop") {
- deps = [
- ":cctest_run",
- ":debugger_run",
- ":fuzzer_run",
- ":inspector-test_run",
- ":intl_run",
- ":message_run",
- ":mjsunit_run",
- ":mkgrokdump_run",
- ":preparser_run",
- ":unittests_run",
- ":wasm_spec_tests_run",
- ]
- }
-}
-
-v8_isolate_run("bot_default") {
- deps = [
- ":default_tests",
- ":webkit_run",
- ]
-
- isolate = "bot_default.isolate"
-}
-
-v8_isolate_run("default") {
- deps = [
- ":default_tests",
- ]
-
- isolate = "default.isolate"
-}
-
-v8_isolate_run("d8_default") {
- deps = [
- ":debugger_run",
- ":intl_run",
- ":message_run",
- ":mjsunit_run",
- ":preparser_run",
- ":webkit_run",
- ]
-
- isolate = "d8_default.isolate"
-}
-
-v8_isolate_run("optimize_for_size") {
- deps = [
- ":cctest_run",
- ":inspector-test_run",
- ":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 = [
+ data_deps = [
"cctest:cctest",
+ "..:d8",
]
- isolate = "cctest/cctest_exe.isolate"
-}
-
-v8_isolate_run("debugger") {
- deps = [
- "..:d8_run",
+ data = [
+ "../tools/run_perf.py",
+ # TODO(machenbach): These files are referenced by the perf runner.
+ # They should be transformed into a proper python module.
+ "../tools/testrunner/local/command.py",
+ "../tools/testrunner/local/utils.py",
+ "../tools/testrunner/objects/output.py",
+ # This is often used to trigger performance bots. We include it in the
+ # isolate to not get these builds deduped.
+ "../tools/whitespace.txt",
+ "js-perf-test/",
+ "memory/",
]
-
- isolate = "debugger/debugger.isolate"
}
-v8_isolate_run("fuzzer") {
- deps = [
- "..:v8_simple_json_fuzzer",
- "..:v8_simple_parser_fuzzer",
- "..:v8_simple_regexp_fuzzer",
- "..:v8_simple_wasm_fuzzer",
- ]
-
- isolate = "fuzzer/fuzzer.isolate"
-}
+group("v8_bot_default") {
+ testonly = true
-v8_isolate_run("inspector-test") {
- deps = [
+ data_deps = [
+ "cctest:cctest",
+ "debugger:v8_debugger",
+ "fuzzer:v8_fuzzer",
"inspector:inspector-test",
+ "intl:v8_intl",
+ "message:v8_message",
+ "mjsunit:v8_mjsunit",
+ "mkgrokdump:mkgrokdump",
+ "preparser:v8_preparser",
+ "unittests:unittests",
+ "wasm-spec-tests:v8_wasm_spec_tests",
+ "webkit:v8_webkit",
]
-
- isolate = "inspector/inspector.isolate"
-}
-
-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"
-}
+group("v8_default") {
+ testonly = true
-v8_isolate_run("mkgrokdump") {
- deps = [
+ data_deps = [
+ "cctest:cctest",
+ "debugger:v8_debugger",
+ "fuzzer:v8_fuzzer",
+ "inspector:inspector-test",
+ "intl:v8_intl",
+ "message:v8_message",
+ "mjsunit:v8_mjsunit",
"mkgrokdump:mkgrokdump",
+ "preparser:v8_preparser",
+ "unittests:unittests",
+ "wasm-spec-tests:v8_wasm_spec_tests",
]
-
- isolate = "mkgrokdump/mkgrokdump.isolate"
}
-v8_isolate_run("mozilla") {
- deps = [
- "..:d8_run",
- ]
-
- isolate = "mozilla/mozilla.isolate"
-}
+group("v8_optimize_for_size") {
+ testonly = true
-v8_isolate_run("preparser") {
- deps = [
- "..:d8_run",
+ data_deps = [
+ "cctest:cctest",
+ "debugger:v8_debugger",
+ "inspector:inspector-test",
+ "intl:v8_intl",
+ "mjsunit:v8_mjsunit",
+ "webkit:v8_webkit",
]
-
- isolate = "preparser/preparser.isolate"
}
-v8_isolate_run("unittests") {
- deps = [
- "unittests:unittests",
- ]
-
- isolate = "unittests/unittests.isolate"
-}
+group("v8_d8_default") {
+ testonly = true
-v8_isolate_run("wasm_spec_tests") {
- deps = [
- "..:d8_run",
+ data_deps = [
+ "debugger:v8_debugger",
+ "intl:v8_intl",
+ "message:v8_message",
+ "mjsunit:v8_mjsunit",
+ "preparser:v8_preparser",
+ "webkit:v8_webkit",
]
-
- isolate = "wasm-spec-tests/wasm-spec-tests.isolate"
}
-v8_isolate_run("webkit") {
- deps = [
- "..:d8_run",
- ]
+group("v8_run_num_fuzzer") {
+ testonly = true
- isolate = "webkit/webkit.isolate"
+ data_deps = [
+ "benchmarks:v8_benchmarks",
+ "mjsunit:v8_mjsunit",
+ "webkit:v8_webkit",
+ ]
}