| # 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_binary.gni") | |
| import("//src/sys/build/components.gni") | |
| rustc_binary("bin") { | |
| name = "component_test_runner" | |
| edition = "2018" | |
| with_unit_tests = true | |
| deps = [ | |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", | |
| "//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/fuchsia-runtime", | |
| "//src/lib/fuchsia-url", | |
| "//src/lib/syslog/rust:syslog", | |
| "//src/lib/zircon/rust:fuchsia-zircon", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| sources = [ "src/main.rs" ] | |
| } | |
| fuchsia_package_with_single_component("component_test_runner") { | |
| deps = [ ":bin" ] | |
| manifest = "meta/component_test_runner.cmx" | |
| } | |
| fuchsia_unittest_package("component_test_runner_tests") { | |
| manifest = "meta/component_test_runner_bin_test.cmx" | |
| deps = [ ":bin_test" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":component_test_runner_tests" ] | |
| } |