| # 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("//sdk/cts/build/cts.gni") |
| |
| cts_rustc_test("collections_integration_test_bin") { |
| name = "collections_integration_test" |
| edition = "2018" |
| source_root = "integration_test.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.process:fuchsia.process-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-fs", |
| "//src/lib/fuchsia-runtime", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//src/sys/component_manager/tests/fidl:components-rustc", |
| "//third_party/rust_crates:anyhow", |
| ] |
| |
| sources = [ "integration_test.rs" ] |
| } |
| |
| cts_rustc_binary("write_startup_socket_bin") { |
| testonly = true |
| name = "write_startup_socket" |
| edition = "2018" |
| source_root = "write_startup_socket.rs" |
| deps = [ |
| "//src/lib/fuchsia-runtime", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| ] |
| |
| sources = [ "write_startup_socket.rs" ] |
| } |
| |
| cts_fuchsia_component("write_startup_socket") { |
| testonly = true |
| prebuilt_only = true |
| deps = [ ":write_startup_socket_bin" ] |
| manifest = "meta/write_startup_socket.cml" |
| } |
| |
| cts_fuchsia_component("trigger_a") { |
| testonly = true |
| prebuilt_only = true |
| deps = [ "//src/sys/component_manager/tests:trigger_bin" ] |
| manifest = "meta/trigger_a.cml" |
| } |
| |
| cts_fuchsia_component("trigger_b") { |
| testonly = true |
| prebuilt_only = true |
| deps = [ "//src/sys/component_manager/tests:trigger_bin" ] |
| manifest = "meta/trigger_b.cml" |
| } |
| |
| cts_fuchsia_component("trigger_realm") { |
| testonly = true |
| prebuilt_only = true |
| manifest = "meta/trigger_realm.cml" |
| } |
| |
| cts_fuchsia_component("collections_integration_test_component") { |
| testonly = true |
| prebuilt_only = true |
| manifest = "meta/collections_integration_test.cml" |
| deps = [ |
| ":collections_integration_test_bin", |
| ":trigger_a", |
| ":trigger_b", |
| ":trigger_realm", |
| ":write_startup_socket", |
| "//src/sys/component_manager/testing/echo_server", |
| ] |
| } |
| |
| cts_fuchsia_test_package("collections_integration_test") { |
| package_name = "collections_integration_test" |
| test_components = [ ":collections_integration_test_component" ] |
| } |
| |
| sdk_molecule("test_sdks") { |
| testonly = true |
| deps = [ ":collections_integration_test_sdk" ] |
| } |