Skip to content

Commit ec7a5ee

Browse files
authored
Merge pull request #11486 from ladislas/update-googletest
update googletest to v1.8.1
2 parents 31114ba + fa217c5 commit ec7a5ee

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

UNITTESTS/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
5252
# dependencies automatically when using CMake 2.8.11 or
5353
# later.
5454
target_include_directories(gmock_main SYSTEM BEFORE INTERFACE
55-
"${gtest_SOURCE_DIR}/include"
56-
"${gmock_SOURCE_DIR}/include")
55+
"$<BUILD_INTERFACE:${gtest_SOURCE_DIR}/include>"
56+
"$<BUILD_INTERFACE:${gmock_SOURCE_DIR}/include>")
5757

5858
####################
5959
# TESTING

UNITTESTS/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ Mbed CLI supports unit tests through the `mbed test --unittests` command. For in
8585

8686
A unit tests suite consists of one or more test cases. The test cases should cover all the functions in a class under test. All the external dependencies are stubbed including the other classes in the same module. Avoid stubbing header files. Finally, analyze code coverage to ensure all code is tested, and no dead code is found.
8787

88+
Unit tests are written using [Google Test v1.8.1](https://github.com/google/googletest/releases/tag/release-1.8.1).
89+
8890
Please see the [documentation for Google Test](https://github.com/google/googletest/blob/master/googletest/docs/primer.md) to learn how to write unit tests using its framework. See the [documentation for Google Mock](https://github.com/google/googletest/blob/master/googlemock/docs/Documentation.md) if you want to write and use C++ mock classes instead of stubs.
8991

9092
#### Test suite configuration

UNITTESTS/googletest-CMakeLists.txt.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ project(googletest-download NONE)
55
include(ExternalProject)
66
ExternalProject_Add(googletest
77
GIT_REPOSITORY https://github.com/google/googletest.git
8-
GIT_TAG 8bc11c040a1dcbe50c340b21d78175d152dd3837
8+
GIT_TAG release-1.8.1
99
SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src"
1010
BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build"
1111
CONFIGURE_COMMAND ""

0 commit comments

Comments
 (0)