| # 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("@platforms//host:constraints.bzl", "HOST_CONSTRAINTS") |
| |
| go_library( |
| name = "lib", |
| srcs = [ |
| "lib.go", |
| "nsjail.go", |
| "outputs.go", |
| "tester.go", |
| ], |
| importpath = "go.fuchsia.dev/fuchsia/tools/testing/testrunner", |
| target_compatible_with = HOST_CONSTRAINTS, |
| visibility = ["//visibility:public"], |
| deps = [ |
| ":constants", |
| "//third_party/golibs:github.com/pkg/sftp", |
| "//third_party/golibs:golang.org/x/crypto/ssh", |
| "//tools/botanist:botanist_lib", |
| "//tools/botanist:constants", |
| "//tools/botanist:targets", |
| "//tools/build", |
| "//tools/debug/covargs:covargs_lib", |
| "//tools/debug/elflib", |
| "//tools/integration/testsharder:testsharder_lib", |
| "//tools/lib/clock", |
| "//tools/lib/environment", |
| "//tools/lib/ffxutil", |
| "//tools/lib/ffxutil:constants", |
| "//tools/lib/iomisc", |
| "//tools/lib/logger", |
| "//tools/lib/osmisc", |
| "//tools/lib/retry", |
| "//tools/lib/serial", |
| "//tools/lib/streams", |
| "//tools/lib/subprocess", |
| "//tools/net/sshutil:constants", |
| "//tools/testing/runtests", |
| "//tools/testing/tap", |
| "//tools/testing/testparser", |
| ], |
| ) |
| |
| go_library( |
| name = "constants", |
| srcs = [ |
| "constants/constants.go", |
| ], |
| importpath = "go.fuchsia.dev/fuchsia/tools/testing/testrunner/constants", |
| target_compatible_with = HOST_CONSTRAINTS, |
| visibility = ["//visibility:public"], |
| ) |