File tree 3 files changed +14
-1
lines changed
config/nrfconnect/chip-gn
test_driver/nrfconnect/main
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import (" //build_overrides/build.gni" )
16
16
import (" //build_overrides/chip.gni" )
17
+ import (" //build_overrides/pigweed.gni" )
17
18
18
19
# The location of the build configuration file.
19
20
buildconfig = " ${ build_root } /config/BUILDCONFIG.gn"
@@ -25,5 +26,14 @@ default_args = {
25
26
target_cpu = " arm"
26
27
target_os = " zephyr"
27
28
29
+ pw_sys_io_BACKEND = dir_pw_sys_io_stdio
30
+ pw_assert_BACKEND = dir_pw_assert_log
31
+ pw_log_BACKEND = dir_pw_log_basic
32
+
33
+ pw_build_LINK_DEPS = [
34
+ " $dir_pw_assert :impl" ,
35
+ " $dir_pw_log :impl" ,
36
+ ]
37
+
28
38
import (" ${ chip_root } /config/nrfconnect/chip-gn/args.gni" )
29
39
}
Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ if (chip_build_tests) {
143
143
if (chip_monolithic_tests ) {
144
144
# TODO [PW_MIGRATION] Remove this if after migartion to PW_TEST is completed for all platforms
145
145
# TODO [PW_MIGRATION] There will be a list of already migrated platforms
146
- if (chip_device_platform == " esp32" ) {
146
+ if (chip_device_platform == " esp32" ||
147
+ chip_device_platform == " nrfconnect" ) {
147
148
deps += [ " ${ chip_root } /src/lib/support:pw_tests_wrapper" ]
148
149
}
149
150
build_monolithic_library = true
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
#include < lib/support/CodeUtils.h>
19
+ #include < lib/support/UnitTest.h>
19
20
#include < lib/support/UnitTestRegistration.h>
20
21
#include < platform/CHIPDeviceLayer.h>
21
22
@@ -35,6 +36,7 @@ extern "C" int main(void)
35
36
36
37
LOG_INF (" Starting CHIP tests!" );
37
38
int status = RunRegisteredUnitTests ();
39
+ status += chip::test::RunAllTests ();
38
40
LOG_INF (" CHIP test status: %d" , status);
39
41
40
42
_exit (status);
You can’t perform that action at this time.
0 commit comments