| # Copyright 2020 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/toolchain.gni") |
| import("//src/sys/build/fuchsia_test_package.gni") |
| import("//src/sys/build/fuchsia_unittest_component.gni") |
| |
| go_binary("puppet_bin") { |
| gopackage = "go.fuchsia.dev/fuchsia/src/connectivity/network/netstack/inspect/validator" |
| |
| deps = [ |
| "//src/connectivity/network/netstack:netstack_lib", |
| "//src/diagnostics/validator/inspect/fidl:validate($go_toolchain)", |
| "//src/lib/component", |
| ] |
| } |
| |
| fuchsia_unittest_component("puppet") { |
| deps = [ ":puppet_bin" ] |
| manifest = "meta/puppet.cmx" |
| } |
| |
| fuchsia_unittest_component("validator") { |
| deps = [ "//src/diagnostics/validator/inspect:validator_bin" ] |
| manifest = "meta/validator.cmx" |
| } |
| |
| fuchsia_test_package("inspect-validator-tests-go") { |
| deps = [ ":puppet" ] |
| test_components = [ ":validator" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":inspect-validator-tests-go" ] |
| } |