blob: 8a1aa6b8d67a47833b7471be8c8fc9942d5f8e5f [file] [log] [blame]
# Copyright 2021 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/components.gni")
import("//build/rust/rustc_macro.gni")
import("//build/rust/rustc_test.gni")
rustc_macro("fixture") {
edition = "2021"
source_root = "src/lib.rs"
deps = [
"//third_party/rust_crates:proc-macro2",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:syn",
]
sources = [ "src/lib.rs" ]
configs -= [ "//build/config/rust:allow_unused_results" ]
}
rustc_test("fixture-tests") {
edition = "2021"
source_root = "src/tests.rs"
deps = [ ":fixture" ]
test_deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
]
sources = [ "src/tests.rs" ]
configs -= [ "//build/config/rust:allow_unused_results" ]
}
fuchsia_unittest_package("fixture-tests-pkg") {
package_name = "fixture-tests"
component_name = "fixture-tests"
deps = [ ":fixture-tests" ]
}
group("tests") {
testonly = true
deps = [ ":fixture-tests-pkg" ]
}