blob: e58e50482f8b7123c05d3dd12cb8771022c9c3eb [file]
# Copyright 2024 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")
if (is_host) {
# Stays in GN: this test relies on the default `main_callable`
# (unittest.main) to run its test cases, which Bazel's host_py_test() can't
# express, because it only runs the main file and tests/test_fx_cmd.py
# has no `__main__` block.
python_host_test("fx_cmd_test") {
main_source = "tests/test_fx_cmd.py"
sources = [ "tests/test_fx_cmd.py" ]
extra_args = [ "-v" ]
libraries = [ ":fx_cmd" ]
}
}
group("tests") {
testonly = true
deps = [ ":fx_cmd_test($host_toolchain)" ]
}
## 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("fx_cmd") {
sources = [
"__init__.py",
"lib.py",
]
visibility = [
":*",
"//scripts/debug/zxdb_cli/cli:*",
"//scripts/debug/zxdb_cli/daemon_manager:*",
"//scripts/fxtest/python:*",
"//scripts/lib/ffx_cmd:*",
"//scripts/lib/package_server:*",
"//tools/devshell/python/status:*",
"//tools/devshell/python/test-category:*",
]
deps = [
"//scripts/lib/async_utils",
"//scripts/lib/build_dir",
]
}
}