Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

Commit adbe294

Browse files
Merge pull request #220 from acompany-develop/feature/sakamoto/update_gtest
update googletest 1.7.0 -> 1.10.0
2 parents 36c3ca8 + eec46bf commit adbe294

8 files changed

Lines changed: 27 additions & 24 deletions

File tree

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
cc_library(
22
name = "main",
33
srcs = glob(
4-
["src/*.cc"],
5-
exclude = ["src/gtest-all.cc"]
4+
["googletest/src/*.cc"],
5+
exclude = ["googletest/src/gtest-all.cc"]
66
),
77
hdrs = glob([
8-
"include/**/*.h",
9-
"src/*.h"
8+
"googletest/include/**/*.h",
9+
"googletest/src/*.h"
1010
]),
11-
copts = ["-Iexternal/gtest/include"],
11+
includes = [
12+
"googletest",
13+
"googletest/include",
14+
],
1215
linkopts = ["-pthread"],
1316
visibility = ["//visibility:public"],
1417
)

packages/server/computation_container/WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
55
##### gtest
66
http_archive(
77
name = "gtest",
8-
url = "https://github.com/google/googletest/archive/release-1.7.0.zip",
9-
sha256 = "b58cb7547a28b2c718d1e38aee18a3659c9e3ff52440297e965f5edffe34b6d0",
8+
url = "https://github.com/google/googletest/archive/release-1.10.0.zip",
9+
sha256 = "94c634d499558a76fa649edb13721dce6e98fb1e7018dfaeba3cd7a083945e91",
1010
build_file = "@//:Gtest.BUILD",
11-
strip_prefix = "googletest-release-1.7.0",
11+
strip_prefix = "googletest-release-1.10.0",
1212
)
1313

1414
# Enable proto

packages/server/computation_container/test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cc_library(
1919
srcs = [
2020
"computation_test.cpp"
2121
],
22-
copts = ["-Iexternal/gtest/include"],
22+
copts = ["-Iexternal/gtest/googletest/include"],
2323
hdrs = [
2424
"computation_test.hpp",
2525
],

packages/server/computation_container/test/benchmark/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cc_library(
1414
srcs = [
1515
"share_benchmark.hpp",
1616
],
17-
copts = ["-Iexternal/gtest/include"],
17+
copts = ["-Iexternal/gtest/googletest/include"],
1818
deps = [
1919
"@gtest//:main",
2020
"//random:random",

packages/server/computation_container/test/benchmark/computation_benchmark/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cc_library(
33
srcs = [
44
"computation_benchmark.cpp"
55
],
6-
copts = ["-Iexternal/gtest/include","-DDEBUG"],
6+
copts = ["-Iexternal/gtest/googletest/include","-DDEBUG"],
77
hdrs = [
88
"computation_benchmark.hpp",
99
],

packages/server/computation_container/test/integration_test/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cc_library(
44
srcs = [
55
"share_test.hpp",
66
],
7-
copts = ["-Iexternal/gtest/include"],
7+
copts = ["-Iexternal/gtest/googletest/include"],
88
deps = [
99
"@gtest//:main",
1010
"//random:random",
@@ -57,7 +57,7 @@ cc_library(
5757
srcs = [
5858
"read_triple_from_bts_test.hpp",
5959
],
60-
copts = ["-Iexternal/gtest/include"],
60+
copts = ["-Iexternal/gtest/googletest/include"],
6161
deps = [
6262
"@gtest//:main",
6363
"//triple_handler:triple_handler",

packages/server/computation_container/test/integration_test/computation_test/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cc_library(
33
srcs = [
44
"computation_test.cpp"
55
],
6-
copts = ["-Iexternal/gtest/include","-DDEBUG"],
6+
copts = ["-Iexternal/gtest/googletest/include","-DDEBUG"],
77
hdrs = [
88
"computation_test.hpp",
99
],

packages/server/computation_container/test/unit_test/BUILD

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cc_test(
33
srcs = [
44
"math_test.cpp",
55
],
6-
copts = ["-Iexternal/gtest/include"],
6+
copts = ["-Iexternal/gtest/googletest/include"],
77
deps = [
88
"@gtest//:main",
99
"@com_github_grpc_grpc//:grpc++",
@@ -21,7 +21,7 @@ cc_test(
2121
srcs = [
2222
"share_test.cpp",
2323
],
24-
copts = ["-Iexternal/gtest/include"],
24+
copts = ["-Iexternal/gtest/googletest/include"],
2525
deps = [
2626
"@gtest//:main",
2727
"@com_github_grpc_grpc//:grpc++",
@@ -37,7 +37,7 @@ cc_test(
3737
srcs = [
3838
"random_test.cpp",
3939
],
40-
copts = ["-Iexternal/gtest/include"],
40+
copts = ["-Iexternal/gtest/googletest/include"],
4141
deps = [
4242
"@gtest//:main",
4343
"//random:random",
@@ -50,7 +50,7 @@ cc_test(
5050
srcs = [
5151
"ctoc_test.cpp",
5252
],
53-
copts = ["-Iexternal/gtest/include"],
53+
copts = ["-Iexternal/gtest/googletest/include"],
5454
deps = [
5555
"@gtest//:main",
5656
"//server/computation_to_computation_container:server",
@@ -68,7 +68,7 @@ cc_test(
6868
srcs = [
6969
"fixed_point_test.cpp",
7070
],
71-
copts = ["-Iexternal/gtest/include"],
71+
copts = ["-Iexternal/gtest/googletest/include"],
7272
deps = [
7373
"@gtest//:main",
7474
"//fixed_point:fixed_point",
@@ -81,7 +81,7 @@ cc_test(
8181
srcs = [
8282
"transaction_queue_test.cpp"
8383
],
84-
copts = ["-Iexternal/gtest/include"],
84+
copts = ["-Iexternal/gtest/googletest/include"],
8585
deps = [
8686
"@gtest//:main",
8787
"//transaction_queue:transaction_queue"
@@ -93,7 +93,7 @@ cc_test(
9393
srcs = [
9494
"csprng_test.cpp"
9595
],
96-
copts = ["-Iexternal/gtest/include",],
96+
copts = ["-Iexternal/gtest/googletest/include",],
9797
deps = [
9898
"@gtest//:main",
9999
"//random:csprng",
@@ -106,7 +106,7 @@ cc_test(
106106
srcs = [
107107
"log_test.cpp",
108108
],
109-
copts = ["-Iexternal/gtest/include"],
109+
copts = ["-Iexternal/gtest/googletest/include"],
110110
deps = [
111111
"@gtest//:main",
112112
"//logging:log",
@@ -119,7 +119,7 @@ cc_test(
119119
srcs = [
120120
"ctodb_test.cpp",
121121
],
122-
copts = ["-Iexternal/gtest/include"],
122+
copts = ["-Iexternal/gtest/googletest/include"],
123123
deps = [
124124
"@gtest//:main",
125125
"//client/computation_to_db:client",
@@ -136,7 +136,7 @@ cc_test(
136136
srcs = [
137137
"value_table_test.cpp",
138138
],
139-
copts = ["-Iexternal/gtest/include"],
139+
copts = ["-Iexternal/gtest/googletest/include"],
140140
deps = [
141141
"@gtest//:main",
142142
"//value_table:valuetable",

0 commit comments

Comments
 (0)