blob: 1be674d3ef7417b9f48f55a3e2c615d2e1c692e9 [file] [log] [blame]
# Copyright 2022 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/bazel/export_fuchsia_package_to_bazel.gni")
import("//build/components.gni")
executable("bin") {
testonly = true
output_name = "client_suite_harness"
sources = [
"harness.cc",
"harness.h",
"ordinals.h",
"tests/basic_tests.cc",
"tests/coding_tests.cc",
"tests/message_header_tests.cc",
"tests/peer_closed_tests.cc",
"tests/unknown_interactions_tests.cc",
]
deps = [
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/fdio",
"//sdk/lib/fidl",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/loop_fixture",
"//src/lib/testing/predicates",
"//src/tests/fidl/dynsuite/channel_util",
"//src/tests/fidl/dynsuite/client_suite/fidl:fidl.clientsuite_cpp",
]
}
fuchsia_component("component") {
testonly = true
component_name = "harness"
manifest = "meta/harness.cml"
deps = [ ":bin" ]
}
fuchsia_package("harness") {
package_name = "fidl_client_suite_test_harness"
testonly = true
deps = [ ":component" ]
}
export_fuchsia_package_to_bazel("harness.bazel_input") {
testonly = true
package = ":harness"
}