BUILD.gn 1.45 KB
Newer Older
1 2 3 4
# 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.

5 6
import("//build/config/sanitizers/sanitizers.gni")
import("../gni/v8.gni")
7 8 9 10

group("gn_all") {
  testonly = true

11 12 13 14 15
  data_deps = [
    ":v8_check_static_initializers",
    "gcmole:v8_run_gcmole",
    "jsfunfuzz:v8_jsfunfuzz",
  ]
16 17
}

18 19 20 21 22 23 24 25 26 27
group("v8_check_static_initializers") {
  data_deps = [
    "..:d8",
  ]

  data = [
    "check-static-initializers.sh",
  ]
}

28 29 30 31 32
group("v8_android_test_runner_deps") {
  testonly = true

  if (is_android && !build_with_chromium) {
    data_deps = [
33
      "//build/android:test_runner_py",
34 35 36
    ]
    data = [
      # This is used by android.py, but not included by test_runner_py above.
37
      "//third_party/catapult/devil/devil/android/perf/",
38 39 40 41
    ]
  }
}

42
group("v8_testrunner") {
43 44
  testonly = true

45
  data_deps = [
46
    "..:v8_python_base",
47
    "..:v8_dump_build_config",
48
    ":v8_android_test_runner_deps",
49 50 51 52 53
  ]

  data = [
    # Also add the num-fuzzer wrapper script in order to be able to run the
    # num-fuzzer on all existing isolated V8 test suites.
54
    "predictable_wrapper.py",
55 56 57 58 59 60 61 62 63 64 65 66
    "run-num-fuzzer.py",
    "run-tests.py",
    "testrunner/",
  ]

  if (v8_code_coverage && sanitizer_coverage_flags == "bb,trace-pc-guard") {
    data += [
      "sanitizers/sancov_merger.py",
      "../third_party/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py",
    ]
  }
}