Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: test/unittests/BUILD.gn

Issue 2098313002: [gn] Use one source of truth for test source files. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/unittests/unittests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/BUILD.gn
diff --git a/test/unittests/BUILD.gn b/test/unittests/BUILD.gn
index ae351b5591a2c28844badcb134c8a97129f4b5c6..32112adbc4136387e1d843d150d4a1f47bd6a041 100644
--- a/test/unittests/BUILD.gn
+++ b/test/unittests/BUILD.gn
@@ -2,141 +2,36 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# Please keep this file in sync with unittests.gyp.
+# The sources are kept automatically in sync with unittests.gyp.
import("../../gni/v8.gni")
+gypi_values = exec_script("//build/gypi_to_gn.py",
+ [ rebase_path("unittests.gyp") ],
+ "scope",
+ [ "unittests.gyp" ])
+
v8_executable("unittests") {
testonly = true
- sources = [
- "base/atomic-utils-unittest.cc",
- "base/bits-unittest.cc",
- "base/cpu-unittest.cc",
- "base/division-by-constant-unittest.cc",
- "base/flags-unittest.cc",
- "base/functional-unittest.cc",
- "base/ieee754-unittest.cc",
- "base/iterator-unittest.cc",
- "base/logging-unittest.cc",
- "base/platform/condition-variable-unittest.cc",
- "base/platform/mutex-unittest.cc",
- "base/platform/platform-unittest.cc",
- "base/platform/semaphore-unittest.cc",
- "base/platform/time-unittest.cc",
- "base/sys-info-unittest.cc",
- "base/utils/random-number-generator-unittest.cc",
- "cancelable-tasks-unittest.cc",
- "char-predicates-unittest.cc",
- "compiler/branch-elimination-unittest.cc",
- "compiler/checkpoint-elimination-unittest.cc",
- "compiler/common-operator-reducer-unittest.cc",
- "compiler/common-operator-unittest.cc",
- "compiler/compiler-test-utils.h",
- "compiler/control-equivalence-unittest.cc",
- "compiler/control-flow-optimizer-unittest.cc",
- "compiler/dead-code-elimination-unittest.cc",
- "compiler/diamond-unittest.cc",
- "compiler/effect-control-linearizer-unittest.cc",
- "compiler/escape-analysis-unittest.cc",
- "compiler/graph-reducer-unittest.cc",
- "compiler/graph-reducer-unittest.h",
- "compiler/graph-trimmer-unittest.cc",
- "compiler/graph-unittest.cc",
- "compiler/graph-unittest.h",
- "compiler/instruction-selector-unittest.cc",
- "compiler/instruction-selector-unittest.h",
- "compiler/instruction-sequence-unittest.cc",
- "compiler/instruction-sequence-unittest.h",
- "compiler/int64-lowering-unittest.cc",
- "compiler/js-builtin-reducer-unittest.cc",
- "compiler/js-create-lowering-unittest.cc",
- "compiler/js-intrinsic-lowering-unittest.cc",
- "compiler/js-operator-unittest.cc",
- "compiler/js-typed-lowering-unittest.cc",
- "compiler/linkage-tail-call-unittest.cc",
- "compiler/live-range-unittest.cc",
- "compiler/liveness-analyzer-unittest.cc",
- "compiler/load-elimination-unittest.cc",
- "compiler/loop-peeling-unittest.cc",
- "compiler/machine-operator-reducer-unittest.cc",
- "compiler/machine-operator-unittest.cc",
- "compiler/move-optimizer-unittest.cc",
- "compiler/node-cache-unittest.cc",
- "compiler/node-matchers-unittest.cc",
- "compiler/node-properties-unittest.cc",
- "compiler/node-test-utils.cc",
- "compiler/node-test-utils.h",
- "compiler/node-unittest.cc",
- "compiler/opcodes-unittest.cc",
- "compiler/register-allocator-unittest.cc",
- "compiler/schedule-unittest.cc",
- "compiler/scheduler-rpo-unittest.cc",
- "compiler/scheduler-unittest.cc",
- "compiler/simplified-operator-reducer-unittest.cc",
- "compiler/simplified-operator-unittest.cc",
- "compiler/state-values-utils-unittest.cc",
- "compiler/tail-call-optimization-unittest.cc",
- "compiler/typer-unittest.cc",
- "compiler/value-numbering-reducer-unittest.cc",
- "compiler/zone-pool-unittest.cc",
- "counters-unittest.cc",
- "heap/bitmap-unittest.cc",
- "heap/gc-idle-time-handler-unittest.cc",
- "heap/gc-tracer-unittest.cc",
- "heap/heap-unittest.cc",
- "heap/memory-reducer-unittest.cc",
- "heap/scavenge-job-unittest.cc",
- "heap/slot-set-unittest.cc",
- "interpreter/bytecode-array-builder-unittest.cc",
- "interpreter/bytecode-array-iterator-unittest.cc",
- "interpreter/bytecode-array-writer-unittest.cc",
- "interpreter/bytecode-dead-code-optimizer-unittest.cc",
- "interpreter/bytecode-peephole-optimizer-unittest.cc",
- "interpreter/bytecode-pipeline-unittest.cc",
- "interpreter/bytecode-register-allocator-unittest.cc",
- "interpreter/bytecode-register-optimizer-unittest.cc",
- "interpreter/bytecodes-unittest.cc",
- "interpreter/constant-array-builder-unittest.cc",
- "interpreter/interpreter-assembler-unittest.cc",
- "interpreter/interpreter-assembler-unittest.h",
- "libplatform/default-platform-unittest.cc",
- "libplatform/task-queue-unittest.cc",
- "libplatform/worker-thread-unittest.cc",
- "locked-queue-unittest.cc",
- "register-configuration-unittest.cc",
- "run-all-unittests.cc",
- "source-position-table-unittest.cc",
- "test-utils.cc",
- "test-utils.h",
- "wasm/asm-types-unittest.cc",
- "wasm/ast-decoder-unittest.cc",
- "wasm/control-transfer-unittest.cc",
- "wasm/decoder-unittest.cc",
- "wasm/encoder-unittest.cc",
- "wasm/leb-helper-unittest.cc",
- "wasm/loop-assignment-analysis-unittest.cc",
- "wasm/module-decoder-unittest.cc",
- "wasm/switch-logic-unittest.cc",
- "wasm/wasm-macro-gen-unittest.cc",
- ]
+ sources = gypi_values.unittests_sources
if (v8_target_cpu == "arm") {
- sources += [ "compiler/arm/instruction-selector-arm-unittest.cc" ]
+ sources += gypi_values.unittests_sources_arm
} else if (v8_target_cpu == "arm64") {
- sources += [ "compiler/arm64/instruction-selector-arm64-unittest.cc" ]
+ sources += gypi_values.unittests_sources_arm64
} else if (v8_target_cpu == "x86") {
- sources += [ "compiler/ia32/instruction-selector-ia32-unittest.cc" ]
+ sources += gypi_values.unittests_sources_ia32
} else if (v8_target_cpu == "mips" || v8_target_cpu == "mipsel") {
- sources += [ "compiler/mips/instruction-selector-mips-unittest.cc" ]
+ sources += gypi_values.unittests_sources_mips
} else if (v8_target_cpu == "mips64" || v8_target_cpu == "mips64el") {
- sources += [ "compiler/mips64/instruction-selector-mips64-unittest.cc" ]
+ sources += gypi_values.unittests_sources_mips64
} else if (v8_target_cpu == "x64") {
- sources += [ "compiler/x64/instruction-selector-x64-unittest.cc" ]
+ sources += gypi_values.unittests_sources_x64
} else if (v8_target_cpu == "ppc" || v8_target_cpu == "ppc64") {
- sources += [ "compiler/ppc/instruction-selector-ppc-unittest.cc" ]
+ sources += gypi_values.unittests_sources_ppc
} else if (v8_target_cpu == "s390" || v8_target_cpu == "s390x") {
- sources += [ "compiler/s390/instruction-selector-s390-unittest.cc" ]
+ sources += gypi_values.unittests_sources_s390
}
configs = [
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/unittests/unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698