blob: 31583746bfcd0c776e772993dc52d780834c18b7 [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_library.gni")
import("//build/rust/rustc_test.gni")
# Full list of conformance tests should be included here. Add deps to the test packages for
# additional filesystem conformance tests and test harnesses.
group("tests") {
testonly = true
deps = [
":io_conformance_util_tests",
"//src/storage/conformance/conformance_harness/cppvfs",
"//src/storage/conformance/conformance_harness/fxfs",
"//src/storage/conformance/conformance_harness/memfs",
"//src/storage/conformance/conformance_harness/minfs",
"//src/storage/conformance/conformance_harness/rustvfs",
"//src/storage/conformance/conformance_harness/sdkcpp",
]
}
rustc_library("io_conformance_util") {
name = "io_conformance_util"
with_unit_tests = true
edition = "2021"
testonly = true
deps = [
"//sdk/fidl/fuchsia.component:fuchsia.component_rust",
"//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.io.test:fuchsia.io.test_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/storage/lib/vfs/rust:vfs",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
]
sources = [
"src/flags.rs",
"src/lib.rs",
"src/test_harness.rs",
]
}
fuchsia_unittest_package("io_conformance_util_tests") {
deps = [ ":io_conformance_util_test" ]
}
rustc_test("conformance_test") {
name = "conformance_test"
edition = "2021"
source_root = "tests/tests.rs"
deps = [
":io_conformance_util",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-fs",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/storage/lib/vfs/rust:vfs",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:futures",
]
sources = [
"tests/attributes.rs",
"tests/clone_reopen.rs",
"tests/describe.rs",
"tests/directory.rs",
"tests/directory/create.rs",
"tests/directory/get_token.rs",
"tests/directory/link.rs",
"tests/directory/open.rs",
"tests/directory/rename.rs",
"tests/directory/unlink.rs",
"tests/directory/watch.rs",
"tests/file.rs",
"tests/file/get_backing_memory.rs",
"tests/file/link_into.rs",
"tests/file/read.rs",
"tests/file/resize.rs",
"tests/file/write.rs",
"tests/get_connection_info.rs",
"tests/node.rs",
"tests/remote.rs",
"tests/tests.rs",
]
}