blob: 937b430fda6fa15a6fdcffed27597ecfc64424f5 [file] [log] [blame]
# Copyright 2020 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("//build/rust/rustc_test.gni")
import("//src/sys/build/components.gni")
group("tests") {
testonly = true
deps = [ ":elf-runner-test" ]
}
rustc_test("elf_runner_test_bin") {
name = "elf_runner_test"
edition = "2018"
source_root = "elf_runner_test.rs"
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-runtime",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/component_manager/testing:test_utils_lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "elf_runner_test.rs" ]
}
rustc_binary("args_reporter_bin") {
name = "args_reporter"
edition = "2018"
source_root = "args_reporter.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
]
sources = [ "args_reporter.rs" ]
}
fuchsia_component("reporter_no_args") {
testonly = true
deps = [ ":args_reporter_bin" ]
manifest = "meta/reporter_no_args.cml"
}
fuchsia_component("reporter_args") {
testonly = true
deps = [ ":args_reporter_bin" ]
manifest = "meta/reporter_args.cml"
}
fuchsia_unittest_package("elf-runner-test") {
manifest = "meta/elf-runner-test.cmx"
deps = [
":elf_runner_test_bin",
":reporter_args",
":reporter_no_args",
]
}