| # Copyright 2025 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") |
| |
| python_host_test("fidlgen_python_external_library_test") { |
| main_source = "test_external_library.py" |
| libraries = [ "fidl:test.python.struct_python" ] |
| } |
| |
| python_host_test("fidlgen_python_const_test") { |
| main_source = "test_const.py" |
| libraries = [ "//tools/fidl/fidlc/testdata:test.constants_python" ] |
| } |
| |
| # Test for ability to compile types associated with all protocol method shapes. |
| group("fidlgen_python_protocol_compile_test") { |
| testonly = true |
| deps = [ "fidl:test.python.protocol_python" ] |
| } |
| |
| python_host_test("fidlgen_python_client_test") { |
| main_source = "test_client.py" |
| libraries = [ |
| "//src/developer/ffx/fidl:fuchsia.developer.ffx_python", |
| "//src/developer/ffx/lib/fuchsia-controller:fidl_bindings", |
| "//src/developer/ffx/lib/fuchsia-controller:fuchsia_controller_py", |
| ] |
| } |
| |
| python_host_test("fidlgen_python_server_and_event_handler_test") { |
| main_source = "test_server_and_event_handler.py" |
| libraries = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io_python", |
| "//src/developer/ffx/fidl:fuchsia.developer.ffx_python", |
| "//src/developer/ffx/lib/fuchsia-controller:fidl_bindings", |
| "//src/developer/ffx/lib/fuchsia-controller:fuchsia_controller_py", |
| "//src/developer/ffx/lib/fuchsia-controller/fidl:fuchsia.controller.othertest_python", |
| "//src/developer/ffx/lib/fuchsia-controller/fidl:fuchsia.controller.test_python", |
| ] |
| } |
| |
| python_host_test("fidlgen_python_union_test") { |
| main_source = "test_union.py" |
| libraries = [ |
| "//src/developer/ffx/lib/fuchsia-controller:fidl_bindings", |
| "//src/developer/ffx/lib/fuchsia-controller/fidl:fuchsia.controller.test_python", |
| "fidl:test.python.protocol_python", |
| ] |
| } |
| |
| python_host_test("fidlgen_python_reserved_names_test") { |
| main_source = "test_reserved_names.py" |
| libraries = [ "fidl:test.python.reserved_python" ] |
| } |