| # 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/rust/rustc_library.gni") | |
| import("//build/test/test_package.gni") | |
| rustc_library("test_executor") { | |
| with_unit_tests = true | |
| edition = "2018" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc", | |
| "//sdk/fidl/fuchsia.test:fuchsia.test-rustc", | |
| "//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager-rustc", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fidl_fuchsia_test_ext/rust:fidl_fuchsia_test_ext", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/zircon/rust:fuchsia-zircon-status", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:glob", | |
| "//third_party/rust_crates:linked-hash-map", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| if (is_fuchsia) { | |
| deps += [ "//src/lib/fuchsia-component" ] | |
| } | |
| test_deps = [ | |
| "//third_party/rust_crates:maplit", | |
| "//third_party/rust_crates:pretty_assertions", | |
| ] | |
| sources = [ "src/lib.rs" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":test_executor_unittests" ] | |
| } | |
| unittest_package("test_executor_unittests") { | |
| deps = [ ":test_executor_test" ] | |
| tests = [ | |
| { | |
| name = "test_executor_lib_test" | |
| dest = "test_executor_lib_test" | |
| environments = basic_envs | |
| }, | |
| ] | |
| } |