Skip to content

Commit

Permalink
Add the common library as a dep if chip_link_tests is false. Applied …
Browse files Browse the repository at this point in the history
…changes to the deprecated user-defined-driver feature in case anyone is still using it.
  • Loading branch information
feasel0 committed Aug 8, 2024
1 parent 40c7669 commit ce9a5ca
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions build/chip/chip_test_suite.gni
Original file line number Diff line number Diff line change
Expand Up @@ -146,33 +146,6 @@ template("chip_test_suite") {
tests += [ _test_name ]
}

if (defined(invoker.tests)) {
foreach(_test, invoker.tests) {
_test_output_dir = "${root_out_dir}/tests"
if (defined(invoker.output_dir)) {
_test_output_dir = invoker.output_dir
}

pw_test(_test) {
forward_variables_from(invoker,
[
"deps",
"public_deps",
"cflags",
"configs",
])
public_deps += [ ":${_suite_name}.lib" ]
test_main = ""
sources = [
"${_test}.cpp",
"${_test}Driver.cpp",
]
output_dir = _test_output_dir
}
tests += [ _test ]
}
}

group(_suite_name) {
deps = []
foreach(_test, tests) {
Expand Down

0 comments on commit ce9a5ca

Please sign in to comment.