| # Copyright 2026 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/python/python_library.gni") | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":client_test($host_toolchain)", | |
| "zxdb:tests", | |
| ] | |
| } | |
| if (is_host) { | |
| # Keep the GN host test above the sentinel because bazel2gn does not | |
| # translate host_py_test. | |
| python_host_test("client_test") { | |
| main_source = "tests/client_test.py" | |
| deps = [ ":lib" ] | |
| # Explicitly depend on pydantic-core's test_data. This is to ensure that the | |
| # module's DSO is bundled together with our test so the top-level pydantic | |
| # module loads correctly. | |
| test_data_deps = [ "//build/prebuilt/third_party/pydantic-core:test_data" ] | |
| } | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| if (is_host) { | |
| python_library("lib") { | |
| sources = [ | |
| "pydap/__init__.py", | |
| "pydap/client.py", | |
| "pydap/dap_types.py", | |
| "pydap/models.py", | |
| ] | |
| imports = [ "." ] | |
| visibility = [ | |
| ":*", | |
| "//scripts/debug/zxdb_cli/daemon:*", | |
| "//scripts/debug/zxdb_cli/shared:*", | |
| "//src/developer/debug/e2e_tests/dap_integration_tests:*", | |
| "//src/lib/debug/dap/python/zxdb:*", | |
| ] | |
| deps = [ "//third_party/pylibs/pydantic" ] | |
| enable_mypy = false | |
| } | |
| } |