blob: 7d80345b94a9088ccb05a50382e34508fec4daab [file] [log] [blame]
# Copyright 2023 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/fidl/toolchain.gni")
import("//build/python/python_host_test.gni")
import("//build/testing/host_test_data.gni")
host_test_data("fuchsia_controller_host_test_data") {
# Needed for SDK inclusion
testonly = false
sources = [
get_label_info(":anything($default_toolchain)", "root_out_dir") +
"/all_fidl_json.txt",
"${root_out_dir}/libfidl_codec.so",
"${root_out_dir}/libfuchsia_controller_internal.so",
]
deps = [
"//src/developer/ffx/lib/fuchsia-controller:fuchsia_controller_py",
"//src/developer/ffx/lib/fuchsia-controller:lib",
"//src/developer/ffx/lib/fuchsia-controller/cpp:libfidl_codec",
]
}
group("fuchsia_controller_test_data") {
# Needed for SDK inclusion
testonly = false
deps = [
":fuchsia_controller_host_test_data",
"//src/developer/ffx:test_data",
"//src/developer/ffx/fidl:fuchsia.developer.ffx_host_test_data",
]
}
group("fuchsia_controller_fidl_test_data") {
testonly = true
deps = [
"//src/developer/ffx/lib/fuchsia-controller/fidl:fuchsia.controller.othertest_host_test_data",
"//src/developer/ffx/lib/fuchsia-controller/fidl:fuchsia.controller.test_host_test_data",
"//src/lib/fidl_codec:fidl-composed_host_test_data",
"//src/lib/fidl_codec:fidl-sys_host_test_data",
"//src/lib/fidl_codec:fidl_host_test_data",
]
}
python_host_test("fuchsia_controller_ir_test") {
# TODO(https://fxbug.dev/346628306): Resolve mypy errors and enable type checking
enable_mypy = false
main_source = "ir.py"
libraries = [ "//src/developer/ffx/lib/fuchsia-controller/cpp:fidl_codec" ]
test_data_deps = [ ":fuchsia_controller_test_data" ]
}
python_host_test("fuchsia_controller_encode_test") {
main_source = "encode.py"
sources = [ "common.py" ]
libraries = [ "//src/developer/ffx/lib/fuchsia-controller/cpp:fidl_codec" ]
test_data_deps = [
":fuchsia_controller_fidl_test_data",
":fuchsia_controller_test_data",
]
}
python_host_test("fuchsia_controller_errors_test") {
# TODO(https://fxbug.dev/346628306): Resolve mypy errors and enable type checking
enable_mypy = false
main_source = "errors.py"
libraries =
[ "//src/developer/ffx/lib/fuchsia-controller:fuchsia_controller_py" ]
test_data_deps = [ ":fuchsia_controller_test_data" ]
}
python_host_test("fuchsia_controller_isolate_directory_test") {
# TODO(https://fxbug.dev/346628306): Resolve mypy errors and enable type checking
enable_mypy = false
main_source = "isolate_directory.py"
libraries =
[ "//src/developer/ffx/lib/fuchsia-controller:fuchsia_controller_py" ]
test_data_deps = [ ":fuchsia_controller_test_data" ]
}
python_host_test("fuchsia_controller_e2e_test") {
main_source = "e2e.py"
libraries = [
"//src/developer/ffx/fidl:fuchsia.developer.ffx_python",
"//src/developer/ffx/lib/fuchsia-controller/fidl:fuchsia.controller.othertest_python",
"//src/developer/ffx/lib/fuchsia-controller/fidl:fuchsia.controller.test_python",
"//src/developer/ffx/lib/fuchsia-controller:fidl_bindings",
"//src/developer/ffx/lib/fuchsia-controller:fuchsia_controller_py",
]
test_data_deps = [ ":fuchsia_controller_test_data" ]
}
python_host_test("fuchsia_controller_fidl_channel_test") {
# TODO(https://fxbug.dev/346628306): Resolve mypy errors and enable type checking
enable_mypy = false
main_source = "fidl_channel.py"
libraries =
[ "//src/developer/ffx/lib/fuchsia-controller:fuchsia_controller_py" ]
test_data_deps = [ ":fuchsia_controller_test_data" ]
}
python_host_test("fuchsia_controller_socket_test") {
# TODO(https://fxbug.dev/346628306): Resolve mypy errors and enable type checking
enable_mypy = false
main_source = "socket_tests.py"
libraries = [
"//src/developer/ffx/lib/fuchsia-controller:fidl_bindings",
"//src/developer/ffx/lib/fuchsia-controller:fuchsia_controller_py",
]
test_data_deps = [ ":fuchsia_controller_test_data" ]
}
python_host_test("fuchsia_controller_fidl_common_test") {
main_source = "fidl_common.py"
libraries = [
"//src/developer/ffx/lib/fuchsia-controller:fidl_bindings",
"//src/developer/ffx/lib/fuchsia-controller:fuchsia_controller_py",
]
test_data_deps = [ ":fuchsia_controller_test_data" ]
}