blob: 84d4927c80fabe7f75e5ff758b69968b48dd1fcb [file]
# 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/bazel/bazel_test_suite.gni")
bazel_test_suite("bazel_tests") {
host_tests = [ "//src/lib/testing/expectation/preprocess:bin_test" ]
}
group("tests") {
testonly = true
deps = [
":bazel_tests",
":bin_test($host_toolchain)",
]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
if (is_host) {
rustc_binary("bin") {
sources = [ "src/main.rs" ]
configs += [ "//build/config/rust/lints:deny_unused_results" ]
output_name = "expectation_file_preprocessor"
edition = "2024"
visibility = [
":*",
"//src/*",
"//third_party/gvisor_syscall_tests/*",
"//vendor/*",
]
deps = [
"//src/lib/testing/expectation/ser",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:glob",
"//third_party/rust_crates:serde_json5",
]
}
}
if (is_host) {
rustc_test("bin_test") {
sources = [ "src/main.rs" ]
edition = "2024"
deps = [
"//src/lib/testing/expectation/ser",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:glob",
"//third_party/rust_crates:serde_json5",
] +
[
"//third_party/rust_crates:pathdiff",
"//third_party/rust_crates:pretty_assertions",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
]
source_root = "src/main.rs"
configs += [ "//build/config/rust/lints:deny_unused_results" ]
output_name = "expectation_file_preprocessor_bin_test"
}
}