Skip to content

Commit

Permalink
pw_bluetooth_sapphire: Add att Bazel unit test target
Browse files Browse the repository at this point in the history
Bug: b/359241441
Test: bazel test //pw_bluetooth_sapphire/host/att:att_test
      --platforms=//pw_unit_test:googletest_platform
      --@pigweed//pw_unit_test:backend=@pigweed//pw_unit_test:googletest
Change-Id: I2072bc1dac7869c025ac8ce9ee7f546f5e8dbd9e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/234052
Commit-Queue: Auto-Submit <[email protected]>
Reviewed-by: Faraaz Sareshwala <[email protected]>
Lint: Lint 🤖 <[email protected]>
Pigweed-Auto-Submit: Ben Lawson <[email protected]>
  • Loading branch information
BenjaminLawson authored and CQ Bot Account committed Sep 4, 2024
1 parent 5bb6580 commit 14d05ca
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pw_bluetooth_sapphire/host/att/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations under
# the License.

load("@pigweed//pw_build:pigweed.bzl", "pw_cc_test")
load("//pw_bluetooth_sapphire/host:variables.bzl", "COPTS")

package(default_visibility = ["//visibility:public"])
Expand Down Expand Up @@ -52,9 +53,8 @@ cc_library(
],
)

cc_library(
name = "att_test.lib",
testonly = True,
pw_cc_test(
name = "att_test",
srcs = [
"attribute_test.cc",
"bearer_test.cc",
Expand All @@ -63,12 +63,9 @@ cc_library(
"permissions_test.cc",
],
copts = COPTS,
tags = ["manual"],
visibility = ["//visibility:public"],
test_main = "//pw_bluetooth_sapphire/host/testing:gtest_main",
deps = [
":att",
"//pw_bluetooth_sapphire/host/l2cap:testing",
"//pw_bluetooth_sapphire/host/testing:gtest_main",
],
alwayslink = 1,
)

0 comments on commit 14d05ca

Please sign in to comment.