| # 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/components.gni") |
| import("//build/go/go_library.gni") |
| import("//build/go/go_test.gni") |
| import("//build/go/toolchain.gni") |
| |
| go_library("echo_go_test_lib") { |
| deps = [ |
| "//examples/components/routing/fidl:echo_go($go_toolchain)", |
| "//src/lib/component", |
| ] |
| sources = [ "echo_go_test.go" ] |
| } |
| |
| go_test("echo_go_client") { |
| library = ":echo_go_test_lib" |
| } |
| |
| fuchsia_component("echo_go_client_component") { |
| testonly = true |
| manifest = "meta/echo_go_client.cml" |
| component_name = "echo_go_client" |
| deps = [ ":echo_go_client" ] |
| } |
| |
| fuchsia_component("echo-test-realm") { |
| testonly = true |
| manifest = "meta/echo-test-realm.cml" |
| } |
| |
| group("echo-example") { |
| testonly = true |
| public_deps = [ |
| ":echo-test-realm", |
| ":echo_go_client_component", |
| "//src/sys/component_manager/testing/echo_server", |
| ] |
| } |