| # Copyright 2018 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_test.gni") |
| |
| rustc_test("intl_wisdom_test_bin") { |
| name = "intl_wisdom_test" |
| edition = "2021" |
| |
| sources = [ "src/lib.rs" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.data:fuchsia.data-rustc", |
| "//src/lib/diagnostics/reader/rust", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-component-test", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| ] |
| } |
| |
| fuchsia_component("intl_examples_test") { |
| testonly = true |
| manifest = "meta/integration_tests.cml" |
| deps = [ ":intl_wisdom_test_bin" ] |
| } |
| |
| fuchsia_test_package("intl_wisdom_cpp_test") { |
| test_components = [ ":intl_examples_test" ] |
| deps = [ |
| ":intl_wisdom_test_resources", |
| "//examples/intl/wisdom:intl_wisdom_realm", |
| "//examples/intl/wisdom/cpp:intl_wisdom_client_cpp", |
| "//examples/intl/wisdom/cpp:intl_wisdom_server_cpp", |
| "//src/intl:icudtl", |
| ] |
| } |
| |
| fuchsia_test_package("intl_wisdom_rust_test") { |
| test_components = [ ":intl_examples_test" ] |
| deps = [ |
| ":intl_wisdom_test_resources", |
| "//examples/intl/wisdom:intl_wisdom_realm", |
| "//examples/intl/wisdom/rust:intl_wisdom_client_rust", |
| "//examples/intl/wisdom/rust:intl_wisdom_server_rust", |
| "//src/intl:icudtl", |
| ] |
| } |
| |
| resource("intl_wisdom_test_resources") { |
| sources = [ "golden-output.txt" ] |
| outputs = [ "data/{{source_file_part}}" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":intl_wisdom_cpp_test", |
| ":intl_wisdom_rust_test", |
| ] |
| } |