blob: a794ce6d27a3687e9938306e31492f9a6c9cc2ec [file] [edit]
# 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/testing/host_test_data.gni")
if (is_host) {
host_test_data("daemon_test_data") {
_daemon_target = "//scripts/debug/zxdb_cli/daemon:daemon_bin"
sources = [ get_label_info(_daemon_target, "target_out_dir") +
"/zxdb-daemon.pyz" ]
outputs = [ "${target_out_dir}/cli_integration_test/zxdb-daemon" ]
deps = [ _daemon_target ]
}
python_host_test("cli_integration_test") {
main_source = "integration_test_cli.py"
libraries = [
"//scripts/debug/zxdb_cli/cli:cli_lib",
"//scripts/debug/zxdb_cli/daemon:daemon_lib",
"//third_party/python_portpicker:portpicker",
]
test_data_deps = [
":daemon_test_data",
# 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.
"//prebuilt/third_party/pydantic-core:test_data",
]
}
}