• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
22load("//pw_bluetooth_sapphire/fuchsia:host_x64.bzl", "MANUAL_IF_NOT_HOST_X64")
23
24license(
25    name = "license_fuchsia",
26    package_name = "pw_bluetooth_sapphire (Fuchsia)",
27    license_text = "//:LICENSE",
28)
29
30qemu_tests = [
31    "//pw_bluetooth_sapphire/fuchsia/bt_host:unittest_pkg",
32]
33
34fuchsia_test_group(
35    name = "tests_qemu",
36    # Disable luci-auth as the CQ builder environment is not authenticated.
37    luci_auth_enabled = False,
38    product_bundle = "@fuchsia_products//:core.x64",
39    test_target = FUCHSIA_TEST_TARGET.QEMU,
40    deps = qemu_tests,
41)
42
43# buildifier: leave-alone
44fuchsia_builder_group(
45    name = "infra",
46    build_only = [
47    ],
48    test_groups = [
49        ":tests_qemu",
50    ],
51    cipd_uploads = [
52        "//pw_bluetooth_sapphire/fuchsia/bt_host:bt_host_x64_cipd",
53        "//pw_bluetooth_sapphire/fuchsia/bt_host:bt_host_arm64_cipd",
54    ],
55    tags = MANUAL_IF_NOT_HOST_X64,
56)
57