blob: acf37b384b2f7f7bf4125f510b59e4ab606b13ca [file]
# 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/python/python_library.gni")
group("tests") {
testonly = true
deps = [ ":json_get_test($host_toolchain)" ]
}
if (is_host) {
# Stays in GN: this test relies on `main_callable` to run its test cases,
# which Bazel's host_py_test() can't express, because it only runs the main
# file and tests/json_get_test.py has no `__main__` block.
python_host_test("json_get_test") {
main_source = "tests/json_get_test.py"
main_callable = "unittest.main"
extra_args = [ "-v" ]
libraries = [ ":json_get" ]
}
}
## 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("json_get") {
sources = [
"__init__.py",
"json_get.py",
]
visibility = [
":*",
"//scripts/disable_ctf_tests:*",
"//sdk/ctf:*",
]
}
}