@@ -56,7 +56,8 @@ if (chip_build_tests) {
56
56
import (" ${ chip_root } /build/chip/chip_test_group.gni" )
57
57
58
58
chip_test_group (" tests" ) {
59
- deps = [
59
+ deps = []
60
+ tests = [
60
61
" ${ chip_root } /src/access/tests" ,
61
62
" ${ chip_root } /src/crypto/tests" ,
62
63
" ${ chip_root } /src/inet/tests" ,
@@ -72,7 +73,7 @@ if (chip_build_tests) {
72
73
73
74
# Skip DNSSD tests for Mbed platform due to flash memory size limitations
74
75
if (current_os != " mbed" ) {
75
- deps += [
76
+ tests += [
76
77
" ${ chip_root } /src/lib/dnssd/minimal_mdns/core/tests" ,
77
78
" ${ chip_root } /src/lib/dnssd/minimal_mdns/responders/tests" ,
78
79
" ${ chip_root } /src/lib/dnssd/minimal_mdns/tests" ,
@@ -81,19 +82,19 @@ if (chip_build_tests) {
81
82
}
82
83
83
84
if (current_os != " zephyr" && current_os != " mbed" ) {
84
- deps += [ " ${ chip_root } /src/lib/dnssd/minimal_mdns/records/tests" ]
85
+ tests += [ " ${ chip_root } /src/lib/dnssd/minimal_mdns/records/tests" ]
85
86
}
86
87
87
88
if (current_os != " zephyr" && current_os != " mbed" &&
88
89
chip_device_platform != " efr32" ) {
89
- deps += [
90
+ tests += [
90
91
" ${ chip_root } /src/setup_payload/tests" ,
91
92
" ${ chip_root } /src/transport/raw/tests" ,
92
93
]
93
94
}
94
95
95
96
if (chip_device_platform != " efr32" ) {
96
- deps += [
97
+ tests += [
97
98
# TODO(#10447): App test has HF on EFR32.
98
99
" ${ chip_root } /src/app/tests" ,
99
100
" ${ chip_root } /src/credentials/tests" ,
@@ -106,56 +107,61 @@ if (chip_build_tests) {
106
107
107
108
if (matter_enable_tracing_support &&
108
109
matter_trace_config == " multiplexed" ) {
109
- deps += [ " ${ chip_root } /src/tracing/tests" ]
110
+ tests += [ " ${ chip_root } /src/tracing/tests" ]
110
111
}
111
112
}
112
113
113
114
if (chip_device_platform != " none" ) {
114
- deps += [ " ${ chip_root } /src/lib/dnssd/minimal_mdns/tests" ]
115
+ tests += [ " ${ chip_root } /src/lib/dnssd/minimal_mdns/tests" ]
115
116
}
116
117
117
118
if (chip_device_platform != " esp32" && chip_device_platform != " efr32" &&
118
119
chip_device_platform != " ameba" ) {
119
- deps += [ " ${ chip_root } /src/platform/tests" ]
120
+ tests += [ " ${ chip_root } /src/platform/tests" ]
120
121
}
121
122
122
123
if (chip_config_network_layer_ble ) {
123
- deps += [ " ${ chip_root } /src/ble/tests" ]
124
+ tests += [ " ${ chip_root } /src/ble/tests" ]
124
125
}
125
126
126
127
# On nrfconnect, the controller tests run into
127
128
# https://github.com/project-chip/connectedhomeip/issues/9630
128
129
if (chip_device_platform != " nrfconnect" &&
129
130
chip_device_platform != " efr32" ) {
130
131
# TODO(#10447): Controller test has HF on EFR32.
131
- deps += [ " ${ chip_root } /src/controller/tests/data_model" ]
132
+ tests += [ " ${ chip_root } /src/controller/tests/data_model" ]
132
133
133
134
# Skip controller test for Open IoT SDK
134
135
# https://github.com/project-chip/connectedhomeip/issues/23747
135
136
if (chip_device_platform != " openiotsdk" ) {
136
- deps += [ " ${ chip_root } /src/controller/tests" ]
137
+ tests += [ " ${ chip_root } /src/controller/tests" ]
137
138
}
138
139
}
139
140
140
141
if (current_os != " zephyr" && current_os != " mbed" &&
141
142
chip_device_platform != " esp32" && chip_device_platform != " ameba" ) {
142
- deps += [ " ${ chip_root } /src/lib/shell/tests" ]
143
+ tests += [ " ${ chip_root } /src/lib/shell/tests" ]
143
144
}
144
145
145
146
if (chip_monolithic_tests ) {
147
+ # TODO [PW_MIGRATION] Remove this if after migartion to PW_TEST is completed for all platforms
148
+ # TODO [PW_MIGRATION] There will be a list of already migrated platforms
149
+ if (false ) {
150
+ deps += [ " ${ chip_root } /src/lib/support:pw_tests_wrapper" ]
151
+ }
146
152
build_monolithic_library = true
147
153
output_name = " libCHIP_tests"
148
154
output_dir = " ${ root_out_dir } /lib"
149
155
}
150
156
}
151
157
152
158
chip_test_group (" fake_platform_tests" ) {
153
- deps = [ " ${ chip_root } /src/lib/dnssd/platform/tests" ]
159
+ tests = [ " ${ chip_root } /src/lib/dnssd/platform/tests" ]
154
160
}
155
161
156
162
# Tests to run with each Crypto PAL
157
163
chip_test_group (" crypto_tests" ) {
158
- deps = [
164
+ tests = [
159
165
" ${ chip_root } /src/credentials/tests" ,
160
166
" ${ chip_root } /src/crypto/tests" ,
161
167
]
0 commit comments