blob: e1f1d52e417859b34eea45a3c0ce4677f04fd8e7 [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_binary.gni")
import("//build/test/test_package.gni")
rustc_binary("bin") {
name = "component_test_runner"
edition = "2018"
with_unit_tests = true
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-component",
"//garnet/public/rust/fuchsia-runtime",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-zircon",
"//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc",
"//src/sys/lib/fuchsia_url:fuchsia_url",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:futures-preview",
"//third_party/rust_crates:serde_json",
"//zircon/public/fidl/fuchsia-io:fuchsia-io-rustc",
]
}
package("component_test_runner") {
deps = [
":bin",
]
binaries = [
{
name = "component_test_runner"
},
]
meta = [
{
path = "meta/component_test_runner.cmx"
dest = "component_test_runner.cmx"
},
]
}
test_package("component_test_runner_tests") {
deps = [
":bin_test",
]
tests = [
{
name = "component_test_runner_bin_test"
},
]
}