Skip to content

Commit 2848d2e

Browse files
committed
Fix up test registration logic
1 parent a618524 commit 2848d2e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/BUILD.gn

+9-4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ if (chip_build_tests) {
5858
"${chip_root}/src/crypto/tests",
5959
"${chip_root}/src/inet/tests",
6060
"${chip_root}/src/lib/address_resolve/tests",
61+
"${chip_root}/src/app/server-cluster/tests",
6162
"${chip_root}/src/lib/asn1/tests",
6263
"${chip_root}/src/lib/core/tests",
6364
"${chip_root}/src/lib/format/tests",
@@ -94,12 +95,19 @@ if (chip_build_tests) {
9495
# symbols for ember mocks which are used by other tests.
9596

9697
tests += [
97-
"${chip_root}/src/data-model-providers/codegen/tests",
9898
"${chip_root}/src/setup_payload/tests",
9999
"${chip_root}/src/transport/raw/tests",
100100
]
101101
}
102102

103+
if (current_os != "zephyr" && current_os != "mbed" &&
104+
chip_device_platform != "efr32") {
105+
# Disabled from "one single binary" since the "mocks" contain duplicate sybmols
106+
# with ember
107+
# Disabled on EFR32 since "include <random>" fails with `::fabs` not defined
108+
tests += [ "${chip_root}/src/data-model-providers/codegen/tests" ]
109+
}
110+
103111
if (chip_device_platform != "efr32") {
104112
tests += [
105113
"${chip_root}/src/app/tests",
@@ -108,9 +116,6 @@ if (chip_build_tests) {
108116
# https://github.com/project-chip/connectedhomeip/issues/35624
109117
"${chip_root}/src/credentials/tests",
110118
"${chip_root}/src/lib/support/tests",
111-
112-
# Disabled on EFR32 since "include <random>" fails with `::fabs` not defined
113-
"${chip_root}/src/app/server-cluster/tests",
114119
]
115120
}
116121

0 commit comments

Comments
 (0)