| # 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/rust/rustc_binary.gni") |
| import("//build/rust/rustc_test.gni") |
| import("//build/test/test_package.gni") |
| |
| rustc_test("tests_bin") { |
| edition = "2018" |
| source_root = "main.rs" |
| name = "run_test_suite_integration_tests" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager-rustc", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/sys/run_test_suite:lib", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:serde_json", |
| ] |
| |
| sources = [ "main.rs" ] |
| } |
| |
| executable("run_test_suite_long_running_test") { |
| testonly = true |
| sources = [ "long_running_test.cc" ] |
| |
| deps = [ |
| "//garnet/public/lib/gtest", |
| "//src/lib/fxl/test:gtest_main", |
| ] |
| } |
| |
| test_package("run_test_suite_integration_tests") { |
| deps = [ |
| ":run_test_suite_long_running_test", |
| ":tests_bin", |
| "//examples/tests:all_bins", |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path("//examples/tests/meta/failing-test-example.cml") |
| dest = "failing-test-example.cm" |
| }, |
| { |
| path = rebase_path("//examples/tests/meta/disabled-test-example.cml") |
| dest = "disabled-test-example.cm" |
| }, |
| { |
| path = rebase_path("//examples/tests/meta/incomplete-test-example.cml") |
| dest = "incomplete-test-example.cm" |
| }, |
| { |
| path = rebase_path("//examples/tests/meta/invalid-test-example.cml") |
| dest = "invalid-test-example.cm" |
| }, |
| { |
| path = rebase_path("//examples/tests/meta/no-test-example.cml") |
| dest = "no-test-example.cm" |
| }, |
| { |
| path = rebase_path("//examples/tests/meta/huge-test-example.cml") |
| dest = "huge-test-example.cm" |
| }, |
| |
| { |
| path = rebase_path( |
| "//examples/tests/meta/no-onfinished-after-test-example.cml") |
| dest = "no-onfinished-after-test-example.cm" |
| }, |
| { |
| path = rebase_path("//examples/tests/meta/passing-test-example.cml") |
| dest = "passing-test-example_v2.cm" |
| }, |
| { |
| path = rebase_path( |
| "//examples/components/routing/echo_server/meta/echo_server.cml") |
| dest = "echo_server.cm" |
| }, |
| { |
| path = rebase_path("//examples/tests/meta/echo_test_client.cml") |
| dest = "echo_test_client.cm" |
| }, |
| { |
| path = rebase_path("//examples/tests/meta/echo_test_realm.cml") |
| dest = "echo_test_realm.cm" |
| }, |
| { |
| path = rebase_path("meta/long_running_test.cml") |
| dest = "long_running_test.cm" |
| }, |
| ] |
| |
| binaries = [ |
| { |
| name = "passing-test-example" |
| }, |
| { |
| name = "no-onfinished-after-test-example" |
| }, |
| { |
| name = "disabled-test-example" |
| }, |
| { |
| name = "failing-test-example" |
| }, |
| { |
| name = "no-test-example" |
| }, |
| { |
| name = "huge-test-example" |
| }, |
| { |
| name = "echo_test_client" |
| }, |
| { |
| name = "echo_server" |
| }, |
| { |
| name = "incomplete-test-example" |
| }, |
| { |
| name = "invalid-test-example" |
| }, |
| { |
| name = "run_test_suite_long_running_test" |
| dest = "long_running_test" |
| }, |
| ] |
| |
| tests = [ |
| { |
| name = "run_test_suite_integration_tests" |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":run_test_suite_integration_tests", |
| "//examples/tests", |
| "//src/sys/component_manager_for_test", |
| ] |
| } |