blob: 06c0da9ab38b16b42204a46d017916c605394a18 [file] [log] [blame]
# Copyright 2022 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")
if (is_host) {
rustc_binary("bin") {
edition = "2021"
name = "expectation_file_preprocessor"
with_unit_tests = true
deps = [
"//src/lib/testing/expectation/ser",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:glob",
"//third_party/rust_crates:serde_json5",
]
sources = [ "src/main.rs" ]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
test_deps = [
"//third_party/rust_crates:pathdiff",
"//third_party/rust_crates:pretty_assertions",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
]
}
}
group("tests") {
testonly = true
deps = [ ":bin_test($host_toolchain)" ]
}