blob: fd8241742bd17d40ab2712a6eed5bfb775aa01ac [file] [log] [blame]
# 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/fidl/fidl.gni")
import("//build/go/go_library.gni")
import("//build/go/go_test.gni")
import("//build/go/toolchain.gni")
import("//src/sys/build/components.gni")
fidl("bindingstest") {
experimental_flags = [ "enable_handle_rights" ]
public_deps = [ "//zircon/vdso/zx" ]
sources = [ "test.test.fidl" ]
}
go_library("component") {
deps = [
"//sdk/fidl/fuchsia.io($go_toolchain)",
"//sdk/fidl/fuchsia.io2($go_toolchain)",
"//sdk/fidl/fuchsia.sys($go_toolchain)",
]
sources = [
"context.go",
"context_test.go",
"io.go",
"io_test.go",
"serve.go",
"serve_test.go",
]
}
go_test("component_test") {
gopackages = [ "go.fuchsia.dev/fuchsia/src/lib/component" ]
deps = [
":bindingstest($go_toolchain)",
":component",
]
}
fuchsia_unittest_package("lib-component-go-unittests") {
deps = [ ":component_test" ]
test_specs = {
environments = [ emu_env ]
}
}
group("tests") {
testonly = true
deps = [ ":lib-component-go-unittests" ]
}