| # 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/bazel/bazel_test_suite.gni") | |
| group("pkg") { | |
| testonly = true | |
| deps = [ | |
| "bin", | |
| "lib", | |
| ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| public_deps = [ | |
| ":bazel_tests", | |
| ":non_hermetic_tests($target_toolchain)", | |
| "lib:tests", | |
| "//src/sys/lib/fidl-fuchsia-pkg-ext:tests", | |
| "//src/sys/lib/fidl-fuchsia-pkg-rewrite-ext:tests", | |
| ] | |
| } | |
| bazel_test_suite("bazel_tests") { | |
| target_tests = [ "//src/sys/pkg:tests" ] | |
| } | |
| if (is_fuchsia) { | |
| group("hermetic_tests") { | |
| testonly = true | |
| public_deps = [ | |
| ":bazel_tests", | |
| "bin:hermetic_tests", | |
| "lib:hermetic_tests", | |
| "testing:hermetic_tests", | |
| "tests:hermetic_tests", | |
| ] | |
| } | |
| group("non_hermetic_tests") { | |
| testonly = true | |
| public_deps = [ | |
| "bin:non_hermetic_tests", | |
| "lib:non_hermetic_tests", | |
| "tests:non_hermetic_tests", | |
| ] | |
| } | |
| } | |
| if (is_host) { | |
| bazel_test_suite("bazel_host_tests") { | |
| host_tests = [ "//src/sys/pkg:host_tests" ] | |
| } | |
| group("host_tests") { | |
| testonly = true | |
| public_deps = [ | |
| ":bazel_host_tests", | |
| "bin:host_tests", | |
| "lib:host_tests", | |
| "scripts:host_tests", | |
| "testing:host_tests", | |
| ] | |
| } | |
| } | |
| group("all_tests") { | |
| testonly = true | |
| public_deps = [ | |
| ":hermetic_tests($target_toolchain)", | |
| ":host_tests($host_toolchain)", | |
| ":non_hermetic_tests($target_toolchain)", | |
| ":tests", | |
| ] | |
| } | |
| group("e2e_tests") { | |
| testonly = true | |
| public_deps = [ "tests:e2e_tests" ] | |
| } | |
| # Targets to include in the base package set for the core recovery image. | |
| group("recovery-core") { | |
| public_deps = [ | |
| "bin/pkg-cache", | |
| "bin/pkg-resolver", | |
| # system-update-committer is a dependency of pkg-cache, but we don't want to | |
| # do any verification in recovery mode, so we completely disable it. | |
| "bin/system-update-committer", | |
| "bin/system-update-committer:disable", | |
| ] | |
| } | |
| # Targets to include in the base package set for the recovery image. | |
| group("recovery") { | |
| public_deps = [ | |
| ":recovery-core", | |
| "bin/omaha-client", | |
| "bin/system-updater", | |
| ] | |
| } |