diff options
author | dominic <510002+dmah42@users.noreply.github.com> | 2023-08-24 17:50:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 17:50:56 +0100 |
commit | 9f254bddf096f384159697654fcef1940188f2ae (patch) | |
tree | 37a3a005cc755e2057cf5e0e74a03b3d019115fd | |
parent | 6dd50bb6061d9bf9c7053032334ccb72f6438d09 (diff) | |
parent | dfc8a92abc88a9d630a9f8e01c678fedde4c3090 (diff) | |
download | google-benchmark-9f254bddf096f384159697654fcef1940188f2ae.tar.gz |
Merge branch 'main' into stat-median
-rw-r--r-- | test/BUILD | 27 |
1 files changed, 22 insertions, 5 deletions
@@ -49,29 +49,48 @@ cc_library( ], ) +# Tests that use gtest. These rely on `gtest_main`. [ cc_test( name = test_src[:-len(".cc")], size = "small", srcs = [test_src], - args = TEST_ARGS + PER_SRC_TEST_ARGS.get(test_src, []), copts = select({ "//:windows": [], "//conditions:default": TEST_COPTS, }) + PER_SRC_COPTS.get(test_src, []), deps = [ - ":output_test_helper", "//:benchmark", "//:benchmark_internal_headers", "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], + ) + for test_src in glob(["*_gtest.cc"]) +] + +# Tests that do not use gtest. These have their own `main` defined. +[ + cc_test( + name = test_src[:-len(".cc")], + size = "small", + srcs = [test_src], + args = TEST_ARGS + PER_SRC_TEST_ARGS.get(test_src, []), + copts = select({ + "//:windows": [], + "//conditions:default": TEST_COPTS, + }) + PER_SRC_COPTS.get(test_src, []), + deps = [ + ":output_test_helper", + "//:benchmark", + "//:benchmark_internal_headers", + ], # FIXME: Add support for assembly tests to bazel. # See Issue #556 # https://github.com/google/benchmark/issues/556 ) for test_src in glob( - ["*test.cc"], + ["*_test.cc"], exclude = [ "*_assembly_test.cc", "cxx03_test.cc", @@ -93,8 +112,6 @@ cc_test( ":output_test_helper", "//:benchmark", "//:benchmark_internal_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", ], ) |