diff options
author | krzysio <krzysio@google.com> | 2018-11-06 15:37:19 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-11-07 19:37:18 (GMT) |
commit | 105579a6e43908bc88a289d309492eda8be896be (patch) | |
tree | a280f427b5c0bf14398c9537a0998ce2fe1bdb44 /googlemock/test/BUILD.bazel | |
parent | 529c2c6f4af29dadb8ee5cddf6a7919caa5ca5f6 (diff) | |
download | googletest-105579a6e43908bc88a289d309492eda8be896be.zip googletest-105579a6e43908bc88a289d309492eda8be896be.tar.gz googletest-105579a6e43908bc88a289d309492eda8be896be.tar.bz2 |
Googletest export
Improve Bazel build files.
New target gtest_prod allows access to the FRIEND_TEST macro without depending on the entirety of GTest in production executables. Additionally, duplicate config_setting rules were removed and formatting was adjusted.
PiperOrigin-RevId: 220279205
Diffstat (limited to 'googlemock/test/BUILD.bazel')
-rw-r--r-- | googlemock/test/BUILD.bazel | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/googlemock/test/BUILD.bazel b/googlemock/test/BUILD.bazel index 0fe72a6..95a6c26 100644 --- a/googlemock/test/BUILD.bazel +++ b/googlemock/test/BUILD.bazel @@ -34,28 +34,19 @@ licenses(["notice"]) -""" gmock own tests """ - +# Tests for GMock itself cc_test( name = "gmock_all_test", size = "small", - srcs = glob( - include = [ - "gmock-*.cc", - ], - ), + srcs = glob(include = ["gmock-*.cc"]), linkopts = select({ "//:windows": [], - "//:windows_msvc": [], - "//conditions:default": [ - "-pthread", - ], + "//conditions:default": ["-pthread"], }), deps = ["//:gtest"], ) -# Py tests - +# Python tests py_library( name = "gmock_test_utils", testonly = 1, @@ -66,9 +57,7 @@ cc_binary( name = "gmock_leak_test_", testonly = 1, srcs = ["gmock_leak_test_.cc"], - deps = [ - "//:gtest_main", - ], + deps = ["//:gtest_main"], ) py_test( @@ -89,17 +78,13 @@ cc_test( "gmock_link_test.cc", "gmock_link_test.h", ], - deps = [ - "//:gtest_main", - ], + deps = ["//:gtest_main"], ) cc_binary( name = "gmock_output_test_", srcs = ["gmock_output_test_.cc"], - deps = [ - "//:gtest", - ], + deps = ["//:gtest"], ) py_test( @@ -117,7 +102,5 @@ cc_test( name = "gmock_test", size = "small", srcs = ["gmock_test.cc"], - deps = [ - "//:gtest_main", - ], + deps = ["//:gtest_main"], ) |