File tree Expand file tree Collapse file tree 6 files changed +49
-3
lines changed
build/toolchain/pw_fuzzer Expand file tree Collapse file tree 6 files changed +49
-3
lines changed Original file line number Diff line number Diff line change 340340[submodule "third_party/googletest "]
341341 path = third_party/googletest
342342 url = https://github.com/google/googletest
343- platforms = linux,darwin
343+ platforms = linux,android, darwin,tizen
344344[submodule "third_party/re2/src "]
345345 path = third_party/re2/src
346346 url = https://github.com/google/re2.git
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import (" //build_overrides/build.gni" )
16+ import (" //build_overrides/googletest.gni" )
1617import (" //build_overrides/pigweed.gni" )
1718
1819# The location of the build configuration file.
@@ -33,6 +34,11 @@ default_args = {
3334 # GN target to use for the default Python build venv.
3435 pw_build_PYTHON_BUILD_VENV = " //:matter_build_venv"
3536
37+ # Use the GoogleTest backend for unit tests running on host.
38+ pw_unit_test_BACKEND = " $dir_pw_unit_test :googletest"
39+ pw_unit_test_MAIN = " $dir_pigweed /third_party/googletest:gmock_main"
40+ dir_pw_third_party_googletest = " $dir_googletest "
41+
3642 # Required for pw_unit_test
3743 pw_sys_io_BACKEND = " $dir_pw_sys_io_stdio "
3844 pw_assert_BACKEND = " $dir_pw_assert_log "
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import (" //build_overrides/build.gni" )
16+ import (" //build_overrides/googletest.gni" )
1617import (" //build_overrides/pigweed.gni" )
1718
1819import (" $dir_pigweed /targets/host/target_toolchains.gni" )
@@ -61,7 +62,7 @@ gcc_toolchain("chip_pw_fuzztest") {
6162
6263 dir_pw_third_party_abseil_cpp = " //third_party/abseil-cpp/src"
6364 dir_pw_third_party_fuzztest = " //third_party/fuzztest"
64- dir_pw_third_party_googletest = " //third_party/googletest "
65+ dir_pw_third_party_googletest = " $dir_googletest "
6566
6667 # TODO: Seems that re2 support within FuzzTest was deprecated, keeping it defined is triggering warning
6768 # Remove if re2 is indeed not needed
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2024 Project CHIP Authors
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ declare_args () {
16+ # Location of the GoogleTest repository.
17+ dir_googletest = " //third_party/googletest"
18+ }
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2024 Project CHIP Authors
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ declare_args () {
16+ # Location of the GoogleTest repository.
17+ dir_googletest = " //third_party/connectedhomeip/third_party/googletest"
18+ }
Original file line number Diff line number Diff line change 1414
1515import (" //build_overrides/build.gni" )
1616import (" //build_overrides/chip.gni" )
17+ import (" //build_overrides/googletest.gni" )
1718import (" //build_overrides/pigweed.gni" )
1819
1920# The location of the build configuration file.
@@ -29,7 +30,9 @@ default_args = {
2930 pw_assert_BACKEND = " $dir_pw_assert_log "
3031 pw_log_BACKEND = " $dir_pw_log_basic "
3132
32- pw_unit_test_BACKEND = " $dir_pw_unit_test :light"
33+ pw_unit_test_BACKEND = " $dir_pw_unit_test :googletest"
34+ pw_unit_test_MAIN = " $dir_pigweed /third_party/googletest:gmock_main"
35+ dir_pw_third_party_googletest = " $dir_googletest "
3336
3437 # TODO: Make sure only unit tests link against this
3538 pw_build_LINK_DEPS = [
You can’t perform that action at this time.
0 commit comments