Skip to content

Commit

Permalink
Upgrade GoogleTest version from 1.12.1 to 1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cngzhnp committed Apr 21, 2023
1 parent 82f2828 commit 6bfa052
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
env:
CC: /usr/bin/gcc-12
CXX: /usr/bin/g++-12
GOOGLETEST_VERSION: 1.12.1
GOOGLETEST_VERSION: 1.13.0
PROTOBUF_VERSION: 21.12
run: |
sudo -E ./ci/setup_cmake.sh
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
env:
CC: /usr/bin/gcc-12
CXX: /usr/bin/g++-12
GOOGLETEST_VERSION: 1.12.1
GOOGLETEST_VERSION: 1.13.0
PROTOBUF_VERSION: 21.12
run: |
sudo -E ./ci/setup_cmake.sh
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
env:
CC: /usr/bin/clang-14
CXX: /usr/bin/clang++-14
GOOGLETEST_VERSION: 1.12.1
GOOGLETEST_VERSION: 1.13.0
PROTOBUF_VERSION: 21.12
run: |
sudo -E ./ci/setup_cmake.sh
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
env:
CC: /usr/bin/clang-14
CXX: /usr/bin/clang++-14
GOOGLETEST_VERSION: 1.12.1
GOOGLETEST_VERSION: 1.13.0
PROTOBUF_VERSION: 21.12
run: |
sudo -E ./ci/setup_cmake.sh
Expand Down
4 changes: 2 additions & 2 deletions bazel/repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def opentelemetry_cpp_deps():
http_archive,
name = "com_google_googletest",
sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2",
strip_prefix = "googletest-release-1.12.1",
strip_prefix = "googletest-release-1.13.0",
urls = [
"https://github.com/google/googletest/archive/release-1.12.1.tar.gz",
"https://github.com/google/googletest/archive/v1.13.0.tar.gz",
],
)

Expand Down
8 changes: 4 additions & 4 deletions ci/setup_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ "x$CMAKE_VERSION" = "x" ]; then
fi

if [ "x$GOOGLETEST_VERSION" = "x" ]; then
export GOOGLETEST_VERSION=1.12.1
export GOOGLETEST_VERSION=1.13.0
fi

