File tree 38 files changed +57
-40
lines changed
examples/placeholder/linux
suites/commands/interaction_model
user_directed_commissioning/tests
38 files changed +57
-40
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ executable("chip-${chip_tests_zap_config}") {
44
44
" ${ chip_root } /src/app/tests/suites/credentials:dac_provider" ,
45
45
" ${ chip_root } /src/app/tests/suites/pics" ,
46
46
" ${ chip_root } /src/lib" ,
47
- " ${ chip_root } /src/lib/support:testing" , # For sleepMillis. TODO: this is
48
- # odd and should be fixed
47
+ " ${ chip_root } /src/lib/support:test_utils" ,
49
48
" ${ chip_root } /src/platform/logging:headers" ,
50
49
" ${ chip_root } /third_party/jsoncpp" ,
51
50
]
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ chip_test_suite_using_nltest("tests") {
27
27
28
28
public_deps = [
29
29
" ${ chip_root } /src/access" ,
30
- " ${ chip_root } /src/lib/support:testing" ,
30
+ " ${ chip_root } /src/lib/support:test_utils" ,
31
+ " ${ chip_root } /src/lib/support:testing_nlunit" ,
31
32
" ${ nlunit_test_root } :nlunit-test" ,
32
33
]
33
34
}
Original file line number Diff line number Diff line change @@ -206,7 +206,8 @@ chip_test_suite_using_nltest("tests") {
206
206
" ${ chip_root } /src/app/tests:helpers" ,
207
207
" ${ chip_root } /src/app/util/mock:mock_ember" ,
208
208
" ${ chip_root } /src/lib/core" ,
209
- " ${ chip_root } /src/lib/support:testing" ,
209
+ " ${ chip_root } /src/lib/support:test_utils" ,
210
+ " ${ chip_root } /src/lib/support:testing_nlunit" ,
210
211
" ${ nlunit_test_root } :nlunit-test" ,
211
212
]
212
213
Original file line number Diff line number Diff line change @@ -28,6 +28,6 @@ static_library("interaction_model") {
28
28
public_deps = [
29
29
" ${ chip_root } /src/app" ,
30
30
" ${ chip_root } /src/lib/support" ,
31
- " ${ chip_root } /src/lib/support:testing " ,
31
+ " ${ chip_root } /src/lib/support:test_utils " ,
32
32
]
33
33
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ source_set("mock_ember") {
28
28
" ${ chip_root } /src/app" ,
29
29
" ${ chip_root } /src/lib/core" ,
30
30
" ${ chip_root } /src/lib/support" ,
31
- " ${ chip_root } /src/lib/support:testing " ,
31
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
32
32
]
33
33
34
34
public_configs = [ " :mock_include" ]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ chip_test_suite_using_nltest("tests") {
30
30
31
31
public_deps = [
32
32
" ${ chip_root } /src/ble" ,
33
- " ${ chip_root } /src/lib/support:testing " ,
33
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
34
34
" ${ nlunit_test_root } :nlunit-test" ,
35
35
]
36
36
}
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ chip_test_suite_using_nltest("tests") {
39
39
" ${ chip_root } /src/app/common:cluster-objects" ,
40
40
" ${ chip_root } /src/app/tests:helpers" ,
41
41
" ${ chip_root } /src/controller" ,
42
- " ${ chip_root } /src/lib/support:testing" ,
42
+ " ${ chip_root } /src/lib/support:test_utils" ,
43
+ " ${ chip_root } /src/lib/support:testing_nlunit" ,
43
44
" ${ chip_root } /src/messaging/tests:helpers" ,
44
45
" ${ chip_root } /src/transport/raw/tests:helpers" ,
45
46
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ chip_test_suite_using_nltest("data_model") {
34
34
" ${ chip_root } /src/app/common:cluster-objects" ,
35
35
" ${ chip_root } /src/app/tests:helpers" ,
36
36
" ${ chip_root } /src/app/util/mock:mock_ember" ,
37
- " ${ chip_root } /src/lib/support:testing " ,
37
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
38
38
" ${ chip_root } /src/messaging/tests:helpers" ,
39
39
" ${ chip_root } /src/transport/raw/tests:helpers" ,
40
40
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ chip_test_suite_using_nltest("tests") {
70
70
" ${ chip_root } /src/credentials" ,
71
71
" ${ chip_root } /src/credentials:default_attestation_verifier" ,
72
72
" ${ chip_root } /src/lib/core" ,
73
- " ${ chip_root } /src/lib/support:testing " ,
73
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
74
74
" ${ nlunit_test_root } :nlunit-test" ,
75
75
]
76
76
}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ chip_test_suite_using_nltest("tests") {
69
69
" ${ chip_root } /src/credentials/tests:cert_test_vectors" ,
70
70
" ${ chip_root } /src/crypto" ,
71
71
" ${ chip_root } /src/lib/core" ,
72
- " ${ chip_root } /src/lib/support:testing " ,
72
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
73
73
" ${ chip_root } /src/platform" ,
74
74
" ${ nlunit_test_root } :nlunit-test" ,
75
75
]
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ chip_test_suite_using_nltest("tests") {
68
68
" :helpers" ,
69
69
" ${ chip_root } /src/inet" ,
70
70
" ${ chip_root } /src/lib/core" ,
71
- " ${ chip_root } /src/lib/support:testing " ,
71
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
72
72
" ${ nlunit_test_root } :nlunit-test" ,
73
73
]
74
74
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ chip_test_suite_using_nltest("tests") {
29
29
30
30
public_deps = [
31
31
" ${ chip_root } /src/lib/address_resolve" ,
32
- " ${ chip_root } /src/lib/support:testing " ,
32
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
33
33
" ${ chip_root } /src/protocols" ,
34
34
" ${ nlunit_test_root } :nlunit-test" ,
35
35
]
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ chip_test_suite_using_nltest("tests") {
26
26
public_deps = [
27
27
" ${ chip_root } /src/lib/asn1" ,
28
28
" ${ chip_root } /src/lib/core" ,
29
- " ${ chip_root } /src/lib/support:testing " ,
29
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
30
30
" ${ chip_root } /src/platform" ,
31
31
" ${ nlunit_test_root } :nlunit-test" ,
32
32
]
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ chip_test_suite_using_nltest("tests") {
36
36
37
37
public_deps = [
38
38
" ${ chip_root } /src/lib/core" ,
39
- " ${ chip_root } /src/lib/support:testing" ,
39
+ " ${ chip_root } /src/lib/support:test_utils" ,
40
+ " ${ chip_root } /src/lib/support:testing_nlunit" ,
40
41
" ${ chip_root } /src/platform" ,
41
42
" ${ nlunit_test_root } :nlunit-test" ,
42
43
]
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ chip_test_suite_using_nltest("tests") {
43
43
" :support" ,
44
44
" ${ chip_root } /src/lib/core" ,
45
45
" ${ chip_root } /src/lib/dnssd/minimal_mdns/core" ,
46
- " ${ chip_root } /src/lib/support:testing " ,
46
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
47
47
" ${ nlunit_test_root } :nlunit-test" ,
48
48
]
49
49
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ chip_test_suite_using_nltest("tests") {
34
34
public_deps = [
35
35
" ${ chip_root } /src/lib/core" ,
36
36
" ${ chip_root } /src/lib/dnssd/minimal_mdns/records" ,
37
- " ${ chip_root } /src/lib/support:testing " ,
37
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
38
38
" ${ nlunit_test_root } :nlunit-test" ,
39
39
]
40
40
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ chip_test_suite_using_nltest("tests") {
34
34
" ${ chip_root } /src/lib/dnssd/minimal_mdns" ,
35
35
" ${ chip_root } /src/lib/dnssd/minimal_mdns:default_policy" ,
36
36
" ${ chip_root } /src/lib/dnssd/minimal_mdns/responders" ,
37
- " ${ chip_root } /src/lib/support:testing " ,
37
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
38
38
" ${ nlunit_test_root } :nlunit-test" ,
39
39
]
40
40
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ chip_test_suite_using_nltest("tests") {
38
38
" ${ chip_root } /src/lib/core" ,
39
39
" ${ chip_root } /src/lib/dnssd" ,
40
40
" ${ chip_root } /src/lib/dnssd/minimal_mdns" ,
41
- " ${ chip_root } /src/lib/support:testing " ,
41
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
42
42
" ${ chip_root } /src/transport/raw/tests:helpers" ,
43
43
" ${ nlunit_test_root } :nlunit-test" ,
44
44
]
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ chip_test_suite_using_nltest("tests") {
25
25
26
26
public_deps = [
27
27
" ${ chip_root } /src/lib/dnssd" ,
28
- " ${ chip_root } /src/lib/support:testing " ,
28
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
29
29
" ${ nlunit_test_root } :nlunit-test" ,
30
30
]
31
31
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ chip_test_suite_using_nltest("tests") {
28
28
29
29
public_deps = [
30
30
" ${ chip_root } /src/lib/dnssd" ,
31
- " ${ chip_root } /src/lib/support:testing " ,
31
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
32
32
" ${ nlunit_test_root } :nlunit-test" ,
33
33
]
34
34
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ chip_test_suite_using_nltest("tests") {
40
40
" ${ chip_root } /src/lib/format:flat-tree" ,
41
41
" ${ chip_root } /src/lib/format:protocol-decoder" ,
42
42
" ${ chip_root } /src/lib/format:protocol-tlv-metadata" ,
43
- " ${ chip_root } /src/lib/support:testing " ,
43
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
44
44
" ${ nlunit_test_root } :nlunit-test" ,
45
45
]
46
46
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ chip_test_suite_using_nltest("tests") {
31
31
public_deps = [
32
32
" ${ chip_root } /src/lib/core" ,
33
33
" ${ chip_root } /src/lib/shell" ,
34
- " ${ chip_root } /src/lib/support:testing " ,
34
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
35
35
" ${ nlunit_test_root } :nlunit-test" ,
36
36
]
37
37
}
Original file line number Diff line number Diff line change @@ -297,16 +297,25 @@ static_library("support") {
297
297
}
298
298
}
299
299
300
- static_library (" testing" ) {
300
+ static_library (" test_utils" ) {
301
+ output_name = " libTestUtils"
302
+ output_dir = " ${ root_out_dir } /lib"
303
+ deps = [ " ${ chip_root } /src/platform" ]
304
+
305
+ sources = [
306
+ " UnitTestUtils.cpp" ,
307
+ " UnitTestUtils.h" ,
308
+ ]
309
+ }
310
+
311
+ static_library (" testing_nlunit" ) {
301
312
output_name = " libSupportTesting"
302
313
output_dir = " ${ root_out_dir } /lib"
303
314
304
315
sources = [
305
316
" UnitTestExtendedAssertions.h" ,
306
317
" UnitTestRegistration.cpp" ,
307
318
" UnitTestRegistration.h" ,
308
- " UnitTestUtils.cpp" ,
309
- " UnitTestUtils.h" ,
310
319
]
311
320
312
321
public_deps = [
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ chip_test_suite_using_nltest("tests") {
78
78
public_deps = [
79
79
" ${ chip_root } /src/credentials" ,
80
80
" ${ chip_root } /src/lib/core" ,
81
- " ${ chip_root } /src/lib/support:testing " ,
81
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
82
82
" ${ chip_root } /src/lib/support/jsontlv" ,
83
83
" ${ chip_root } /src/platform" ,
84
84
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ chip_test_suite_using_nltest("tests") {
72
72
" ${ chip_root } /src/inet/tests:helpers" ,
73
73
" ${ chip_root } /src/lib/core" ,
74
74
" ${ chip_root } /src/lib/support" ,
75
- " ${ chip_root } /src/lib/support:testing" ,
75
+ " ${ chip_root } /src/lib/support:test_utils" ,
76
+ " ${ chip_root } /src/lib/support:testing_nlunit" ,
76
77
" ${ chip_root } /src/messaging" ,
77
78
" ${ chip_root } /src/protocols" ,
78
79
" ${ chip_root } /src/transport" ,
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ if (chip_device_platform != "none" && chip_device_platform != "fake") {
40
40
41
41
public_deps = [
42
42
" ${ chip_root } /src/lib/support" ,
43
- " ${ chip_root } /src/lib/support:testing" ,
43
+ " ${ chip_root } /src/lib/support:test_utils" ,
44
+ " ${ chip_root } /src/lib/support:testing_nlunit" ,
44
45
" ${ chip_root } /src/platform" ,
45
46
" ${ chip_root } /src/system" ,
46
47
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ chip_test_suite_using_nltest("tests") {
31
31
public_deps = [
32
32
" ${ chip_root } /src/lib/core" ,
33
33
" ${ chip_root } /src/lib/support" ,
34
- " ${ chip_root } /src/lib/support:testing " ,
34
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
35
35
" ${ chip_root } /src/protocols/bdx" ,
36
36
" ${ nlio_root } :nlio" ,
37
37
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ chip_test_suite_using_nltest("tests") {
26
26
public_deps = [
27
27
" ${ chip_root } /src/lib/core" ,
28
28
" ${ chip_root } /src/lib/support" ,
29
- " ${ chip_root } /src/lib/support:testing " ,
29
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
30
30
" ${ chip_root } /src/protocols/interaction_model" ,
31
31
" ${ nlunit_test_root } :nlunit-test" ,
32
32
]
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ chip_test_suite_using_nltest("tests") {
29
29
" ${ chip_root } /src/crypto/tests:tests.lib" ,
30
30
" ${ chip_root } /src/lib/core" ,
31
31
" ${ chip_root } /src/lib/support" ,
32
- " ${ chip_root } /src/lib/support:testing" ,
32
+ " ${ chip_root } /src/lib/support:test_utils" ,
33
+ " ${ chip_root } /src/lib/support:testing_nlunit" ,
33
34
" ${ chip_root } /src/messaging/tests:helpers" ,
34
35
" ${ chip_root } /src/protocols" ,
35
36
" ${ chip_root } /src/protocols/secure_channel" ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ chip_test_suite_using_nltest("tests") {
25
25
public_deps = [
26
26
" ${ chip_root } /src/lib/core" ,
27
27
" ${ chip_root } /src/lib/support" ,
28
- " ${ chip_root } /src/lib/support:testing " ,
28
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
29
29
" ${ chip_root } /src/protocols" ,
30
30
" ${ nlio_root } :nlio" ,
31
31
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ chip_test_suite_using_nltest("tests") {
33
33
cflags = [ " -Wconversion" ]
34
34
35
35
public_deps = [
36
- " ${ chip_root } /src/lib/support:testing " ,
36
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
37
37
" ${ chip_root } /src/platform" ,
38
38
" ${ chip_root } /src/setup_payload" ,
39
39
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ chip_test_suite_using_nltest("tests") {
47
47
48
48
public_deps = [
49
49
" ${ chip_root } /src/inet" ,
50
- " ${ chip_root } /src/lib/support:testing " ,
50
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
51
51
" ${ chip_root } /src/platform" ,
52
52
" ${ chip_root } /src/system" ,
53
53
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ silabs_executable("efr32_device_tests") {
84
84
" ${ chip_root } /examples/common/pigweed:system_rpc_server" ,
85
85
" ${ chip_root } /src:tests" ,
86
86
" ${ chip_root } /src/lib" ,
87
- " ${ chip_root } /src/lib/support:testing " ,
87
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
88
88
" ${ examples_common_plat_dir } /pw_sys_io:pw_sys_io_silabs" ,
89
89
" ${ nlunit_test_root } :nlunit-test" ,
90
90
]
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ macro(esp32_unit_test)
37
37
-Wl,--whole-archive ${UNIT_TEST_LIBRARY} -Wl,--no -whole-archive
38
38
${UNIT_TEST_EXTRA_LIBRARIES}
39
39
-lSupportTesting
40
+ -lTestUtils
40
41
nlunit-test
41
42
nlfaultinjection
42
43
)
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if (matter_enable_tracing_support && matter_trace_config == "multiplexed") {
27
27
sources = []
28
28
29
29
public_deps = [
30
- " ${ chip_root } /src/lib/support:testing " ,
30
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
31
31
" ${ chip_root } /src/platform" ,
32
32
" ${ chip_root } /src/tracing" ,
33
33
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ chip_test_suite_using_nltest("tests") {
50
50
" ${ chip_root } /src/inet/tests:helpers" ,
51
51
" ${ chip_root } /src/lib/core" ,
52
52
" ${ chip_root } /src/lib/support" ,
53
- " ${ chip_root } /src/lib/support:testing" ,
53
+ " ${ chip_root } /src/lib/support:test_utils" ,
54
+ " ${ chip_root } /src/lib/support:testing_nlunit" ,
54
55
" ${ chip_root } /src/transport" ,
55
56
" ${ chip_root } /src/transport/raw" ,
56
57
" ${ nlio_root } :nlio" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ chip_test_suite_using_nltest("tests") {
30
30
]
31
31
32
32
public_deps = [
33
- " ${ chip_root } /src/lib/support:testing " ,
33
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
34
34
" ${ chip_root } /src/transport/retransmit" ,
35
35
" ${ nlio_root } :nlio" ,
36
36
" ${ nlunit_test_root } :nlunit-test" ,
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ chip_test_suite_using_nltest("tests") {
55
55
" ${ chip_root } /src/inet/tests:helpers" ,
56
56
" ${ chip_root } /src/lib/core" ,
57
57
" ${ chip_root } /src/lib/support" ,
58
- " ${ chip_root } /src/lib/support:testing " ,
58
+ " ${ chip_root } /src/lib/support:testing_nlunit " ,
59
59
" ${ chip_root } /src/protocols" ,
60
60
" ${ chip_root } /src/transport" ,
61
61
" ${ chip_root } /src/transport/tests:helpers" ,
You can’t perform that action at this time.
0 commit comments