| # 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_binary.gni") |
| import("//build/testing/python_build_time_tests.gni") |
| |
| if (is_host) { |
| python_build_time_tests("discover_migration_candidates_test") { |
| tests = [ "discover_migration_candidates_test.py" ] |
| inputs = [ |
| "discover_migration_candidates.py", |
| "gn_runner.py", |
| "shell_utils.py", |
| ] |
| } |
| |
| python_build_time_tests("shell_utils_test") { |
| tests = [ "shell_utils_test.py" ] |
| inputs = [ "shell_utils.py" ] |
| } |
| |
| python_build_time_tests("normalize_rustc_args_test") { |
| tests = [ "normalize_rustc_args_test.py" ] |
| inputs = [ "normalize_rustc_args.py" ] |
| } |
| |
| python_build_time_tests("gn_runner_test") { |
| tests = [ "gn_runner_test.py" ] |
| inputs = [ |
| "gn_runner.py", |
| "//build/bazel/scripts:build_utils.py", |
| ] |
| } |
| |
| python_build_time_tests("build_command_query_utils_test") { |
| tests = [ "build_command_query_utils_test.py" ] |
| inputs = [ |
| "build_command_query_utils.py", |
| "//build/api/ninja_artifacts.py", |
| "//build/bazel/scripts/bazel_build_args.py", |
| "//build/bazel/scripts/build_utils.py", |
| ] |
| } |
| |
| python_binary("compare_rustc_commands") { |
| testonly = true |
| main_source = "compare_rustc_commands.py" |
| sources = [ |
| "//build/api/ninja_artifacts.py", |
| "//build/bazel/scripts/bazel_build_args.py", |
| "//build/bazel/scripts/build_utils.py", |
| "build_command_query_utils.py", |
| "gn_runner.py", |
| "normalize_rustc_args.py", |
| "shell_utils.py", |
| ] |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":build_command_query_utils_test($host_toolchain)", |
| ":discover_migration_candidates_test($host_toolchain)", |
| ":normalize_rustc_args_test($host_toolchain)", |
| ":shell_utils_test($host_toolchain)", |
| ] |
| } |