Skip to content

Commit

Permalink
pw_bluetooth_sapphire: Add gap 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: I822c0ec08a751c5d46bb2be2d914dd4511df7318
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/234053
Commit-Queue: Auto-Submit <[email protected]>
Lint: Lint 🤖 <[email protected]>
Reviewed-by: Faraaz Sareshwala <[email protected]>
Pigweed-Auto-Submit: Ben Lawson <[email protected]>
  • Loading branch information
BenjaminLawson authored and CQ Bot Account committed Sep 4, 2024
1 parent 495ac11 commit 25e471b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pw_bluetooth_sapphire/host/gap/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 @@ -97,9 +99,8 @@ cc_library(
],
)

cc_library(
name = "gap_test.lib",
testonly = True,
pw_cc_test(
name = "gap_test",
srcs = [
"adapter_test.cc",
"android_vendor_capabilities_test.cc",
Expand All @@ -122,8 +123,7 @@ cc_library(
"types_test.cc",
],
copts = COPTS,
tags = ["manual"],
visibility = ["//visibility:public"],
test_main = "//pw_bluetooth_sapphire/host/testing:gtest_main",
deps = [
":gap",
":testing",
Expand All @@ -134,7 +134,5 @@ cc_library(
"//pw_bluetooth_sapphire/host/sm",
"//pw_bluetooth_sapphire/host/sm:testing",
"//pw_bluetooth_sapphire/host/testing",
"//pw_bluetooth_sapphire/host/testing:gtest_main",
],
alwayslink = 1,
)

0 comments on commit 25e471b

Please sign in to comment.