blob: ee91344b424a2d401ca8f8989defddc0a42f9b4b [file] [log] [blame]
# 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/go_library.gni")
import("//build/go/go_test.gni")
go_library("testparser") {
name = "go.fuchsia.dev/fuchsia/tools/testing/testparser/lib"
}
group("tests") {
testonly = true
deps = [
":test($host_toolchain)",
":testparser_cmd($host_toolchain)",
":testparser_cmd_test",
]
}
go_test("test") {
output_name = "testparser_tests"
gopackages = [ "go.fuchsia.dev/fuchsia/tools/testing/testparser/lib" ]
deps = [ ":testparser" ]
}
go_library("main") {
name = "go.fuchsia.dev/fuchsia/tools/testing/testparser/cmd/lib"
source_dir = "cmd"
deps = [ ":testparser" ]
}
go_binary("testparser_cmd") {
output_name = "testparser"
gopackage = "go.fuchsia.dev/fuchsia/tools/testing/testparser/cmd/lib"
deps = [ ":main" ]
}
go_test("testparser_cmd_test") {
gopackages = [ "go.fuchsia.dev/fuchsia/tools/testing/testparser/cmd/lib" ]
deps = [
":main",
"//third_party/golibs:github.com/google/go-cmp",
]
}