Skip to content
Snippets Groups Projects
Commit f7ca3008 authored by Matthias Greuter's avatar Matthias Greuter
Browse files

Cleanup bazel target(s)

- Remove testing-suppressions dependency from mantle api test target
- Do not use glob when not needed
- Rename bazel target to test file name (keep it in sync)
parent 840c01ab
No related branches found
No related tags found
1 merge request!27Cleanup bazel target(s)
...@@ -10,31 +10,17 @@ ...@@ -10,31 +10,17 @@
cc_library( cc_library(
name = "mantle_api", name = "mantle_api",
hdrs = glob([ hdrs = glob(["include/**/*.h"]),
"include/**/*.h", includes = ["include"],
]), visibility = ["//visibility:public"],
includes = [ deps = ["@units"],
"include",
],
visibility = [
"//visibility:public",
],
deps = [
"@units",
],
) )
cc_library( cc_library(
name = "mantle_api_test_utils", name = "test_utils",
hdrs = glob([ hdrs = ["test/MantleAPI/Test/test_utils.h"],
"test/**/*.h", includes = ["test"],
]), visibility = ["//visibility:public"],
includes = [
"test",
],
visibility = [
"//visibility:public",
],
deps = [ deps = [
":mantle_api", ":mantle_api",
"@googletest//:gtest_main", "@googletest//:gtest_main",
...@@ -42,14 +28,8 @@ cc_library( ...@@ -42,14 +28,8 @@ cc_library(
) )
cc_test( cc_test(
name = "mantle_api_test", name = "interface_test",
timeout = "short", timeout = "short",
srcs = ["test/interface_test.cpp"], srcs = ["test/interface_test.cpp"],
data = [ deps = [":test_utils"],
"//Core/Service/Testing:sanitizer-suppressions",
],
tags = ["test"],
deps = [
":mantle_api_test_utils",
],
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment