blob: 33f7d30f943e775ba2823537ea764e044764aa01 [file]
# Copyright 2026 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("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//build/bazel/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS")
load("//build/bazel/rules/host_tests:host_go_test.bzl", "host_go_test")
package(default_applicable_licenses = ["//:license"])
go_library(
name = "util",
testonly = True,
srcs = ["util.go"],
importpath = "go.fuchsia.dev/fuchsia/src/testing/host-target-testing/util",
target_compatible_with = HOST_OS_CONSTRAINTS,
visibility = ["//:__subpackages__"],
deps = [
"//src/testing/host-target-testing/build",
"//tools/lib/logger",
"//tools/lib/productbundle",
],
)
host_go_test(
name = "host-target-testing-util-test",
srcs = ["util_test.go"],
embed = [":util"],
target_compatible_with = HOST_OS_CONSTRAINTS,
visibility = ["//src/testing/host-target-testing:__pkg__"],
)