Skip to content

Commit

Permalink
pw_bluetooth_sapphire: Add hci 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: I4cd5043ff9c13fceca80cfee64011ab9cd191e9f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/234033
Pigweed-Auto-Submit: Ben Lawson <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Lint: Lint 🤖 <[email protected]>
Reviewed-by: Faraaz Sareshwala <[email protected]>
  • Loading branch information
BenjaminLawson authored and CQ Bot Account committed Sep 4, 2024
1 parent a42f669 commit 5339584
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pw_bluetooth_sapphire/host/hci/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 @@ -96,3 +98,28 @@ cc_library(
],
alwayslink = 1,
)

pw_cc_test(
name = "hci-spec_test",
srcs = [
"advertising_handle_map_test.cc",
"connection_test.cc",
"extended_low_energy_advertiser_test.cc",
"extended_low_energy_scanner_test.cc",
"legacy_low_energy_advertiser_test.cc",
"legacy_low_energy_scanner_test.cc",
"low_energy_advertiser_test.cc",
"low_energy_connector_test.cc",
"low_energy_multiple_advertising_test.cc",
"low_energy_scanner_test.cc",
"sequential_command_runner_test.cc",
],
copts = COPTS,
test_main = "//pw_bluetooth_sapphire/host/testing:gtest_main",
deps = [
":hci",
":testing",
"//pw_bluetooth_sapphire/host/testing",
"@pigweed//pw_bluetooth:emboss_hci_test",
],
)

0 comments on commit 5339584

Please sign in to comment.