blob: 0ce434f653654670dccdcf83577e416de55c0b63 [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") {
}
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" ]
deps = [ ":testparser" ]
}
go_library("main") {
source_dir = "cmd"
deps = [ ":testparser" ]
}
go_binary("testparser_cmd") {
output_name = "testparser"
gopackage = "go.fuchsia.dev/fuchsia/tools/testing/testparser/cmd"
deps = [ ":main" ]
}
go_test("testparser_cmd_test") {
gopackages = [ "go.fuchsia.dev/fuchsia/tools/testing/testparser/cmd" ]
deps = [
":main",
"//third_party/golibs:github.com/google/go-cmp",
]
}