| load("@bazel_skylib//rules:build_test.bzl", "build_test") | |
| load("//python:pytest_test.bzl", "pytest_test") | |
| load("//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED") # buildifier: disable=bzl-visibility | |
| # Builds the cross-compiled release files in test runs too, e.g. with | |
| # --build_tests_only. | |
| build_test( | |
| name = "cross_compiled_artifacts_build_test", | |
| # Under WORKSPACE, rules_rust is a stub, so the target can't build; see | |
| # //dev/release_artifacts:artifacts_for_release. | |
| tags = [] if BZLMOD_ENABLED else ["manual"], | |
| targets = ["//dev/release_artifacts:cross_compiled_artifacts"], | |
| ) | |
| pytest_test( | |
| name = "sync_downloader_configs_test", | |
| srcs = ["sync_downloader_configs_test.py"], | |
| # LINT.IfChange(subworkspace_dirs) | |
| data = [ | |
| "//:downloader_configs", | |
| "//:gazelle_downloader_configs", | |
| "@sphinxdocs//:downloader_configs", | |
| ], | |
| # LINT.ThenChange(//tests/dev/sync_downloader_configs_test.py:subworkspace_dirs) | |
| deps = [ | |
| "//dev:sync_downloader_configs", | |
| "//python/runfiles", | |
| ], | |
| ) |