| # Copyright 2021 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("//sdk/ctf/build/ctf.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":ctf-tests", |
| ":fuchsia-driver-test_tests-package", |
| ] |
| } |
| |
| group("ctf-tests") { |
| testonly = true |
| deps = [ ":fuchsia-driver-test_tests_archive" ] |
| } |
| |
| executable("bin") { |
| output_name = "driver_test_realm_ctf_test" |
| testonly = true |
| sources = [ "test.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.driver.development:fuchsia.driver.development_cpp", |
| "//sdk/fidl/fuchsia.driver.test:fuchsia.driver.test_cpp", |
| "//sdk/lib/component/incoming/cpp", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_component("test-suite") { |
| manifest = "meta/test-suite.cml" |
| deps = [ ":bin" ] |
| testonly = true |
| } |
| |
| ctf_fuchsia_package("fuchsia-driver-test_tests") { |
| testonly = true |
| package_name = "fuchsia-driver-test_tests" |
| deps = [ ":test-suite" ] |
| } |
| |
| fuchsia_test_component("test-root") { |
| testonly = true |
| manifest = "meta/test-root.cml" |
| test_type = "ctf" |
| } |
| |
| fuchsia_test_package("fuchsia-driver-test_tests-package") { |
| test_components = [ ":test-root" ] |
| subpackages = [ ":fuchsia-driver-test_tests" ] |
| deps = [ |
| "//sdk/lib/driver_test_realm:static", |
| "//src/devices/misc/drivers/test-parent", |
| ] |
| test_specs = { |
| # Allow error logging for absent driver manifest files |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |