blob: 5d1e1b05cf1262a3965c2d310ca86259bc7c66bf [file] [log] [blame]
# Copyright 2021 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")
import("//src/storage/lib/paver/e2e_tests/e2e_tests.gni")
if (is_host) {
# Add this to go_test()'s environments to disable a test in infra
disabled_env = {
tags = [ "system-tests-disabled" ] # Tells infra not to run this by default
dimensions = host_env.dimensions
}
go_library("lib") {
testonly = true
sources = [
"config.go",
"pave_test.go",
]
non_go_deps = [ "//src/sys/pkg/tests/system-tests:test_tools" ]
deps = [
"//src/testing/host-target-testing",
"//tools/botanist:constants",
"//tools/lib/color",
"//tools/lib/logger",
]
}
go_test("e2e_tests_pave") {
gopackages = [ "go.fuchsia.dev/fuchsia/src/storage/lib/paver/e2e_tests" ]
environments = [ disabled_env ]
deps = [ ":lib" ]
}
}
if (is_linux || is_mac) {
e2e_tests_pave("nuc-release-pave") {
release_builder = "fuchsia/global.ci/core.x64-release-nuc_in_basic_envs"
environments = [
{
dimensions = {
device_type = "Intel NUC Kit NUC7i5DNHE"
}
tags = [ "e2e-isolated" ]
},
]
}
}
group("e2e_tests") {
testonly = true
deps = [ ":nuc-release-pave($host_toolchain)" ]
}