blob: cecc9e5f5b09b21fc901f157ccf27d21336f7aa1 [file] [log] [blame]
# Copyright 2023 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load(
"@fuchsia_infra//infra:infra.bzl",
"FUCHSIA_TEST_TARGET",
"fuchsia_assembly_configuration_cipd_release",
"fuchsia_builder_group",
"fuchsia_cipd_releases",
"fuchsia_test_group",
)
load(
"@fuchsia_sdk//fuchsia:assembly.bzl",
"fuchsia_board_input_bundle",
)
load("@rules_license//rules:license.bzl", "license")
package(default_visibility = ["//visibility:public"])
exports_files(
glob(
["**/*"],
exclude_directories = 0,
),
)
license(
name = "license_fuchsia",
package_name = "pcf8563 (Fuchsia)",
license_text = "LICENSE",
)
qemu_tests = [
"//src/drivers/pcf8563:test_x64",
]
fuchsia_test_group(
name = "tests_qemu",
product_bundle = "@fuchsia_products//:core.x64",
test_target = FUCHSIA_TEST_TARGET.QEMU,
deps = qemu_tests,
)
fuchsia_test_group(
name = "tests_qemu_asan",
asan_enabled = True,
product_bundle = "@fuchsia_products//:core.x64",
test_target = FUCHSIA_TEST_TARGET.QEMU,
deps = qemu_tests,
)
fuchsia_test_group(
name = "tests_vim3",
product_bundle = "//products:test_product.vim3",
test_target = FUCHSIA_TEST_TARGET.VIM3,
deps = [
"@fuchsia_sdk//python/rtc_conformance_test",
],
)
fuchsia_cipd_releases(
name = "rtc_cipd_release",
cipd_pkg_name_base = "fuchsia/drivers/rtc/pcf8563",
extra_content = {
"//src/drivers/pcf8563:pcf8563_licenses.spdx.json": "licenses.spdx.json",
"//src/drivers/pcf8563:README.fuchsia": "README.fuchsia",
},
pkg = "//src/drivers/pcf8563:pkg",
)
fuchsia_board_input_bundle(
name = "rtc",
base_driver_packages = [
"//src/drivers/pcf8563:pkg",
],
)
fuchsia_assembly_configuration_cipd_release(
name = "rtc_bib_release",
dir = ":rtc",
extra_content = {
"BUILD.bazel.release": "BUILD.bazel",
},
pkg_name = "fuchsia/drivers/rtc/board_input_bundle",
)
# buildifier: leave-alone
fuchsia_builder_group(
name = "infra",
build_only = [
":rtc",
],
test_groups = [
":tests_qemu",
":tests_qemu_asan",
":tests_vim3",
],
cipd_uploads = [
":rtc_cipd_release",
":rtc_bib_release",
],
)