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

Side by Side Diff: test/unittests/BUILD.gn

Issue 2011853002: [gn] Add unittests (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase gyp changes + comment 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 unified diff | Download patch
« no previous file with comments | « build_overrides/gtest.gni ('k') | test/unittests/unittests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The V8 project authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # Please keep this file in sync with unittests.gyp.
6
7 import("../../gni/v8.gni")
8
9 executable("unittests") {
10 testonly = true
11
12 sources = [
13 "base/atomic-utils-unittest.cc",
14 "base/bits-unittest.cc",
15 "base/cpu-unittest.cc",
16 "base/division-by-constant-unittest.cc",
17 "base/flags-unittest.cc",
18 "base/functional-unittest.cc",
19 "base/iterator-unittest.cc",
20 "base/logging-unittest.cc",
21 "base/platform/condition-variable-unittest.cc",
22 "base/platform/mutex-unittest.cc",
23 "base/platform/platform-unittest.cc",
24 "base/platform/semaphore-unittest.cc",
25 "base/platform/time-unittest.cc",
26 "base/sys-info-unittest.cc",
27 "base/utils/random-number-generator-unittest.cc",
28 "cancelable-tasks-unittest.cc",
29 "char-predicates-unittest.cc",
30 "compiler/branch-elimination-unittest.cc",
31 "compiler/checkpoint-elimination-unittest.cc",
32 "compiler/coalesced-live-ranges-unittest.cc",
33 "compiler/common-operator-reducer-unittest.cc",
34 "compiler/common-operator-unittest.cc",
35 "compiler/compiler-test-utils.h",
36 "compiler/control-equivalence-unittest.cc",
37 "compiler/control-flow-optimizer-unittest.cc",
38 "compiler/dead-code-elimination-unittest.cc",
39 "compiler/diamond-unittest.cc",
40 "compiler/effect-control-linearizer-unittest.cc",
41 "compiler/escape-analysis-unittest.cc",
42 "compiler/graph-reducer-unittest.cc",
43 "compiler/graph-reducer-unittest.h",
44 "compiler/graph-trimmer-unittest.cc",
45 "compiler/graph-unittest.cc",
46 "compiler/graph-unittest.h",
47 "compiler/instruction-selector-unittest.cc",
48 "compiler/instruction-selector-unittest.h",
49 "compiler/instruction-sequence-unittest.cc",
50 "compiler/instruction-sequence-unittest.h",
51 "compiler/int64-lowering-unittest.cc",
52 "compiler/js-builtin-reducer-unittest.cc",
53 "compiler/js-create-lowering-unittest.cc",
54 "compiler/js-intrinsic-lowering-unittest.cc",
55 "compiler/js-operator-unittest.cc",
56 "compiler/js-typed-lowering-unittest.cc",
57 "compiler/linkage-tail-call-unittest.cc",
58 "compiler/live-range-unittest.cc",
59 "compiler/liveness-analyzer-unittest.cc",
60 "compiler/load-elimination-unittest.cc",
61 "compiler/loop-peeling-unittest.cc",
62 "compiler/machine-operator-reducer-unittest.cc",
63 "compiler/machine-operator-unittest.cc",
64 "compiler/move-optimizer-unittest.cc",
65 "compiler/node-cache-unittest.cc",
66 "compiler/node-matchers-unittest.cc",
67 "compiler/node-properties-unittest.cc",
68 "compiler/node-test-utils.cc",
69 "compiler/node-test-utils.h",
70 "compiler/node-unittest.cc",
71 "compiler/opcodes-unittest.cc",
72 "compiler/register-allocator-unittest.cc",
73 "compiler/schedule-unittest.cc",
74 "compiler/scheduler-rpo-unittest.cc",
75 "compiler/scheduler-unittest.cc",
76 "compiler/simplified-operator-reducer-unittest.cc",
77 "compiler/simplified-operator-unittest.cc",
78 "compiler/state-values-utils-unittest.cc",
79 "compiler/tail-call-optimization-unittest.cc",
80 "compiler/typer-unittest.cc",
81 "compiler/value-numbering-reducer-unittest.cc",
82 "compiler/zone-pool-unittest.cc",
83 "counters-unittest.cc",
84 "heap/bitmap-unittest.cc",
85 "heap/gc-idle-time-handler-unittest.cc",
86 "heap/gc-tracer-unittest.cc",
87 "heap/heap-unittest.cc",
88 "heap/memory-reducer-unittest.cc",
89 "heap/scavenge-job-unittest.cc",
90 "heap/slot-set-unittest.cc",
91 "interpreter/bytecode-array-builder-unittest.cc",
92 "interpreter/bytecode-array-iterator-unittest.cc",
93 "interpreter/bytecode-array-writer-unittest.cc",
94 "interpreter/bytecode-peephole-optimizer-unittest.cc",
95 "interpreter/bytecode-pipeline-unittest.cc",
96 "interpreter/bytecode-register-allocator-unittest.cc",
97 "interpreter/bytecode-register-optimizer-unittest.cc",
98 "interpreter/bytecodes-unittest.cc",
99 "interpreter/constant-array-builder-unittest.cc",
100 "interpreter/interpreter-assembler-unittest.cc",
101 "interpreter/interpreter-assembler-unittest.h",
102 "interpreter/source-position-table-unittest.cc",
103 "libplatform/default-platform-unittest.cc",
104 "libplatform/task-queue-unittest.cc",
105 "libplatform/worker-thread-unittest.cc",
106 "locked-queue-unittest.cc",
107 "run-all-unittests.cc",
108 "test-utils.cc",
109 "test-utils.h",
110 "wasm/ast-decoder-unittest.cc",
111 "wasm/control-transfer-unittest.cc",
112 "wasm/decoder-unittest.cc",
113 "wasm/encoder-unittest.cc",
114 "wasm/leb-helper-unittest.cc",
115 "wasm/loop-assignment-analysis-unittest.cc",
116 "wasm/module-decoder-unittest.cc",
117 "wasm/switch-logic-unittest.cc",
118 "wasm/wasm-macro-gen-unittest.cc",
119 ]
120
121 if (v8_target_arch == "arm") {
122 sources += [ "compiler/arm/instruction-selector-arm-unittest.cc" ]
123 } else if (v8_target_arch == "arm64") {
124 sources += [ "compiler/arm64/instruction-selector-arm64-unittest.cc" ]
125 } else if (v8_target_arch == "ia32") {
126 sources += [ "compiler/ia32/instruction-selector-ia32-unittest.cc" ]
127 } else if (v8_target_arch == "mips" || v8_target_arch == "mipsel") {
128 sources += [ "compiler/mips/instruction-selector-mips-unittest.cc" ]
129 } else if (v8_target_arch == "mips64" || v8_target_arch == "mips64el") {
130 sources += [ "compiler/mips64/instruction-selector-mips64-unittest.cc" ]
131 } else if (v8_target_arch == "x64") {
132 sources += [ "compiler/x64/instruction-selector-x64-unittest.cc" ]
133 } else if (v8_target_arch == "ppc" || v8_target_arch == "ppc64") {
134 sources += [ "compiler/ppc/instruction-selector-ppc-unittest.cc" ]
135 } else if (v8_target_arch == "s390" || v8_target_arch == "s390x") {
136 sources += [ "compiler/s390/instruction-selector-s390-unittest.cc" ]
137 }
138
139 configs -= [ "//build/config/compiler:chromium_code" ]
140 configs += [ "//build/config/compiler:no_chromium_code" ]
141 configs += [
142 "../..:external_config",
143 "../..:internal_config_base",
144 "../..:features",
145 "../..:toolchain",
146 ]
147
148 # TODO(machenbach): Translate from gyp.
149 #['OS=="aix"', {
150 # 'ldflags': [ '-Wl,-bbigtoc' ],
151 #}],
152
153 deps = [
154 "../..:v8_libplatform",
155 "//build/config/sanitizers:deps",
156 "//build/win:default_exe_manifest",
157 "//testing/gmock",
158 "//testing/gtest",
159 ]
160
161 if (is_component_build) {
162 # compiler-unittests can't be built against a shared library, so we
163 # need to depend on the underlying static target in that case.
164 deps += [ "../..:v8_maybe_snapshot" ]
165 } else {
166 deps += [ "../..:v8" ]
167 }
168 }
OLDNEW
« no previous file with comments | « build_overrides/gtest.gni ('k') | test/unittests/unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698