summaryrefslogtreecommitdiffstats
path: root/googletest/test/BUILD.bazel
diff options
context:
space:
mode:
authorRohan Joyce <rfj@google.com>2018-06-07 16:17:33 (GMT)
committerRohan Joyce <rfj@google.com>2018-06-14 19:45:55 (GMT)
commit0563b52d3acc5661792cf1f8c78661a050afc883 (patch)
treef038bb048175150c0cd0833de4d551b1bc688c5b /googletest/test/BUILD.bazel
parentdea79290af988a71b9f566550237266a8f1e21a7 (diff)
downloadgoogletest-0563b52d3acc5661792cf1f8c78661a050afc883.zip
googletest-0563b52d3acc5661792cf1f8c78661a050afc883.tar.gz
googletest-0563b52d3acc5661792cf1f8c78661a050afc883.tar.bz2
Eliminate GTEST_TEST_FILTER_ENV_VAR_.refs/pull/1622/head
GTEST_TEST_FILTER_ENV_VAR_ was used to specify an environment variable to obtain the default test filter from. By default it was unset which broke "--test_filter" for bazel. This CL eliminates GTEST_TEST_FILTER_ENV_VAR_ and explicitly obtains the default test filter from the environment variable TESTBRIDGE_TEST_ONLY if it exists.
Diffstat (limited to 'googletest/test/BUILD.bazel')
-rw-r--r--googletest/test/BUILD.bazel16
1 files changed, 16 insertions, 0 deletions
diff --git a/googletest/test/BUILD.bazel b/googletest/test/BUILD.bazel
index 6ea18ec..365a855 100644
--- a/googletest/test/BUILD.bazel
+++ b/googletest/test/BUILD.bazel
@@ -378,3 +378,19 @@ py_test(
data = [":gtest_uninitialized_test_"],
deps = [":gtest_test_utils"],
)
+
+cc_binary(
+ name = "gtest_testbridge_test_",
+ testonly = 1,
+ srcs = ["gtest_testbridge_test_.cc"],
+ deps = ["//:gtest_main"],
+)
+
+# Tests that filtering via testbridge works
+py_test(
+ name = "gtest_testbridge_test",
+ size = "small",
+ srcs = ["gtest_testbridge_test.py"],
+ data = [":gtest_testbridge_test_"],
+ deps = [":gtest_test_utils"],
+)