| # 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_test.gni") |
| import("//build/test/test_package.gni") |
| |
| rustc_test("fuchsia_inspect_derive_tests") { |
| edition = "2018" |
| source_root = "src/main.rs" |
| |
| deps = [ |
| "//src/lib/diagnostics/inspect/derive", |
| "//src/lib/diagnostics/inspect/rust", |
| "//src/lib/fuchsia-async", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:parking_lot", |
| "//third_party/rust_crates:serde", |
| ] |
| |
| sources = [ "src/main.rs" ] |
| } |
| |
| rustc_test("fuchsia_inspect_derive_import_tests") { |
| edition = "2018" |
| source_root = "src/import.rs" |
| |
| deps = [ "//src/lib/diagnostics/inspect/derive" ] |
| |
| sources = [ "src/import.rs" ] |
| } |
| |
| test_package("fuchsia-inspect-derive-tests") { |
| deps = [ |
| ":fuchsia_inspect_derive_import_tests", |
| ":fuchsia_inspect_derive_tests", |
| ] |
| |
| tests = [ |
| { |
| name = "fuchsia_inspect_derive_tests" |
| dest = "fuchsia-inspect-derive-tests" |
| environments = basic_envs |
| }, |
| { |
| name = "fuchsia_inspect_derive_import_tests" |
| dest = "fuchsia-inspect-derive-import-tests" |
| environments = basic_envs |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":fuchsia-inspect-derive-tests" ] |
| } |