| # 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 = "cli", | |
| testonly = True, | |
| srcs = [ | |
| "archive.go", | |
| "build.go", | |
| "device.go", | |
| "ffx.go", | |
| "installer.go", | |
| ], | |
| importpath = "go.fuchsia.dev/fuchsia/src/testing/host-target-testing/cli", | |
| target_compatible_with = HOST_OS_CONSTRAINTS, | |
| visibility = ["//:__subpackages__"], | |
| deps = [ | |
| "//src/testing/host-target-testing/artifacts", | |
| "//src/testing/host-target-testing/avb", | |
| "//src/testing/host-target-testing/device", | |
| "//src/testing/host-target-testing/ffx", | |
| "//src/testing/host-target-testing/omaha_tool", | |
| "//src/testing/host-target-testing/updater", | |
| "//src/testing/host-target-testing/util", | |
| "//src/testing/host-target-testing/zbi", | |
| "//third_party/golibs:golang.org/x/crypto/ssh", | |
| "//tools/botanist:constants", | |
| "//tools/lib/logger", | |
| "//tools/lib/retry", | |
| ], | |
| ) | |
| host_go_test( | |
| name = "host-target-testing-cli-test", | |
| srcs = ["build_test.go"], | |
| embed = [":cli"], | |
| target_compatible_with = HOST_OS_CONSTRAINTS, | |
| visibility = ["//src/testing/host-target-testing:__pkg__"], | |
| ) |