blob: 874a41800bb55a9a547508224258ed734e0403f5 [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") {
sources = [
"dartsystemtest.go",
"googletest.go",
"gotest.go",
"moblytest.go",
"networkconformancetest.go",
"rusttest.go",
"testparser.go",
"testparser_test.go",
"trftest.go",
"vulkanctstest.go",
"zircon_utest.go",
]
deps = [
"//src/connectivity/network/testing/conformance/parseoutput",
"//third_party/golibs:gopkg.in/yaml.v2",
"//tools/build",
"//tools/testing/runtests",
]
}
group("tests") {
testonly = true
deps = [
":test($host_toolchain)",
":testparser_cmd($host_toolchain)",
":testparser_cmd_test",
]
}
go_test("test") {
library = ":testparser"
output_name = "testparser_tests"
deps = [ "//third_party/golibs:github.com/google/go-cmp" ]
}
go_library("main") {
source_dir = "cmd"
sources = [
"main.go",
"main_test.go",
]
deps = [ ":testparser" ]
}
go_binary("testparser_cmd") {
library = ":main"
output_name = "testparser"
}
go_test("testparser_cmd_test") {
library = ":main"
deps = [ "//third_party/golibs:github.com/google/go-cmp" ]
}