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.
|
|
|
|
|
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
|
|
|
|
|
2018-03-26 13:42:13 +00:00
|
|
|
data_deps = [
|
|
|
|
"benchmarks:v8_benchmarks",
|
|
|
|
"fuzzer:v8_fuzzer",
|
2020-06-02 10:14:03 +00:00
|
|
|
"intl:v8_intl",
|
2018-03-26 13:42:13 +00:00
|
|
|
"message:v8_message",
|
|
|
|
"mjsunit:v8_mjsunit",
|
|
|
|
"mozilla:v8_mozilla",
|
|
|
|
"test262:v8_test262",
|
|
|
|
"webkit:v8_webkit",
|
|
|
|
]
|
|
|
|
|
2016-06-03 13:46:08 +00:00
|
|
|
deps = [
|
2021-06-02 16:21:31 +00:00
|
|
|
"bigint:bigint_shell",
|
2017-03-31 08:24:34 +00:00
|
|
|
"inspector:inspector-test",
|
2017-04-20 06:14:53 +00:00
|
|
|
"mkgrokdump:mkgrokdump",
|
2016-06-03 13:46:08 +00:00
|
|
|
]
|
|
|
|
|
2021-03-08 13:47:44 +00:00
|
|
|
if (v8_enable_webassembly) {
|
|
|
|
data_deps += [
|
|
|
|
"wasm-js:v8_wasm_js",
|
|
|
|
"wasm-spec-tests:v8_wasm_spec_tests",
|
|
|
|
]
|
|
|
|
deps += [ "wasm-api-tests:wasm_api_tests" ]
|
|
|
|
}
|
|
|
|
|
2020-06-02 10:14:03 +00:00
|
|
|
if (v8_fuzzilli) {
|
|
|
|
deps += [ "fuzzilli:v8_fuzzilli_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 += [
|
2020-07-02 18:24:48 +00:00
|
|
|
"benchmarks/cpp:gn_all",
|
2016-06-03 13:46:08 +00:00
|
|
|
"cctest:cctest",
|
[test] Move cctest/interpreter to unittests
... /interpreter.
This CL moves cctest/interpreter/{bytecode-expectations-printer,
test-bytecode-generator, test-interpreter-intrinsics,
interpreter-tester, test-interpreter, test-source-positions,
source-position-matcher} to unittests/interpreter/{
bytecode-expectations-printer, bytecode-generator-unittest,
interpreter-intrinsics-unittest, interpreter-tester,
interpreter-unittest, source-positions-unittest, source-position-matcher}.
Bug: v8:12781
Change-Id: I187583bd34f709dd0d7dfc0f92e18f191da0e30f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3609752
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: 王澳 <wangao.james@bytedance.com>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81057}
2022-06-10 04:16:39 +00:00
|
|
|
"unittests:generate-bytecode-expectations",
|
2016-06-03 13:46:08 +00:00
|
|
|
"unittests:unittests",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Test groups
|
|
|
|
#
|
|
|
|
|
2018-03-26 13:52:36 +00:00
|
|
|
group("v8_perf") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
data_deps = [
|
|
|
|
"..:d8",
|
2020-06-02 10:14:03 +00:00
|
|
|
"..:v8_python_base",
|
2018-08-10 17:09:34 +00:00
|
|
|
"../tools:v8_android_test_runner_deps",
|
2019-10-31 13:10:27 +00:00
|
|
|
"../tools:v8_testrunner",
|
2018-03-26 13:52:36 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
data = [
|
|
|
|
"../tools/run_perf.py",
|
2018-07-17 07:47:48 +00:00
|
|
|
|
2018-03-26 13:52:36 +00:00
|
|
|
# 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/",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2023-01-27 13:16:14 +00:00
|
|
|
group("d8_pgo") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
data_deps = [
|
|
|
|
"..:d8",
|
|
|
|
"..:v8_python_base",
|
|
|
|
]
|
|
|
|
|
|
|
|
data = [
|
|
|
|
"../tools/builtins-pgo/profile_only.py",
|
|
|
|
"../tools/builtins-pgo/get_hints.py",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-03-26 13:52:36 +00:00
|
|
|
group("v8_bot_default") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
data_deps = [
|
|
|
|
"cctest:cctest",
|
|
|
|
"debugger:v8_debugger",
|
|
|
|
"fuzzer:v8_fuzzer",
|
|
|
|
"inspector:inspector-test",
|
|
|
|
"intl:v8_intl",
|
|
|
|
"message:v8_message",
|
|
|
|
"mjsunit:v8_mjsunit",
|
|
|
|
"mkgrokdump:mkgrokdump",
|
|
|
|
"unittests:unittests",
|
|
|
|
"webkit:v8_webkit",
|
|
|
|
]
|
2021-03-08 13:47:44 +00:00
|
|
|
|
|
|
|
if (v8_enable_webassembly) {
|
|
|
|
data_deps += [
|
|
|
|
"wasm-api-tests:wasm_api_tests",
|
|
|
|
"wasm-js:v8_wasm_js",
|
|
|
|
"wasm-spec-tests:v8_wasm_spec_tests",
|
|
|
|
]
|
|
|
|
}
|
2018-03-26 13:52:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group("v8_default") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
data_deps = [
|
|
|
|
"cctest:cctest",
|
|
|
|
"debugger:v8_debugger",
|
|
|
|
"fuzzer:v8_fuzzer",
|
|
|
|
"inspector:inspector-test",
|
|
|
|
"intl:v8_intl",
|
|
|
|
"message:v8_message",
|
|
|
|
"mjsunit:v8_mjsunit",
|
|
|
|
"mkgrokdump:mkgrokdump",
|
|
|
|
"unittests:unittests",
|
|
|
|
]
|
2021-03-08 13:47:44 +00:00
|
|
|
|
|
|
|
if (v8_enable_webassembly) {
|
|
|
|
data_deps += [
|
|
|
|
"wasm-api-tests:wasm_api_tests",
|
|
|
|
"wasm-js:v8_wasm_js",
|
|
|
|
"wasm-spec-tests:v8_wasm_spec_tests",
|
|
|
|
]
|
|
|
|
}
|
2018-03-26 13:52:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group("v8_optimize_for_size") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
data_deps = [
|
|
|
|
"cctest:cctest",
|
|
|
|
"debugger:v8_debugger",
|
|
|
|
"inspector:inspector-test",
|
|
|
|
"intl:v8_intl",
|
|
|
|
"mjsunit:v8_mjsunit",
|
|
|
|
"webkit:v8_webkit",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("v8_d8_default") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
data_deps = [
|
|
|
|
"debugger:v8_debugger",
|
|
|
|
"intl:v8_intl",
|
|
|
|
"message:v8_message",
|
|
|
|
"mjsunit:v8_mjsunit",
|
|
|
|
"webkit:v8_webkit",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("v8_run_num_fuzzer") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
data_deps = [
|
|
|
|
"benchmarks:v8_benchmarks",
|
|
|
|
"mjsunit:v8_mjsunit",
|
|
|
|
"webkit:v8_webkit",
|
|
|
|
]
|
|
|
|
}
|
2019-02-12 08:41:25 +00:00
|
|
|
|
|
|
|
v8_header_set("common_test_headers") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs = []
|
|
|
|
|
|
|
|
public_deps = [
|
2021-03-02 17:38:53 +00:00
|
|
|
"../:v8_internal_headers",
|
2019-02-12 08:41:25 +00:00
|
|
|
"../:v8_libbase",
|
|
|
|
]
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"common/assembler-tester.h",
|
2020-10-05 15:01:50 +00:00
|
|
|
"common/flag-utils.h",
|
2019-02-12 08:41:25 +00:00
|
|
|
"common/types-fuzz.h",
|
|
|
|
]
|
2021-03-08 13:47:44 +00:00
|
|
|
|
|
|
|
if (v8_enable_webassembly) {
|
|
|
|
sources += [
|
|
|
|
"common/wasm/flag-utils.h",
|
|
|
|
"common/wasm/test-signatures.h",
|
|
|
|
"common/wasm/wasm-macro-gen.h",
|
|
|
|
]
|
|
|
|
}
|
2019-02-12 08:41:25 +00:00
|
|
|
}
|