blob: 36a2d37209507266ac44477819915c7d1d99a061 [file] [log] [blame]
# Copyright 2025 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("go_test_parser_lib") {
sources = [
"gotest.go",
"gotest_test.go",
]
deps = [ "//tools/testing/runtests" ]
}
group("tests") {
testonly = true
deps = [
":go_test_parser_cmd_tests",
":go_test_parser_lib_tests",
]
}
go_test("go_test_parser_lib_tests") {
library = ":go_test_parser_lib"
deps = [ "//third_party/golibs:github.com/google/go-cmp" ]
}
go_library("main") {
source_dir = "cmd"
sources = [
"main.go",
"main_test.go",
]
deps = [
":go_test_parser_lib",
"//tools/testing/testrunner:constants",
]
}
go_binary("go_test_parser") {
library = ":main"
}
go_test("go_test_parser_cmd_tests") {
library = ":main"
deps = [ "//third_party/golibs:github.com/google/go-cmp" ]
}