blob: 89ba6b001976f15568340cd45df7b6bea3ee2f46 [file] [log] [blame]
# Copyright 2019 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")
import("//build/rust/rustc_test.gni")
rustc_test("storage_integration_test_bin") {
name = "storage_integration_test"
edition = "2021"
source_root = "integration_test.rs"
deps = [
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component-test",
"//src/sys/lib/component-events",
]
sources = [ "integration_test.rs" ]
}
rustc_test("storage_admin_integration_test_bin") {
name = "storage_admin_integration_test"
edition = "2021"
source_root = "admin_integration_test.rs"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/async-utils",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-component-test",
"//src/lib/fuchsia-fs",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/lib/cm_moniker",
"//src/sys/lib/component-events",
"//src/sys/lib/moniker",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:maplit",
"//third_party/rust_crates:parking_lot",
]
sources = [ "admin_integration_test.rs" ]
}
rustc_binary("storage_realm_coll_bin") {
name = "storage_realm_coll"
edition = "2021"
source_root = "storage_realm_coll.rs"
deps = [
"//sdk/fidl/fuchsia.component:fuchsia.component-rustc",
"//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl-rustc",
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/sys/lib/component-events",
]
sources = [ "storage_realm_coll.rs" ]
}
rustc_binary("storage_realm_coll_invalid_route_bin") {
name = "storage_realm_coll_invalid_route"
edition = "2021"
source_root = "storage_realm_coll_invalid_route.rs"
deps = [
"//sdk/fidl/fuchsia.component:fuchsia.component-rustc",
"//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl-rustc",
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/lib/component-events",
]
sources = [ "storage_realm_coll_invalid_route.rs" ]
}
rustc_binary("storage_user_bin") {
name = "storage_user"
edition = "2021"
source_root = "storage_user.rs"
deps = [ "//src/lib/fuchsia" ]
sources = [ "storage_user.rs" ]
}
rustc_binary("only_exits_bin") {
name = "only_exits"
edition = "2021"
source_root = "only_exits.rs"
deps = []
sources = [ "only_exits.rs" ]
}
fuchsia_component("memfs") {
deps = [ "//src/sys/component_manager/tests/memfs" ]
manifest = "meta/memfs.cml"
}
fuchsia_component("storage_user") {
deps = [ ":storage_user_bin" ]
manifest = "meta/storage_user.cml"
}
fuchsia_component("storage_realm") {
manifest = "meta/storage_realm.cml"
}
fuchsia_component("storage_realm_coll") {
deps = [ ":storage_realm_coll_bin" ]
manifest = "meta/storage_realm_coll.cml"
}
fuchsia_component("storage_realm_coll_invalid_route") {
deps = [ ":storage_realm_coll_invalid_route_bin" ]
manifest = "meta/storage_realm_coll_invalid_route.cml"
}
fuchsia_component("only_exits") {
deps = [ ":only_exits_bin" ]
manifest = "meta/only_exits.cml"
}
fuchsia_unittest_component("storage_integration_test_component") {
component_name = "storage_integration_test"
manifest = "meta/storage_integration_test.cml"
deps = [ ":storage_integration_test_bin" ]
}
fuchsia_unittest_component("storage_admin_integration_test_component") {
component_name = "storage_admin_integration_test"
manifest = "meta/storage_admin_integration_test.cml"
deps = [ ":storage_admin_integration_test_bin" ]
}
fuchsia_test_package("storage_integration_test") {
test_components = [
":storage_integration_test_component",
":storage_admin_integration_test_component",
]
deps = [
":memfs",
":only_exits",
":storage_realm",
":storage_realm_coll",
":storage_realm_coll_invalid_route",
":storage_user",
"//src/sys/component_manager:component-manager-realm-builder-debug-cmp",
]
}