@@ -16,54 +16,24 @@ import("//build_overrides/build.gni")
16
16
import (" //build_overrides/chip.gni" )
17
17
import (" //build_overrides/pigweed.gni" )
18
18
import (" ${ chip_root } /build/chip/chip_test_suite.gni" )
19
-
20
19
config (" unit-test-config" ) {
21
- defines = [ " OTA_ENCRYPTION_ENABLE=0" ]
22
- }
23
-
24
- config (" test-event-trigger-tests-config" ) {
25
- include_dirs = [
26
- " ${ chip_root } /examples/platform/silabs" ,
27
- " ${ chip_root } /src/platform/silabs/provision" ,
28
- ]
29
-
30
- defines = [ " SL_MATTER_TEST_EVENT_TRIGGER_ENABLED=1" ]
31
- }
32
-
33
- source_set (" test-event-trigger-tests" ) {
34
- sources = [
35
- " ${ chip_root } /examples/platform/silabs/SilabsTestEventTriggerDelegate.cpp" ,
36
- " ${ chip_root } /examples/platform/silabs/SilabsTestEventTriggerDelegate.h" ,
37
- " ${ chip_root } /examples/platform/silabs/provision/ProvisionStorageCustom.cpp" ,
38
- " ${ chip_root } /examples/platform/silabs/tests/stubs/StorageStub.cpp" ,
39
- ]
40
-
41
- public_configs = [
42
- " :test-event-trigger-tests-config" ,
43
- " :unit-test-config" ,
44
- ]
45
-
46
- public_deps = [
47
- " ${ chip_root } /src/app:test-event-trigger" ,
48
- " ${ chip_root } /src/lib/core" ,
49
- " ${ chip_root } /src/lib/support" ,
50
- ]
20
+ defines = [ " OTA_ENCRYPTION_ENABLE=1" ]
51
21
}
52
22
53
23
chip_test_suite (" tests" ) {
54
24
output_name = " libSilabsExamplesPlatformTests"
55
25
56
26
test_sources = [ " TestSilabsTestEventTrigger.cpp" ]
57
27
28
+ public_configs = [ " :unit-test-config" ]
29
+
58
30
public_deps = [
59
- " : test-event-trigger-tests " ,
31
+ " ${ chip_root } /examples/platform/silabs/ test-event-trigger:sources " ,
60
32
" ${ chip_root } /src/lib/core" ,
61
33
" ${ chip_root } /src/lib/core:string-builder-adapters" ,
62
34
" ${ chip_root } /src/lib/support" ,
63
35
" ${ chip_root } /src/lib/support:testing" ,
64
36
]
65
37
66
- public_configs = [ " :unit-test-config" ]
67
-
68
38
cflags = [ " -Wconversion" ]
69
39
}
0 commit comments