| # 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/bazel/bazel_test_suite.gni") | |
| import("//build/python/python_library.gni") | |
| import("//build/testing/python_build_time_tests.gni") | |
| bazel_test_suite("bazel_tests") { | |
| host_tests = [ "//scripts/lib/agents:agents_tests" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":agents_source_path_test($host_toolchain)", | |
| ":bazel_tests", | |
| ] | |
| } | |
| if (is_host) { | |
| # Bazel has no equivalent of python_build_time_tests(), so this test stays | |
| # in GN. | |
| python_build_time_tests("agents_source_path_test") { | |
| tests = [ "tests/agents_test.py" ] | |
| inputs = [ | |
| "//tools/devshell/lib/agent_session_ids.txt", | |
| "//tools/devshell/lib/agents.txt", | |
| ] | |
| deps = [ ":agents" ] | |
| } | |
| } | |
| ## 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("agents") { | |
| sources = [ | |
| "__init__.py", | |
| "agents.py", | |
| ] | |
| visibility = [ | |
| ":*", | |
| "//scripts/fxtest/python:*", | |
| ] | |
| data_package_name = "data" | |
| data_sources = [ | |
| "//tools/devshell/lib/agent_session_ids.txt", | |
| "//tools/devshell/lib/agents.txt", | |
| ] | |
| } | |
| } |