summaryrefslogtreecommitdiffstats
path: root/googlemock/test/BUILD.bazel
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-01-26 21:30:57 (GMT)
committerGennadiy Civil <misterg@google.com>2018-01-26 21:30:57 (GMT)
commit6c0c389601fc823f2e4c1ae27b39cb13d5d0a7d4 (patch)
tree7e8e18070115a3b8d447211ee2cedf37b944a9b5 /googlemock/test/BUILD.bazel
parent92c93802e13e84f4d916f45dd99417cdeb38841b (diff)
downloadgoogletest-6c0c389601fc823f2e4c1ae27b39cb13d5d0a7d4.zip
googletest-6c0c389601fc823f2e4c1ae27b39cb13d5d0a7d4.tar.gz
googletest-6c0c389601fc823f2e4c1ae27b39cb13d5d0a7d4.tar.bz2
Adding tests to googlemock bazelrefs/pull/1430/head
Diffstat (limited to 'googlemock/test/BUILD.bazel')
-rw-r--r--googlemock/test/BUILD.bazel72
1 files changed, 70 insertions, 2 deletions
diff --git a/googlemock/test/BUILD.bazel b/googlemock/test/BUILD.bazel
index 4c2df9e..0fe72a6 100644
--- a/googlemock/test/BUILD.bazel
+++ b/googlemock/test/BUILD.bazel
@@ -1,4 +1,4 @@
-# Copyright 2017 Google Inc.
+# Copyright 2017 Google Inc.
# All Rights Reserved.
#
#
@@ -29,7 +29,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Author: misterg@google.com (Gennadiy Civil)
-#
+#
# Bazel Build for Google C++ Testing Framework(Google Test)-googlemock
licenses(["notice"])
@@ -53,3 +53,71 @@ cc_test(
}),
deps = ["//:gtest"],
)
+
+# Py tests
+
+py_library(
+ name = "gmock_test_utils",
+ testonly = 1,
+ srcs = ["gmock_test_utils.py"],
+)
+
+cc_binary(
+ name = "gmock_leak_test_",
+ testonly = 1,
+ srcs = ["gmock_leak_test_.cc"],
+ deps = [
+ "//:gtest_main",
+ ],
+)
+
+py_test(
+ name = "gmock_leak_test",
+ size = "medium",
+ srcs = ["gmock_leak_test.py"],
+ data = [
+ ":gmock_leak_test_",
+ ":gmock_test_utils",
+ ],
+)
+
+cc_test(
+ name = "gmock_link_test",
+ size = "small",
+ srcs = [
+ "gmock_link2_test.cc",
+ "gmock_link_test.cc",
+ "gmock_link_test.h",
+ ],
+ deps = [
+ "//:gtest_main",
+ ],
+)
+
+cc_binary(
+ name = "gmock_output_test_",
+ srcs = ["gmock_output_test_.cc"],
+ deps = [
+ "//:gtest",
+ ],
+)
+
+py_test(
+ name = "gmock_output_test",
+ size = "medium",
+ srcs = ["gmock_output_test.py"],
+ data = [
+ ":gmock_output_test_",
+ ":gmock_output_test_golden.txt",
+ ],
+ deps = [":gmock_test_utils"],
+)
+
+cc_test(
+ name = "gmock_test",
+ size = "small",
+ srcs = ["gmock_test.cc"],
+ deps = [
+ "//:gtest_main",
+ ],
+)