xref: /aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/fuchsia/BUILD.bazel (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1# Copyright 2024 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15load(
16    "@fuchsia_infra//infra:infra.bzl",
17    "FUCHSIA_TEST_TARGET",
18    "fuchsia_builder_group",
19    "fuchsia_test_group",
20)
21load("@rules_license//rules:license.bzl", "license")
22
23license(
24    name = "license_fuchsia",
25    package_name = "pw_bluetooth_sapphire (Fuchsia)",
26    license_text = "@pigweed//:LICENSE",
27)
28
29qemu_tests = [
30    "//pw_bluetooth_sapphire/fuchsia/bt_hci_virtual:test_pkg",
31    "//pw_bluetooth_sapphire/fuchsia/bt_host:test_pkg",
32    "//pw_bluetooth_sapphire/fuchsia/host/att:test_pkg",
33    "//pw_bluetooth_sapphire/fuchsia/host/common:test_pkg",
34    "//pw_bluetooth_sapphire/fuchsia/host/controllers:test_pkg",
35    "//pw_bluetooth_sapphire/fuchsia/host/fidl:test_pkg",
36    "//pw_bluetooth_sapphire/fuchsia/host/gap:test_pkg",
37    "//pw_bluetooth_sapphire/fuchsia/host/gatt:test_pkg",
38    "//pw_bluetooth_sapphire/fuchsia/host/hci:test_pkg",
39    "//pw_bluetooth_sapphire/fuchsia/host/hci-spec:test_pkg",
40    "//pw_bluetooth_sapphire/fuchsia/host/iso:test_pkg",
41    "//pw_bluetooth_sapphire/fuchsia/host/l2cap:test_pkg",
42    "//pw_bluetooth_sapphire/fuchsia/host/sco:test_pkg",
43    "//pw_bluetooth_sapphire/fuchsia/host/sdp:test_pkg",
44    "//pw_bluetooth_sapphire/fuchsia/host/sm:test_pkg",
45    "//pw_bluetooth_sapphire/fuchsia/host/socket:test_pkg",
46    "//pw_bluetooth_sapphire/fuchsia/host/testing:test_pkg",
47    "//pw_bluetooth_sapphire/fuchsia/host/transport:test_pkg",
48    "//pw_bluetooth_sapphire/fuchsia/lib/fidl:test_pkg",
49    "//pw_async_fuchsia:test_pkg",
50    "//pw_random_fuchsia:test_pkg",
51]
52
53fuchsia_test_group(
54    name = "tests_qemu",
55    # Disable luci-auth as the CQ builder environment is not authenticated.
56    luci_auth_enabled = False,
57    product_bundle = "@fuchsia_products//:core.x64",
58    test_target = FUCHSIA_TEST_TARGET.QEMU,
59    deps = qemu_tests,
60)
61
62# buildifier: leave-alone
63fuchsia_builder_group(
64    name = "infra",
65    build_only = [
66    ],
67    test_groups = [
68        ":tests_qemu",
69    ],
70    cipd_uploads = [
71        "//pw_bluetooth_sapphire/fuchsia/bt_host:bt_host_x64_cipd",
72        "//pw_bluetooth_sapphire/fuchsia/bt_host:bt_host_arm64_cipd",
73        "//pw_bluetooth_sapphire/fuchsia/bt_host:bt_host_riscv64_cipd",
74        "//pw_bluetooth_sapphire/fuchsia/bt_hci_virtual:bt_hci_virtual_x64_cipd",
75        "//pw_bluetooth_sapphire/fuchsia/bt_hci_virtual:bt_hci_virtual_arm64_cipd",
76        "//pw_bluetooth_sapphire/fuchsia/bt_hci_virtual:bt_hci_virtual_riscv64_cipd",
77    ],
78    tags = ["integration"],
79)
80