From f56b3e7d3905c041edff2cead6ac6ddbff5f28de Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 5 Sep 2024 18:24:51 +0000 Subject: [PATCH] pw_bluetooth_sapphire: Add transport 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: I9f66bf89bc4fff1dd787aa633f4f0309fa246dec Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/234092 Reviewed-by: Faraaz Sareshwala Commit-Queue: Ben Lawson Pigweed-Auto-Submit: Ben Lawson Lint: Lint 🤖 Reviewed-by: Ali Saeed --- pw_bluetooth_sapphire/host/transport/BUILD.bazel | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pw_bluetooth_sapphire/host/transport/BUILD.bazel b/pw_bluetooth_sapphire/host/transport/BUILD.bazel index c19ff57b6c..a3bc4b3edf 100644 --- a/pw_bluetooth_sapphire/host/transport/BUILD.bazel +++ b/pw_bluetooth_sapphire/host/transport/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(["**/*"])) @@ -79,9 +81,8 @@ filegroup( ], ) -cc_library( - name = "transport_test.lib", - testonly = True, +pw_cc_test( + name = "transport_test", srcs = [ "acl_data_channel_test.cc", "command_channel_test.cc", @@ -94,12 +95,9 @@ cc_library( "slab_allocators_test.cc", "transport_test.cc", ], - tags = ["manual"], - visibility = ["//visibility:public"], + test_main = "//pw_bluetooth_sapphire/host/testing:gtest_main", deps = [ ":transport", "//pw_bluetooth_sapphire/host/testing", - "//pw_bluetooth_sapphire/host/testing:gtest_main", ], - alwayslink = 1, )