blob: b783c58d7949883c1311d7188b59d6b4898493ec [file] [log] [blame]
# 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/components.gni")
import("//build/rust/rustc_binary.gni")
rustc_binary("bin") {
testonly = true
edition = "2021"
name = "io_conformance_harness_rustvfs"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.io.test:fuchsia.io.test_rust",
"//src/lib/fdio/rust:fdio",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/storage/lib/vfs/rust:vfs",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
sources = [ "src/main.rs" ]
}
fuchsia_component("rustvfs-harness") {
testonly = true
manifest = "meta/rustvfs_harness.cml"
deps = [ ":bin" ]
}
fuchsia_component("rustvfs-test") {
testonly = true
manifest = "//src/storage/conformance/meta/rustvfs_io1_conformance_test.cml"
deps = [ "//src/storage/conformance:io1_conformance_test" ]
}
fuchsia_test_package("rustvfs-io1-conformance-test") {
test_components = [ ":rustvfs-test" ]
deps = [ ":rustvfs-harness" ]
}