blob: 385e9289cb510744e6ed37c98420efe53d429391 [file] [log] [blame]
# Copyright 2016 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")
import("//build/host.gni")
import("//build/package.gni")
import("//build/test/test_package.gni")
go_library("thinfs_lib") {
name = "thinfs"
deps = [
"//third_party/golibs:github.com/golang/glog",
"//third_party/golibs:github.com/pkg/errors",
]
}
go_test("thinfs_bitops_test") {
gopackages = [ "thinfs/bitops" ]
deps = [
":thinfs_lib",
]
}
go_test("thinfs_block_fake_test") {
gopackages = [ "thinfs/block/fake" ]
deps = [
":thinfs_lib",
]
}
go_test("thinfs_block_file_test") {
gopackages = [ "thinfs/block/file" ]
deps = [
":thinfs_lib",
]
}
go_test("thinfs_cache_test") {
gopackages = [ "thinfs/cache" ]
deps = [
":thinfs_lib",
]
}
go_test("thinfs_gpt_test") {
gopackages = [ "thinfs/gpt" ]
deps = [
":thinfs_lib",
]
}
go_test("thinfs_mbr_test") {
gopackages = [ "thinfs/mbr" ]
deps = [
":thinfs_lib",
]
}
go_test("thinfs_thinio_test") {
gopackages = [ "thinfs/thinio" ]
deps = [
":thinfs_lib",
]
}
go_test("thinfs_zircon_rpc_test") {
gopackages = [ "thinfs/zircon/rpc" ]
deps = [
":thinfs_lib",
]
}
unittest_package("go_thinfs_tests") {
deps = [
":thinfs_bitops_test($host_toolchain)",
":thinfs_block_fake_test($host_toolchain)",
":thinfs_block_file_test($host_toolchain)",
":thinfs_cache_test($host_toolchain)",
":thinfs_gpt_test($host_toolchain)",
":thinfs_mbr_test($host_toolchain)",
":thinfs_thinio_test($host_toolchain)",
":thinfs_zircon_rpc_test",
]
tests = [
{
name = "thinfs_zircon_rpc_test"
environments = basic_envs
},
]
}