blob: 95a7f882b38f40e35340cfbaf20e34216a89f499 [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_builder_group",
"fuchsia_cipd_releases",
"fuchsia_test_group",
)
load("@rules_license//rules:license.bzl", "license")
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 = "//product: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",
)
# buildifier: leave-alone
fuchsia_builder_group(
name = "infra",
build_only = [
],
test_groups = [
":tests_qemu",
":tests_qemu_asan",
":tests_vim3",
],
cipd_uploads = [
":rtc_cipd_release",
],
)