[build] Add data deps for tools

Bug: chromium:669910
Change-Id: I03f6ef3121af047ea2c4e6b83ed67634f046ce71
Reviewed-on: https://chromium-review.googlesource.com/979796
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: Sergiy Byelozyorov <sergiyb@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52212}
This commit is contained in:
Michael Achenbach 2018-03-26 11:43:06 +02:00 committed by Commit Bot
parent 64e0921ad7
commit 3dfa955a9b
4 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# Copyright 2018 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.
# gn_isolate_map.pyl - A mapping of Ninja build target names to GN labels and
# test type classifications for the tests that are run on the bots.
#
# This file is based on testing/buildbot/gn_isolate_map.pyl for Chromium, but
# is covering V8 stand-alone tests instead.
# See https://cs.chromium.org/chromium/src/testing/buildbot/gn_isolate_map.pyl
# for more detailed documentation.
{
"All": {
"label": "//:All",
"type": "script",
},
"check-static-initializers": {
"label": "//tools:v8_check_static_initializers",
"type": "script",
},
"jsfunfuzz": {
"label": "//tools/jsfunfuzz:v8_jsfunfuzz",
"type": "script",
},
"run-gcmole": {
"label": "//tools/gcmole:v8_run_gcmole",
"type": "script",
},
}

View File

@ -7,6 +7,12 @@ import("../gni/isolate.gni")
group("gn_all") {
testonly = true
data_deps = [
":v8_check_static_initializers",
"gcmole:v8_run_gcmole",
"jsfunfuzz:v8_jsfunfuzz",
]
if (v8_test_isolation_mode != "noop") {
deps = [
":check-static-initializers_run",
@ -17,6 +23,16 @@ group("gn_all") {
}
}
group("v8_check_static_initializers") {
data_deps = [
"..:d8",
]
data = [
"check-static-initializers.sh",
]
}
v8_isolate_run("check-static-initializers") {
deps = [
"..:d8_run",

33
tools/gcmole/BUILD.gn Normal file
View File

@ -0,0 +1,33 @@
# Copyright 2018 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/v8.gni")
group("v8_run_gcmole") {
testonly = true
data = [
"gccause.lua",
"gcmole.lua",
"gcmole-tools/",
"parallel.py",
"run-gcmole.py",
# The following contains all relevant source and build files.
"../../BUILD.gn",
"../../base/",
"../../include/",
"../../src/",
"../../test/cctest/",
"../../testing/gtest/include/gtest/gtest_prod.h",
"../../third_party/googletest/src/googletest/include/gtest/gtest_prod.h",
"../../third_party/icu/source/",
]
if (v8_gcmole) {
# This assumes gcmole tools have been fetched by a hook
# into v8/tools/gcmole/gcmole_tools.
data += [ "gcmole-tools/" ]
}
}

19
tools/jsfunfuzz/BUILD.gn Normal file
View File

@ -0,0 +1,19 @@
# Copyright 2018 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/v8.gni")
group("v8_jsfunfuzz") {
testonly = true
data_deps = [
"../..:d8",
]
data = [
# Grab current directory. This avoids adding logic for checking the
# existence of the jsfunfuzz subdirectory.
"./",
]
}