cmake_install() {
Expand All @@ -31,9 +31,9 @@ googletest_install() {
# https://gist.github.com/dlime/313f74fd23e4267c4a915086b84c7d3d
tmp_dir=$(mktemp -d)
pushd $tmp_dir
wget https://github.com/google/googletest/archive/release-${GOOGLETEST_VERSION}.tar.gz
tar -xf release-${GOOGLETEST_VERSION}.tar.gz
cd googletest-release-${GOOGLETEST_VERSION}/
wget https://github.com/google/googletest/archive/v${GOOGLETEST_VERSION}.tar.gz
tar -xf v${GOOGLETEST_VERSION}.tar.gz
cd googletest-${GOOGLETEST_VERSION}/
mkdir build && cd build
cmake .. -DBUILD_SHARED_LIBS=ON -DINSTALL_GTEST=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr
make -j $(nproc)
Expand Down
2 changes: 1 addition & 1 deletion third_party/googletest
Submodule googletest updated 77 files
+0 −43 .github/ISSUE_TEMPLATE/00-bug_report.md
+53 −0 .github/ISSUE_TEMPLATE/00-bug_report.yml
+0 −24 .github/ISSUE_TEMPLATE/10-feature_request.md
+33 −0 .github/ISSUE_TEMPLATE/10-feature_request.yml
+4 −0 .github/ISSUE_TEMPLATE/config.yml
+10 −7 .github/workflows/gtest-ci.yml
+6 −1 CMakeLists.txt
+2 −2 CONTRIBUTING.md
+12 −36 README.md
+20 −19 WORKSPACE
+6 −2 ci/linux-presubmit.sh
+4 −2 ci/macos-presubmit.sh
+56 −0 ci/windows-presubmit.bat
+1 −1 docs/_layouts/default.html
+17 −8 docs/advanced.md
+1 −1 docs/faq.md
+1 −1 docs/gmock_cheat_sheet.md
+15 −14 docs/gmock_cook_book.md
+1 −0 docs/primer.md
+8 −9 docs/quickstart-bazel.md
+6 −6 docs/quickstart-cmake.md
+1 −1 docs/reference/testing.md
+1 −1 docs/samples.md
+9 −5 googlemock/include/gmock/gmock-actions.h
+8 −5 googlemock/include/gmock/gmock-function-mocker.h
+34 −24 googlemock/include/gmock/gmock-matchers.h
+38 −7 googlemock/include/gmock/gmock-more-matchers.h
+31 −3 googlemock/include/gmock/gmock-spec-builders.h
+25 −11 googlemock/include/gmock/internal/gmock-internal-utils.h
+5 −4 googlemock/src/gmock-internal-utils.cc
+17 −0 googlemock/src/gmock-matchers.cc
+18 −4 googlemock/src/gmock-spec-builders.cc
+4 −4 googlemock/test/gmock-actions_test.cc
+15 −0 googlemock/test/gmock-function-mocker_test.cc
+41 −0 googlemock/test/gmock-matchers-comparisons_test.cc
+2 −2 googlemock/test/gmock-matchers-containers_test.cc
+15 −1 googlemock/test/gmock-matchers-misc_test.cc
+12 −9 googlemock/test/gmock-spec-builders_test.cc
+3 −0 googlemock/test/gmock_output_test.py
+4 −4 googlemock/test/gmock_output_test_golden.txt
+16 −0 googletest/CMakeLists.txt
+7 −7 googletest/README.md
+19 −5 googletest/cmake/internal_utils.cmake
+1 −1 googletest/include/gtest/gtest-matchers.h
+2 −0 googletest/include/gtest/gtest-message.h
+41 −6 googletest/include/gtest/gtest-param-test.h
+85 −2 googletest/include/gtest/gtest-printers.h
+2 −0 googletest/include/gtest/gtest-spi.h
+2 −0 googletest/include/gtest/gtest-test-part.h
+31 −10 googletest/include/gtest/gtest.h
+2 −1 googletest/include/gtest/internal/gtest-death-test-internal.h
+17 −0 googletest/include/gtest/internal/gtest-filepath.h
+5 −4 googletest/include/gtest/internal/gtest-internal.h
+75 −0 googletest/include/gtest/internal/gtest-param-util.h
+2 −0 googletest/include/gtest/internal/gtest-port-arch.h
+146 −99 googletest/include/gtest/internal/gtest-port.h
+1 −0 googletest/include/gtest/internal/gtest-string.h
+4 −0 googletest/include/gtest/internal/gtest-type-util.h
+2 −2 googletest/src/gtest-death-test.cc
+63 −20 googletest/src/gtest-filepath.cc
+9 −4 googletest/src/gtest-internal-inl.h
+1 −1 googletest/src/gtest-printers.cc
+121 −72 googletest/src/gtest.cc
+12 −0 googletest/src/gtest_main.cc
+1 −0 googletest/test/googletest-color-test.py
+20 −0 googletest/test/googletest-filepath-test.cc
+3 −0 googletest/test/googletest-message-test.cc
+2 −0 googletest/test/googletest-options-test.cc
+71 −11 googletest/test/googletest-param-test-test.cc
+1 −0 googletest/test/googletest-port-test.cc
+32 −1 googletest/test/googletest-printers-test.cc
+1 −0 googletest/test/gtest-typed-test_test.cc
+2 −2 googletest/test/gtest-unittest-api_test.cc
+97 −0 googletest/test/gtest_dirs_test.cc
+1 −0 googletest/test/gtest_pred_impl_unittest.cc
+7 −3 googletest/test/gtest_unittest.cc
+3 −1 googletest/test/gtest_xml_outfile2_test_.cc
2 changes: 1 addition & 1 deletion third_party_release
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ gRPC=v1.49.2
thrift=0.14.1
abseil=20220623.1
benchmark=v1.5.3
googletest=release-1.12.1
googletest=release-1.13.0
ms-gsl=v3.1.0-67-g6f45293
nlohmann-json=v3.10.5
opentelemetry-proto=v0.19.0
Expand Down

0 comments on commit 6bfa052

Please sign in to comment.