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