blob: e8b72d6d617b07436c1a564ebad5bd7eedad7c2a [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/config/fuchsia/zircon.gni")
import("//build/go/go_library.gni")
import("//build/go/go_test.gni")
import("//build/testing/environments.gni")
import("//src/sys/pkg/tests/system-tests/system-tests.gni")
copy("copy") {
testonly = true
sources = [
"$zircon_tools_dir/netaddr",
"//prebuilt/tools/artifacts/artifacts",
"//prebuilt/tools/lkgb/lkgb",
]
outputs = [ "$root_out_dir/test_data/system-tests/{{source_file_part}}" ]
deps = [ "//zircon/public/tool/netaddr($host_toolchain)" ]
}
go_library("system_tests_lib") {
testonly = true
name = "fuchsia.googlesource.com/system_tests"
deps = [ "//src/testing/host-target-testing" ]
non_go_deps = [ ":copy" ]
metadata = {
test_runtime_deps = get_target_outputs(":copy")
}
}
go_test("system_tests_upgrade") {
gopackages = [ "fuchsia.googlesource.com/system_tests/upgrade_test" ]
disabled = true
deps = [ ":system_tests_lib" ]
}
group("system_tests") {
testonly = true
deps = [ ":system_tests_upgrade($host_toolchain)" ]
}
group("tests") {
testonly = true
public_deps = [ ":system_tests" ]
}