| # 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/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 = [ "${root_out_dir}/libfuchsia_controller_internal.so" ] | |
| deps = [ | |
| "//src/developer/fuchsia-controller:fuchsia_controller_py", | |
| "//src/developer/fuchsia-controller:lib", | |
| ] | |
| } | |
| 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", | |
| ] | |
| } | |
| python_host_test("fuchsia_controller_encode_test") { | |
| main_source = "encode.py" | |
| libraries = [ | |
| "//src/developer/fuchsia-controller/fidl:fuchsia.controller.othertest_python", | |
| "//src/developer/fuchsia-controller/fidl:fuchsia.controller.test_python", | |
| "//src/developer/fuchsia-controller:fidl_bindings", | |
| "//src/developer/fuchsia-controller:fuchsia_controller_py", | |
| ] | |
| test_data_deps = [ ":fuchsia_controller_test_data" ] | |
| } | |
| python_host_test("fuchsia_controller_errors_test") { | |
| main_source = "errors.py" | |
| libraries = [ "//src/developer/fuchsia-controller:fuchsia_controller_py" ] | |
| test_data_deps = [ ":fuchsia_controller_test_data" ] | |
| } | |
| python_host_test("fuchsia_controller_isolate_directory_test") { | |
| main_source = "isolate_directory.py" | |
| libraries = [ "//src/developer/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/fuchsia-controller/fidl:fuchsia.controller.othertest_python", | |
| "//src/developer/fuchsia-controller/fidl:fuchsia.controller.test_python", | |
| "//src/developer/fuchsia-controller:fidl_bindings", | |
| "//src/developer/fuchsia-controller:fuchsia_controller_py", | |
| ] | |
| test_data_deps = [ ":fuchsia_controller_test_data" ] | |
| } | |
| python_host_test("fuchsia_controller_fidl_channel_test") { | |
| main_source = "fidl_channel.py" | |
| libraries = [ | |
| "//src/developer/fuchsia-controller:fidl_bindings", | |
| "//src/developer/fuchsia-controller:fuchsia_controller_py", | |
| ] | |
| test_data_deps = [ ":fuchsia_controller_test_data" ] | |
| } | |
| python_host_test("fuchsia_controller_socket_test") { | |
| main_source = "socket_tests.py" | |
| libraries = [ | |
| "//src/developer/fuchsia-controller:fidl_bindings", | |
| "//src/developer/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/fuchsia-controller:fidl_bindings", | |
| "//src/developer/fuchsia-controller:fuchsia_controller_py", | |
| ] | |
| test_data_deps = [ ":fuchsia_controller_test_data" ] | |
| } | |
| python_host_test("fuchsia_controller_interruption_test") { | |
| main_source = "interruption.py" | |
| libraries = [ "//src/developer/fuchsia-controller:fuchsia_controller_py" ] | |
| test_data_deps = [ ":fuchsia_controller_test_data" ] | |
| } |