Skip to content

Commit

Permalink
pw_bluetooth_sapphire: Add sm 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: Id093c63085e3d136dec464e234da63af8f3eaaac
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/234038
Lint: Lint 🤖 <[email protected]>
Pigweed-Auto-Submit: Ben Lawson <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Reviewed-by: Faraaz Sareshwala <[email protected]>
  • Loading branch information
BenjaminLawson authored and CQ Bot Account committed Sep 5, 2024
1 parent 1c6ecb9 commit 1eb0901
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pw_bluetooth_sapphire/host/sm/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 @@ -73,9 +75,8 @@ cc_library(
],
)

cc_library(
name = "sm_test.lib",
testonly = True,
pw_cc_test(
name = "sm_test",
srcs = [
"ecdh_key_test.cc",
"error_test.cc",
Expand All @@ -94,15 +95,12 @@ cc_library(
"util_test.cc",
],
copts = COPTS,
tags = ["manual"],
visibility = ["//visibility:public"],
test_main = "//pw_bluetooth_sapphire/host/testing:gtest_main",
deps = [
":sm",
":testing",
"//pw_bluetooth_sapphire/host/hci:testing",
"//pw_bluetooth_sapphire/host/l2cap:testing",
"//pw_bluetooth_sapphire/host/testing",
"//pw_bluetooth_sapphire/host/testing:gtest_main",
],
alwayslink = 1,
)

0 comments on commit 1eb0901

Please sign in to comment.