blob: 7d44fbdbca5efe29977b936244775e2b0b429f52 [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/rust/rustc_test.gni")
import("//src/sys/build/components.gni")
executable("echo_bin") {
testonly = true
output_name = "echo_test"
sources = [ "echo_test.cc" ]
deps = [
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp",
"//src/lib/fxl/test:gtest_main",
"//src/testing/fidl:placeholders",
"//zircon/system/ulib/async-default",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}
rustc_test("test_bin") {
name = "gtest_v1_runner_test"
edition = "2018"
source_root = "gtest_v1_runner_test.rs"
deps = [
"//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc",
"//sdk/fidl/fuchsia.test:fuchsia.test-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/testing/fidl:placeholders-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
sources = [ "gtest_v1_runner_test.rs" ]
}
fuchsia_component("echo_test") {
testonly = true
deps = [ ":echo_bin" ]
manifest = "meta/echo_test.cmx"
}
fuchsia_unittest_package("gtest_v1_runner_test") {
manifest = "meta/gtest_v1_runner_test.cmx"
deps = [
":echo_test",
":test_bin",
]
test_specs = {
environments = basic_envs
}
}
group("tests") {
testonly = true
deps = [ ":gtest_v1_runner_test" ]
}