| # 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_test.gni") |
| |
| rustc_test("tests_bin") { |
| edition = "2021" |
| source_root = "main.rs" |
| name = "run_test_suite_integration_tests" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager_rust", |
| "//src/lib/async-utils", |
| "//src/lib/diagnostics/data/rust", |
| "//src/lib/diagnostics/reader/rust", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/test_util", |
| "//src/lib/testing/fixture", |
| "//src/lib/testing/test_list", |
| "//src/sys/run_test_suite:lib", |
| "//src/sys/run_test_suite/directory", |
| "//third_party/rust_crates:assert_matches", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:regex", |
| "//third_party/rust_crates:tempfile", |
| "//third_party/rust_crates:test-case", |
| ] |
| |
| sources = [ "main.rs" ] |
| } |
| |
| fuchsia_unittest_package("run_test_suite_integration_tests") { |
| manifest = "meta/run_test_suite_integration_tests.cml" |
| deps = [ |
| ":tests_bin", |
| "test_data", |
| "//examples/tests:disabled-test-example", |
| "//examples/tests:echo_test_client", |
| "//examples/tests:echo_test_realm", |
| "//examples/tests:failing-test-example", |
| "//examples/tests:get-tests-closes-channel-example", |
| "//examples/tests:get-tests-hangs-example", |
| "//examples/tests:huge-test-example", |
| "//examples/tests:incomplete-test-example", |
| "//examples/tests:invalid-test-example", |
| "//examples/tests:no-onfinished-after-test-example", |
| "//examples/tests:no-test-example", |
| "//examples/tests:passing-test-example", |
| "//examples/tests:run-closes-channel-example", |
| "//examples/tests:run-hangs-example", |
| "//examples/tests:test-with-stderr", |
| "//examples/tests/rust:custom_artifact_user_cmp", |
| "//src/sys/component_manager/testing/echo_server", |
| "//src/sys/test_manager:test_manager_for_test_cmp", |
| ] |
| |
| # There's expected error logs that happen due to races given that the logging component just |
| # logs and exits quickly. |
| test_specs = { |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":run_test_suite_integration_tests", |
| "//examples/tests", |
| ] |
| } |