Skip to content

Commit 7d9f398

Browse files
github-actions[bot]skyzh
authored andcommitted
bump googletest
Signed-off-by: Alex Chi <[email protected]>
1 parent fa97112 commit 7d9f398

File tree

156 files changed

+5432
-3834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+5432
-3834
lines changed

third_party/googletest/.github/ISSUE_TEMPLATE/00-bug_report.md

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Bug Report
2+
description: Let us know that something does not work as expected.
3+
title: "[Bug]: Please title this bug report"
4+
body:
5+
- type: textarea
6+
id: what-happened
7+
attributes:
8+
label: Describe the issue
9+
description: What happened, and what did you expect to happen?
10+
validations:
11+
required: true
12+
- type: textarea
13+
id: steps
14+
attributes:
15+
label: Steps to reproduce the problem
16+
description: It is important that we are able to reproduce the problem that you are experiencing. Please provide all code and relevant steps to reproduce the problem, including your `BUILD`/`CMakeLists.txt` file and build commands. Links to a GitHub branch or [godbolt.org](https://godbolt.org/) that demonstrate the problem are also helpful.
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: version
21+
attributes:
22+
label: What version of GoogleTest are you using?
23+
description: Please include the output of `git rev-parse HEAD` or the GoogleTest release version number that you are using.
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: os
28+
attributes:
29+
label: What operating system and version are you using?
30+
description: If you are using a Linux distribution please include the name and version of the distribution as well.
31+
validations:
32+
required: true
33+
- type: textarea
34+
id: compiler
35+
attributes:
36+
label: What compiler and version are you using?
37+
description: Please include the output of `gcc -v` or `clang -v`, or the equivalent for your compiler.
38+
validations:
39+
required: true
40+
- type: textarea
41+
id: buildsystem
42+
attributes:
43+
label: What build system are you using?
44+
description: Please include the output of `bazel --version` or `cmake --version`, or the equivalent for your build system.
45+
validations:
46+
required: true
47+
- type: textarea
48+
id: additional
49+
attributes:
50+
label: Additional context
51+
description: Add any other context about the problem here.
52+
validations:
53+
required: false

third_party/googletest/.github/ISSUE_TEMPLATE/10-feature_request.md

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Feature request
2+
description: Propose a new feature.
3+
title: "[FR]: Please title this feature request"
4+
labels: "enhancement"
5+
body:
6+
- type: textarea
7+
id: version
8+
attributes:
9+
label: Does the feature exist in the most recent commit?
10+
description: We recommend using the latest commit from GitHub in your projects.
11+
validations:
12+
required: true
13+
- type: textarea
14+
id: why
15+
attributes:
16+
label: Why do we need this feature?
17+
description: Ideally, explain why a combination of existing features cannot be used instead.
18+
validations:
19+
required: true
20+
- type: textarea
21+
id: proposal
22+
attributes:
23+
label: Describe the proposal.
24+
description: Include a detailed description of the feature, with usage examples.
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: platform
29+
attributes:
30+
label: Is the feature specific to an operating system, compiler, or build system version?
31+
description: If it is, please specify which versions.
32+
validations:
33+
required: true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
blank_issues_enabled: false
2+
contact_links:
3+
- name: Get Help
4+
url: https://github.com/google/googletest/discussions
5+
about: Please ask and answer questions here.

third_party/googletest/.github/workflows/gtest-ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,40 @@ on:
44
push:
55
pull_request:
66

7+
env:
8+
BAZEL_CXXOPTS: -std=c++14
9+
710
jobs:
811
Linux:
912
runs-on: ubuntu-latest
1013
steps:
1114

12-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1316
with:
1417
fetch-depth: 0
1518

1619
- name: Tests
17-
run: bazel test --test_output=errors //...
20+
run: bazel test --cxxopt=-std=c++14 --features=external_include_paths --test_output=errors ...
1821

19-
MacOs:
22+
macOS:
2023
runs-on: macos-latest
2124
steps:
2225

23-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2427
with:
2528
fetch-depth: 0
2629

2730
- name: Tests
28-
run: bazel test --test_output=errors //...
31+
run: bazel test --cxxopt=-std=c++14 --features=external_include_paths --test_output=errors ...
2932

3033

3134
Windows:
3235
runs-on: windows-latest
3336
steps:
3437

35-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v3
3639
with:
3740
fetch-depth: 0
3841

3942
- name: Tests
40-
run: bazel test --test_output=errors //...
43+
run: bazel test --cxxopt=/std:c++14 --features=external_include_paths --test_output=errors ...

third_party/googletest/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ Win32-Release/
2424
x64-Debug/
2525
x64-Release/
2626

27+
# VSCode files
28+
.cache/
29+
cmake-variants.yaml
30+
2731
# Ignore autoconf / automake files
2832
Makefile.in
2933
aclocal.m4

third_party/googletest/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ cc_library(
132132
}),
133133
deps = select({
134134
":has_absl": [
135+
"@com_google_absl//absl/container:flat_hash_set",
135136
"@com_google_absl//absl/debugging:failure_signal_handler",
136137
"@com_google_absl//absl/debugging:stacktrace",
137138
"@com_google_absl//absl/debugging:symbolize",

third_party/googletest/CMakeLists.txt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
# Note: CMake support is community-based. The maintainers do not use CMake
22
# internally.
33

4-
cmake_minimum_required(VERSION 3.5)
5-
6-
if (POLICY CMP0048)
7-
cmake_policy(SET CMP0048 NEW)
8-
endif (POLICY CMP0048)
9-
10-
if (POLICY CMP0077)
11-
cmake_policy(SET CMP0077 NEW)
12-
endif (POLICY CMP0077)
4+
cmake_minimum_required(VERSION 3.13)
135

146
project(googletest-distribution)
15-
set(GOOGLETEST_VERSION 1.12.1)
7+
set(GOOGLETEST_VERSION 1.14.0)
168

179
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
1810
set(CMAKE_CXX_EXTENSIONS OFF)
@@ -26,6 +18,7 @@ include(GNUInstallDirs)
2618
#Note that googlemock target already builds googletest
2719
option(BUILD_GMOCK "Builds the googlemock subproject" ON)
2820
option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON)
21+
option(GTEST_HAS_ABSL "Use Abseil and RE2. Requires Abseil and RE2 to be separately added to the build." OFF)
2922

3023
if(BUILD_GMOCK)
3124
add_subdirectory( googlemock )

third_party/googletest/CONTRIBUTING.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ fairly rigid coding style, as defined by the
8080
[google-styleguide](https://github.com/google/styleguide) project. All patches
8181
will be expected to conform to the style outlined
8282
[here](https://google.github.io/styleguide/cppguide.html). Use
83-
[.clang-format](https://github.com/google/googletest/blob/master/.clang-format)
84-
to check your formatting.
83+
[.clang-format](https://github.com/google/googletest/blob/main/.clang-format) to
84+
check your formatting.
8585

8686
## Requirements for Contributors
8787

8888
If you plan to contribute a patch, you need to build Google Test, Google Mock,
8989
and their own tests from a git checkout, which has further requirements:
9090

91-
* [Python](https://www.python.org/) v2.3 or newer (for running some of the
91+
* [Python](https://www.python.org/) v3.6 or newer (for running some of the
9292
tests and re-generating certain source files from templates)
9393
* [CMake](https://cmake.org/) v2.8.12 or newer
9494

@@ -102,30 +102,40 @@ To make sure your changes work as intended and don't break existing
102102
functionality, you'll want to compile and run Google Test and GoogleMock's own
103103
tests. For that you can use CMake:
104104

105-
mkdir mybuild
106-
cd mybuild
107-
cmake -Dgtest_build_tests=ON -Dgmock_build_tests=ON ${GTEST_REPO_DIR}
105+
```
106+
mkdir mybuild
107+
cd mybuild
108+
cmake -Dgtest_build_tests=ON -Dgmock_build_tests=ON ${GTEST_REPO_DIR}
109+
```
108110

109111
To choose between building only Google Test or Google Mock, you may modify your
110112
cmake command to be one of each
111113

112-
cmake -Dgtest_build_tests=ON ${GTEST_DIR} # sets up Google Test tests
113-
cmake -Dgmock_build_tests=ON ${GMOCK_DIR} # sets up Google Mock tests
114+
```
115+
cmake -Dgtest_build_tests=ON ${GTEST_DIR} # sets up Google Test tests
116+
cmake -Dgmock_build_tests=ON ${GMOCK_DIR} # sets up Google Mock tests
117+
```
114118

115119
Make sure you have Python installed, as some of Google Test's tests are written
116120
in Python. If the cmake command complains about not being able to find Python
117121
(`Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)`), try telling it
118122
explicitly where your Python executable can be found:
119123

120-
cmake -DPYTHON_EXECUTABLE=path/to/python ...
124+
```
125+
cmake -DPYTHON_EXECUTABLE=path/to/python ...
126+
```
121127

122128
Next, you can build Google Test and / or Google Mock and all desired tests. On
123129
\*nix, this is usually done by
124130

125-
make
131+
```
132+
make
133+
```
126134

127135
To run the tests, do
128136

129-
make test
137+
```
138+
make test
139+
```
130140

131141
All tests should pass.

0 commit comments

Comments
 (0)