Skip to content

Commit

Permalink
Added chip_link_tests to test_driver/efr32/args.gni and removed speci…
Browse files Browse the repository at this point in the history
…al logic from chip_test_suite
  • Loading branch information
feasel0 committed Sep 3, 2024
1 parent 18f51e5 commit 2536840
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions build/chip/chip_test_suite.gni
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,12 @@ declare_args() {
# ]
# }

# If args.gni has defined an executable name, then ensure pw_test is called for each test source even if chip_link_tests is false.
pw_test_builds_executable = test_executable_output_name != ""

#
template("chip_test_suite") {
_suite_name = target_name

exclude_variables = [ "tests" ]
if (pw_test_builds_executable) {
if (chip_link_tests) {
# Common library shouldn't have all the individual unit tests, only the common sources.
exclude_variables += [ "test_sources" ]
} else {
Expand Down Expand Up @@ -97,7 +94,7 @@ template("chip_test_suite") {
}

# Build a source_set or a flashable executable for each individual unit test source, which also includes the common files.
if (chip_link_tests || pw_test_builds_executable) {
if (chip_link_tests) {
tests = []

if (defined(invoker.test_sources)) {
Expand Down
1 change: 1 addition & 0 deletions src/test_driver/efr32/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ silabs_sdk_target = get_label_info(":sdk", "label_no_toolchain")

chip_enable_pw_rpc = true
chip_build_tests = true
chip_link_tests = true
chip_enable_openthread = true
chip_openthread_ftd = false # use mtd as it is smaller.

Expand Down

0 comments on commit 2536840

Please sign in to comment.