File tree 5 files changed +19
-3
lines changed
5 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
import (" //build_overrides/build.gni" )
16
+ import (" //build_overrides/pigweed.gni" )
16
17
17
18
# The location of the build configuration file.
18
19
buildconfig = " ${ build_root } /config/BUILDCONFIG.gn"
@@ -24,6 +25,15 @@ default_args = {
24
25
target_cpu = " esp32"
25
26
target_os = " freertos"
26
27
28
+ pw_sys_io_BACKEND = dir_pw_sys_io_stdio
29
+ pw_assert_BACKEND = dir_pw_assert_log
30
+ pw_log_BACKEND = dir_pw_log_basic
31
+
32
+ pw_build_LINK_DEPS = [
33
+ " $dir_pw_assert :impl" ,
34
+ " $dir_pw_log :impl" ,
35
+ ]
36
+
27
37
pw_build_PIP_CONSTRAINTS =
28
38
[ " //third_party/connectedhomeip/scripts/setup/constraints.txt" ]
29
39
pw_build_PIP_REQUIREMENTS = [
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ group("esp32") {
36
36
}
37
37
38
38
if (chip_build_tests ) {
39
- deps += [ " ${ chip_root } /src:tests" ]
39
+ deps += [
40
+ " ${ chip_root } /src:tests" ,
41
+ " ${ chip_root } /src/lib/support:pw_tests_wrapper" ,
42
+ ]
40
43
}
41
44
}
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ 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 (false ) {
146
+ if (chip_device_platform == " esp32 " ) {
147
147
deps += [ " ${ chip_root } /src/lib/support:pw_tests_wrapper" ]
148
148
}
149
149
build_monolithic_library = true
Original file line number Diff line number Diff line change @@ -45,4 +45,4 @@ target_compile_options(${COMPONENT_LIB} PUBLIC
45
45
)
46
46
47
47
target_link_directories (${COMPONENT_LIB} PUBLIC ${CMAKE_CURRENT_BINARY_DIR} /../chip/lib)
48
- target_link_libraries (${COMPONENT_LIB} PUBLIC -lSupportTesting)
48
+ target_link_libraries (${COMPONENT_LIB} PUBLIC -lSupportTesting -lPWTestsWrapper )
Original file line number Diff line number Diff line change 30
30
31
31
#include < crypto/CHIPCryptoPAL.h>
32
32
#include < lib/core/ErrorStr.h>
33
+ #include < lib/support/UnitTest.h>
33
34
#include < lib/support/UnitTestRegistration.h>
34
35
#include < platform/CHIPDeviceLayer.h>
35
36
@@ -41,7 +42,9 @@ const char TAG[] = "CHIP-tests";
41
42
static void tester_task (void * pvParameters)
42
43
{
43
44
ESP_LOGI (TAG, " Starting CHIP tests!" );
45
+ // TODO [PW_MIGRATION] Remove NLUnit tests call after migration
44
46
int status = RunRegisteredUnitTests ();
47
+ status += chip::test::RunAllTests ();
45
48
ESP_LOGI (TAG, " CHIP test status: %d" , status);
46
49
exit (status);
47
50
}
You can’t perform that action at this time.
0 commit comments