blob: 04563bdd4e73f3d6fe66e8b46328d40633312621 [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/package.gni")
import("//build/rust/rustc_test.gni")
rustc_test("test_manager_test_bin") {
edition = "2018"
name = "test_manager_test"
source_root = "src/main.rs"
deps = [
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/test_manager/fidl:test_manager-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
}
package("test_manager_test") {
testonly = true
deps = [
":test_manager_test_bin",
"//src/sys/test_adapters/rust",
]
meta = [
{
path = rebase_path("meta/test_manager_test.cml")
dest = "test_manager_test.cm"
},
]
tests = [
{
name = "test_manager_test"
},
]
binaries = [
{
name = "rust_test_adapter"
},
]
}
group("tests") {
testonly = true
deps = [
":test_manager_test",
"//examples/tests:example-tests",
"//src/sys/test_manager",
"//src/sys/test_runners/gtest:gtest_runner_example_tests",
]
}