From 1c6ecb99c9eb472bae1e3c93fcc6a4d177ed1180 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 5 Sep 2024 17:06:32 +0000 Subject: [PATCH] pw_bluetooth_sapphire: Add sdp Bazel unit test target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 🤖 Reviewed-by: Faraaz Sareshwala Commit-Queue: Auto-Submit Pigweed-Auto-Submit: Ben Lawson --- pw_bluetooth_sapphire/host/sdp/BUILD.bazel | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pw_bluetooth_sapphire/host/sdp/BUILD.bazel b/pw_bluetooth_sapphire/host/sdp/BUILD.bazel index 73a2c1b04c..7e756df44c 100644 --- a/pw_bluetooth_sapphire/host/sdp/BUILD.bazel +++ b/pw_bluetooth_sapphire/host/sdp/BUILD.bazel @@ -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(["**/*"])) @@ -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", @@ -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, )