| # 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("//build/test/test_package.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" ] |
| } |
| |
| test_package("gtest_v1_runner_test") { |
| deps = [ |
| ":echo_bin", |
| ":test_bin", |
| ] |
| |
| binaries = [ |
| { |
| name = "echo_test" |
| }, |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path("meta/echo_test.cmx") |
| dest = "echo_test.cmx" |
| }, |
| ] |
| |
| tests = [ |
| { |
| name = "gtest_v1_runner_test" |
| environments = basic_envs |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":gtest_v1_runner_test" ] |
| } |