blob: 0378160ecca79a0bcd248ff1d868e096e17a86dc [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("lib") {
name = "go.fuchsia.dev/fuchsia/tools/testing/tefmocheck/lib"
deps = [
"//tools/bootserver:bootserverconstants",
"//tools/botanist:constants",
"//tools/net/netutil:netutilconstants",
"//tools/testing/testrunner:constants",
]
}
go_library("main") {
name = "go.fuchsia.dev/fuchsia/tools/testing/tefmocheck/cmd/lib"
source_dir = "cmd"
deps = [
":lib",
"//tools/testing/runtests",
]
}
go_binary("tefmocheck") {
gopackage = "go.fuchsia.dev/fuchsia/tools/testing/tefmocheck/cmd/lib"
deps = [ ":main" ]
# Needed to support cross-compilation. The infra recipes always needs this
# built for Linux, even if build happens on Mac.
cgo = false
}
go_test("main_tests") {
output_name = "tefmocheck_tests"
gopackages = [ "go.fuchsia.dev/fuchsia/tools/testing/tefmocheck/cmd/lib" ]
deps = [
":main",
"//third_party/golibs:github.com/google/go-cmp",
"//tools/testing/runtests",
]
}
go_test("lib_tests") {
output_name = "tefmocheck_lib_tests"
gopackages = [ "go.fuchsia.dev/fuchsia/tools/testing/tefmocheck/lib" ]
deps = [
":lib",
"//third_party/golibs:github.com/google/go-cmp",
"//tools/testing/runtests",
]
}
group("tests") {
testonly = true
deps = [
":lib_tests",
":main_tests",
]
}