Skip to content

Commit

Permalink
pw_bluetooth_sapphire: Add sdp 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/...
      --platforms=//pw_unit_test:googletest_platform
      --@pigweed//pw_unit_test:backend=@pigweed//pw_unit_test:googletest
Change-Id: I36a2594572c10cb3df61c043a31b4e41433e2ac9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/233947
Lint: Lint 🤖 <[email protected]>
Reviewed-by: Faraaz Sareshwala <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Pigweed-Auto-Submit: Ben Lawson <[email protected]>
  • Loading branch information
BenjaminLawson authored and CQ Bot Account committed Sep 5, 2024
1 parent 1d6978a commit 1c6ecb9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pw_bluetooth_sapphire/host/sdp/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.

load("@pigweed//pw_build:pigweed.bzl", "pw_cc_test")

package(default_visibility = ["//visibility:public"])

exports_files(glob(["**/*"]))
Expand Down Expand Up @@ -45,9 +47,8 @@ cc_library(
],
)

cc_library(
name = "sdp_test.lib",
testonly = True,
pw_cc_test(
name = "sdp_test",
srcs = [
"client_test.cc",
"data_element_test.cc",
Expand All @@ -56,14 +57,11 @@ cc_library(
"service_discoverer_test.cc",
"service_record_test.cc",
],
tags = ["manual"],
visibility = ["//visibility:public"],
test_main = "//pw_bluetooth_sapphire/host/testing:gtest_main",
deps = [
":sdp",
"//pw_bluetooth_sapphire/host/common",
"//pw_bluetooth_sapphire/host/l2cap:testing",
"//pw_bluetooth_sapphire/host/testing",
"//pw_bluetooth_sapphire/host/testing:gtest_main",
],
alwayslink = 1,
)

0 comments on commit 1c6ecb9

Please sign in to comment.