Skip to content

Commit 5b884bc

Browse files
committed
Remove deprecated tests variable for per-test custom mains.
1 parent eb43364 commit 5b884bc

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

build/chip/chip_test_suite.gni

-44
Original file line numberDiff line numberDiff line change
@@ -140,50 +140,6 @@ template("chip_test_suite") {
140140
}
141141
}
142142

143-
#++++x once everything is working try deleting this.
144-
if (defined(invoker.tests)) {
145-
foreach(_test, invoker.tests) {
146-
# `_test` is the bare name with no extension.
147-
148-
_test_output_dir = "${root_out_dir}/tests"
149-
if (defined(invoker.output_dir)) {
150-
_test_output_dir = invoker.output_dir
151-
}
152-
153-
pw_test(_test) {
154-
# Forward certain variables from the invoker.
155-
forward_variables_from(invoker,
156-
[
157-
"deps",
158-
"public_deps",
159-
"cflags",
160-
"configs",
161-
])
162-
163-
# Link to the common lib for this suite so we get its `sources`.
164-
public_deps += [ ":${_suite_name}.lib" ]
165-
166-
# Set variables that the platform executable may need.
167-
if (test_executable_output_name != "") {
168-
output_name = test_executable_output_name + _test +
169-
test_executable_output_name_suffix
170-
}
171-
ldflags = test_executable_ldflags
172-
173-
test_main = ""
174-
175-
# Add the individual test source file and its driver).
176-
sources = [
177-
"${_test}.cpp",
178-
"${_test}Driver.cpp",
179-
]
180-
181-
output_dir = _test_output_dir
182-
}
183-
tests += [ _test ]
184-
}
185-
}
186-
187143
group(_suite_name) {
188144
deps = []
189145

0 commit comments

Comments
 (0)