blob: 674220dd6de5379e277211f874160e98fb3792cf [file] [log] [blame]
# Copyright 2019 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("testsharder_lib") {
sources = [
"doc.go",
"durations.go",
"durations_test.go",
"images.go",
"images_test.go",
"mode.go",
"postprocess.go",
"postprocess_test.go",
"preprocess.go",
"preprocess_test.go",
"shard.go",
"shard_test.go",
"test.go",
"test_modifier.go",
"test_modifier_test.go",
]
deps = [
"//src/sys/pkg/bin/pm:pm_lib",
"//tools/build",
"//tools/lib/color",
"//tools/lib/logger",
]
}
go_library("main") {
source_dir = "cmd"
sources = [ "main.go" ]
deps = [
":testsharder_lib",
"//tools/lib/flagmisc",
]
}
go_binary("testsharder") {
gopackage = "go.fuchsia.dev/fuchsia/tools/integration/testsharder/cmd"
deps = [ ":main" ]
}
go_test("testsharder_tests") {
gopackages = [ "go.fuchsia.dev/fuchsia/tools/integration/testsharder" ]
deps = [
":testsharder_lib",
"//third_party/golibs:github.com/google/go-cmp",
]
}