aboutsummaryrefslogtreecommitdiffstats
path: root/BUILD.bazel
diff options
context:
space:
mode:
authormisterg <misterg@google.com>2017-08-02 14:36:39 -0400
committermisterg <misterg@google.com>2017-08-02 14:36:39 -0400
commit6615f7df11c812ed15d0be13a4d4c92aaee26dfb (patch)
treeab6166849f0b390ee31f338bcad40f1d04995b4f /BUILD.bazel
parentb3edada2907032f15b1a61e6a49f4e3ece091888 (diff)
downloadgoogletest-6615f7df11c812ed15d0be13a4d4c92aaee26dfb.tar.gz
googletest-6615f7df11c812ed15d0be13a4d4c92aaee26dfb.tar.bz2
googletest-6615f7df11c812ed15d0be13a4d4c92aaee26dfb.zip
WIP
Diffstat (limited to 'BUILD.bazel')
-rw-r--r--BUILD.bazel38
1 files changed, 15 insertions, 23 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index aa53a135..4977d1be 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -86,7 +86,7 @@ cc_library(
deps = [":gmock"],
)
-"""gtest own tests """
+""" gtest own tests """
#on windows exclude gtest-tuple.h and gtest-tuple_test.cc
filegroup(
@@ -157,8 +157,7 @@ cc_test(
deps = [":gtest_main"],
)
-""" these googletest tests have their own main()"""
-
+#These googletest tests have their own main()
cc_test(
name = "gtest-death-test",
size = "small",
@@ -208,8 +207,7 @@ cc_test(
],
)
-""" googletest samples"""
-
+# The following rules build samples of how to use gTest.
cc_library(
name = "gtest_sample_lib",
srcs = [
@@ -224,41 +222,35 @@ cc_library(
"googletest/samples/sample3-inl.h",
"googletest/samples/sample4.h",
],
- deps = ["gtest"],
)
cc_test(
name = "gtest_samples",
size = "small",
srcs = glob(
+ # All Samples here except
+ # Sample9 is designed to fail on purpose
+ # Sample10 can be run with --check_for_leaks command line flag, should be separate
include = [
- "googletest/samples/sample*.cc",
- "googletest/samples/sample*.h",
- ],
- exclude = [
- "googletest/samples/sample1.cc",
- "googletest/samples/sample2.cc",
- "googletest/samples/sample4.cc",
- "googletest/samples/prime_tables.h",
- "googletest/samples/sample1.h",
- "googletest/samples/sample2.h",
- "googletest/samples/sample3-inl.h",
- "googletest/samples/sample4.h",
- "googletest/samples/sample9_unittest.cc",
- "googletest/samples/sample10_unittest.cc",
+ "googletest/samples/sample1_unitest.cc",
+ "googletest/samples/sample2_unitest.cc",
+ "googletest/samples/sample3_unitest.cc",
+ "googletest/samples/sample4_unitest.cc",
+ "googletest/samples/sample5_unitest.cc",
+ "googletest/samples/sample6_unitest.cc",
+ "googletest/samples/sample7_unitest.cc",
+ "googletest/samples/sample8_unitest.cc",
],
),
includes = [
"googletest/samples",
],
deps = [
- ":gtest_sample_lib",
":gtest_main",
+ ":gtest_sample_lib",
],
)
-""" googletest samples 9 and 10 have their own main()"""
-
cc_test(
name = "gtest_sample9",
size = "small",