| # Copyright 2019 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. |
| |
| import("//build/go/go_binary.gni") |
| import("//build/go/go_library.gni") |
| import("//build/go/go_test.gni") |
| |
| go_test("testrunner_lib_tests") { |
| embed = [ ":lib" ] |
| deps = [ "//third_party/golibs:github.com/google/go-cmp" ] |
| |
| sources = [ |
| "lib_test.go", |
| "nsjail_test.go", |
| "outputs_test.go", |
| "tester_test.go", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":testrunner_lib_tests" ] |
| } |
| |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## |
| # |
| # ________ _________ ________ ________ |
| # |\ ____\|\___ ___\\ __ \|\ __ \ |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| |
| # ____\_\ \ \ \__\ \ \_______\ \__\ |
| # |\_________\ \|__| \|_______|\|__| |
| # \|_________| |
| # |
| # |
| # AUTO-GENERATED - DO NOT EDIT |
| # |
| # The targets below are auto-generated based on the targets defined in the |
| # BUILD.bazel file from the same directory. If you made changes to targets in |
| # Bazel, instead of editing this file manually, run: |
| # |
| # > fx bazel2gn |
| # |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and |
| # rerun bazel2gn. |
| |
| import("//build/tools/bazel2gn/bazel_migration.gni") |
| |
| # A self-verification target for generated content in this file. |
| if (is_host) { |
| verify_bazel2gn("verify_bazel2gn") { |
| } |
| } |
| |
| if (is_host) { |
| go_library("lib") { |
| sources = [ |
| "lib.go", |
| "nsjail.go", |
| "outputs.go", |
| "tester.go", |
| ] |
| visibility = [ "*" ] |
| deps = [ |
| ":constants", |
| "//third_party/golibs:github.com/pkg/sftp", |
| "//third_party/golibs:golang.org/x/crypto", |
| "//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", |
| ] |
| } |
| } |
| if (is_host) { |
| go_library("constants") { |
| sources = [ "constants/constants.go" ] |
| visibility = [ "*" ] |
| } |
| } |