blob: 7c8da77451d578ac5d137b82fa675a21210f40ac [file]
# Copyright 2026 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.
load("//build/bazel/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS")
package(default_applicable_licenses = ["//:license"])
# Host tests for //src/lib defined in Bazel. These are exported to `fx test`
# and infra builders through the `bazel_tests` target in //src/lib/BUILD.gn.
test_suite(
name = "host_tests",
target_compatible_with = HOST_OS_CONSTRAINTS,
tests = [
"//src/lib/fidl/rust/fidl_test_util:fidl_test_util_host_test",
"//src/lib/fuchsia-emulated-handle:fuchsia-emulated-handle-shutdown-test",
"//src/lib/fuchsia-emulated-handle:fuchsia-emulated-handle_test",
"//src/lib/gcs/test:gcs_test_client_bin_test",
"//src/lib/go-benchmarking:go_benchmarking_test",
"//src/lib/inet:libinet_host_test",
"//src/lib/intl/strings:lib_test",
"//src/lib/listnode:listnode_host_tests",
"//src/lib/stdbind:stdbind-cpp-unittests",
"//src/lib/stdbind:stdbind-rs_test",
"//src/lib/testing/temp_test_env:lib_test",
"//src/lib/transfer_manifest:transfer_manifest_test",
"//src/lib/zxc/tests:zxc_host_unittests",
],
)
# Device tests for //src/lib defined in Bazel. These are exported to `fx test`
# and infra builders through the `bazel_tests` target in //src/lib/BUILD.gn.
test_suite(
name = "target_tests",
target_compatible_with = ["@platforms//os:fuchsia"],
tests = [
"//src/lib/atomic-storage:atomic-storage-tests",
"//src/lib/backoff:backoff_tests",
"//src/lib/callback:callback_tests",
"//src/lib/captive-thread:tests",
"//src/lib/cstringify:cstringify-test",
"//src/lib/debug/test:backtrace-request-integration-test-pkg",
"//src/lib/debug/test:backtrace-request-test-pkg",
"//src/lib/error/clonable_error:clonable_error_tests",
"//src/lib/fable:fable-lib-unit-tests",
"//src/lib/fidl/llcpp/tests/conformance:fidl_llcpp_manual_conformance_tests",
"//src/lib/fidl/llcpp/tests/conformance:fidl_llcpp_request_response_tests",
"//src/lib/fidl/rust/fidl_test_util:fidl_test_util_target_test",
"//src/lib/fidl_server:fidl-server-tests",
"//src/lib/fuchsia-image-format:fuchsia-image-format-tests",
"//src/lib/inet:libinet_tests",
"//src/lib/listnode:listnode-package",
"//src/lib/process:process_unittests",
"//src/lib/rust_url:rust_url_unittests",
"//src/lib/ui/carnelian:carnelian-tests",
"//src/lib/watch_handler:watch-handler-tests",
"//src/lib/zxc/tests:zxc-tests",
],
)