Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split EFR32 tests into separate binaries for each test source file. #34769

Closed
wants to merge 36 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
65463d8
Partial implementation to show ideal location for pw_unit_test overrides
feasel0 Jul 24, 2024
e07e519
Modifed silabs_executable and flashable_executable so that we can bui…
feasel0 Jul 25, 2024
d3aaaeb
Formatting change
feasel0 Jul 25, 2024
432a889
Changed order of variable declarations
feasel0 Jul 25, 2024
83bbb12
Removed unused chip_test.gni
feasel0 Jul 25, 2024
1930860
Added import to get dir_pw_unit_test
feasel0 Jul 25, 2024
bf9ea48
Allowed variables for platform-specific building to be overridden in …
feasel0 Jul 25, 2024
41e4476
Removed define check of test_sources. Undid removal of chip_test.gni
feasel0 Jul 25, 2024
7e22edc
Comment updates
feasel0 Jul 25, 2024
685b1cc
Removed chip_link_tests == false branch. pw_test is now used for thi…
feasel0 Jul 25, 2024
3a62503
Updated test runner script. Removed unneeded NL stuff.
feasel0 Jul 26, 2024
890b68f
Comment updates
feasel0 Jul 27, 2024
3a46c5d
Add the common library as a dep if chip_link_tests is false. Applied…
feasel0 Jul 27, 2024
398d2ad
Same as previous commit.
feasel0 Jul 27, 2024
62f1ac2
Comment update
feasel0 Jul 27, 2024
2d9629a
Set default for output_dir
feasel0 Jul 28, 2024
bd4a54f
Removed deprecated features
feasel0 Jul 29, 2024
35d89d2
Better solution to generating flash scripts, but incomplete
feasel0 Aug 3, 2024
0af3763
Added copy.py script
feasel0 Aug 3, 2024
ef330a3
Generating flashbundle via a new script gen_flashbundle.py
feasel0 Aug 4, 2024
e77f792
Moved flashbundle generation and copying into silabs_firmware_utils
feasel0 Aug 5, 2024
5e81b00
Moved flashbundle generation and copying into silabs_firmware_utils
feasel0 Aug 5, 2024
9ac9d41
Comment typo.
feasel0 Aug 5, 2024
91212d2
Restyled by gn
restyled-commits Aug 5, 2024
6f9863c
Restyled by prettier-markdown
restyled-commits Aug 5, 2024
42655de
Restyled by autopep8
restyled-commits Aug 5, 2024
48709c5
Comment updates after Restyled
feasel0 Aug 5, 2024
ab935e8
Removed gen_flashbundle
feasel0 Aug 5, 2024
32d49e6
Added comments to flashing_options
feasel0 Aug 5, 2024
6f04bde
Added comments to silabs_executable
feasel0 Aug 5, 2024
ec94bd8
Test suite's common lib now contains only `sources`, not `test_source…
feasel0 Aug 7, 2024
0ec522d
changed how test_sources is checked for undefined. Tried adding comm…
feasel0 Aug 7, 2024
66bc519
Merge branch 'master' into feature/splitting9--within-pw_test-jul22
feasel0 Aug 7, 2024
6a8641b
Fixed copying of firmware utils in cases where directory is "."
feasel0 Aug 9, 2024
4e057b7
Modified the builder script for efr32-brdxxxx-unit-test to generate t…
feasel0 Aug 13, 2024
3276433
Move common lib linkage to the pw_test instead of the group target.
feasel0 Aug 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Partial implementation to show ideal location for pw_unit_test overrides
  • Loading branch information
feasel0 committed Jul 24, 2024
commit 65463d86bb9ced97b6242b2be35db2600e227407
13 changes: 5 additions & 8 deletions src/test_driver/efr32/BUILD.gn
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ import("//build_overrides/pigweed.gni")

import("${build_root}/config/defaults.gni")
import("${efr32_sdk_build_root}/efr32_sdk.gni")
import("${efr32_sdk_build_root}/silabs_executable.gni")

import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni")
import("${chip_root}/src/platform/device.gni")
@@ -62,9 +61,8 @@ efr32_sdk("sdk") {
]
}

silabs_executable("efr32_device_tests") {
output_name = "matter-silabs-device_tests.out"

# This is the test runner. `pw_test` will dep this for each `silabs_executable` target.
source_set("efr32_test_main") {
defines = [ "PW_RPC_ENABLED" ]
sources = [
"${chip_root}/examples/common/pigweed/RpcService.cpp",
@@ -83,7 +81,6 @@ silabs_executable("efr32_device_tests") {
"$dir_pw_unit_test:rpc_service",
"${chip_root}/config/efr32/lib/pw_rpc:pw_rpc",
"${chip_root}/examples/common/pigweed:system_rpc_server",
"${chip_root}/src:tests",
"${chip_root}/src/lib",
"${chip_root}/src/lib/support:pw_tests_wrapper",
"${chip_root}/src/platform/silabs/provision:provision-headers",
@@ -115,12 +112,12 @@ silabs_executable("efr32_device_tests") {
"-T" + rebase_path(ldscript, root_build_dir),
"-Wl,--no-warn-rwx-segment",
]

output_dir = root_out_dir
}

group("efr32") {
deps = [ ":efr32_device_tests" ]
deps = [
"${chip_root}/src:tests",
]
}

group("runner") {
4 changes: 4 additions & 0 deletions src/test_driver/efr32/args.gni
Original file line number Diff line number Diff line change
@@ -35,3 +35,7 @@ pw_assert_BACKEND = "$dir_pw_assert_log"
pw_log_BACKEND = "$dir_pw_log_basic"

pw_unit_test_BACKEND = "$dir_pw_unit_test:light"

pw_unit_test_MAIN = "${chip_root}/src/test_driver/efr32:efr32_test_main"
pw_unit_test_EXECUTABLE_TARGET_TYPE = "silabs_executable"
pw_unit_test_EXECUTABLE_TARGET_TYPE_FILE = "${efr32_sdk_build_root}/silabs_executable.gni"