| # 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/components.gni") |
| import("//build/rust/rustc_test.gni") |
| |
| rustc_test("test_manager_test_bin") { |
| edition = "2021" |
| name = "test_manager_test" |
| source_root = "src/tests.rs" |
| deps = [ |
| "//sdk/fidl/fuchsia.component:fuchsia.component-rustc", |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl-rustc", |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", |
| "//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc", |
| "//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/sys/test_manager:test_lib", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:pretty_assertions", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ "src/tests.rs" ] |
| |
| inputs = [ |
| "//src/sys/test_runners/gtest/test_data/sample_tests_golden_events.rsf", |
| ] |
| } |
| |
| fuchsia_unittest_package("test_manager_test") { |
| manifest = "meta/test_manager_test.cml" |
| deps = [ |
| ":test_manager_test_bin", |
| "test_data", |
| "//src/sys/test_manager:test_manager_for_test_cmp", |
| "//src/sys/test_manager/cmx_runner", |
| ] |
| |
| # There's expected error logs that happen during the test such as not resolving an instance when |
| # testing that we fail to execute a test with an unknown URL. |
| test_specs = { |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":test_manager_test", |
| "chromium_tests:tests", |
| "diagnostics_tests:tests", |
| "test_data:debug-data-test", |
| "tier_2_tests:tests", |
| "//examples/tests:example-tests", |
| "//src/sys/test_manager", |
| "//src/sys/test_runners/gtest/test_data:gtest-runner-example-tests", |
| ] |
| } |