blob: 8e293f6101124c45de12a79288bd1b7e183dbf1f [file] [log] [blame]
# Copyright 2022 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_library.gni")
import("//build/go/go_test.gni")
go_library("util") {
sources = [
"gen.go",
"git.go",
"gn.go",
"gn_test.go",
"init.go",
"target.go",
]
deps = [
"//third_party/golibs:github.com/google/go-cmp",
"//tools/lib/logger",
]
}
group("tests") {
testonly = true
deps = [ ":check-licenses_util_tests($host_toolchain)" ]
}
if (is_host) {
go_test("check-licenses_util_tests") {
library = ":util"
args = [
"--test_data_dir",
rebase_path("$target_gen_dir/testdata", root_build_dir),
]
non_go_deps = [ "testdata" ]
}
}