blob: 09b16105706f0c718b4d92fd89b8a17eff210f26 [file]
# 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_builder_group",
"fuchsia_cipd_releases",
"fuchsia_test_group",
"fuchsia_tests",
)
load("@rules_license//rules:license.bzl", "license")
license(
name = "license_fuchsia",
package_name = "pcf8563 (Fuchsia)",
license_text = "LICENSE",
)
common_test_deps = [
"//src/drivers/pcf8563:test",
]
fuchsia_test_group(
name = "target_tests",
product_bundle = "core.x64",
deps = common_test_deps,
)
fuchsia_test_group(
name = "target_tests_asan",
asan_enabled = True,
product_bundle = "core.x64",
deps = common_test_deps,
)
fuchsia_tests(
name = "tests",
deps = [
":target_tests",
":target_tests_asan",
],
)
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",
)
# buildifier: leave-alone
fuchsia_builder_group(
name = "infra",
build_only = [
"//src/drivers/pcf8563:pkg",
],
test_groups = [
":tests",
],
cipd_uploads = [
":rtc_cipd_release_collector",
],
)