| # Copyright 2018 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/components.gni") |
| import("//build/dart/dart_app.gni") |
| import("//build/testing/environments.gni") |
| |
| dart_app("dart-inspect-validator-puppet") { |
| components = [ |
| { |
| component_name = "dart-inspect-validator-puppet" |
| component_type = "dart" |
| package_root = "." |
| main_dart = "lib/main.dart" |
| sources = [ "main.dart" ] |
| deps = [ |
| "//sdk/dart/fidl", |
| "//sdk/dart/fuchsia_inspect", |
| "//sdk/dart/fuchsia_logger", |
| "//sdk/dart/fuchsia_services", |
| "//sdk/fidl/fuchsia.sys", |
| "//src/diagnostics/validator/inspect/fidl:validate", |
| ] |
| }, |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path("meta/dart-inspect-validator-puppet.cmx") |
| dest = "dart-inspect-validator-puppet.cmx" |
| }, |
| ] |
| } |
| |
| fuchsia_test_component("validator-component") { |
| component_name = "validator" |
| manifest = "meta/validator.cmx" |
| deps = [ "//src/diagnostics/validator/inspect:validator_bin" ] |
| } |
| |
| fuchsia_test_package("inspect-validator-test-dart") { |
| test_components = [ ":validator-component" ] |
| deps = [ ":dart-inspect-validator-puppet" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":dart-inspect-validator-puppet", |
| ":inspect-validator-test-dart", |
| ] |
| } |