| # Copyright 2023 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/host.gni") |
| import("//build/rust/rustc_binary.gni") |
| |
| rustc_binary("validate_test_type") { |
| edition = "2021" |
| name = "validate_test_type" |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust", |
| "//sdk/fidl/fuchsia.data:fuchsia.data_rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-url", |
| "//src/sys/pkg/lib/far/rust:fuchsia-archive", |
| "//src/sys/pkg/lib/fuchsia-pkg", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:camino", |
| "//third_party/rust_crates:rayon", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:structopt", |
| ] |
| |
| test_deps = [ |
| "//third_party/rust_crates:assert_matches", |
| "//third_party/rust_crates:tempfile", |
| ] |
| |
| sources = [ |
| "src/hermeticity.rs", |
| "src/main.rs", |
| "src/opts.rs", |
| ] |
| |
| testonly = true |
| } |
| |
| install_host_tools("install") { |
| testonly = true |
| deps = [ ":validate_test_type" ] |
| outputs = [ "validate_test_type" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":validate_test_type_test($host_toolchain)" ] |
| } |