test: add missing implementation-plan test targets

This commit is contained in:
Eric
2026-03-04 08:15:30 +00:00
parent acede71686
commit 02232fee79
18 changed files with 205 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
load("@rules_shell//shell:sh_test.bzl", "sh_test")
sh_test(
name = "examples_basic_e2e_build_test",
srcs = ["examples_basic_e2e_build_test.sh"],
args = [
"$(location //examples/basic:BUILD.bazel)",
"$(location //examples/basic:README.md)",
],
data = [
"//examples/basic:BUILD.bazel",
"//examples/basic:README.md",
],
)
sh_test(
name = "repo_all_targets_test",
srcs = ["repo_all_targets_test.sh"],
args = ["$(location //.github/workflows:ci.yml)"],
data = ["//.github/workflows:ci.yml"],
)

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
build_file="$1"
readme_file="$2"
[[ -f "${build_file}" ]]
[[ -f "${readme_file}" ]]
grep -Eq '^package\(default_visibility = \["//visibility:public"\]\)$' "${build_file}"

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
workflow_file="$1"
grep -Eq 'bazel test //tests/\.\.\.' "${workflow_file}" || grep -Eq 'bazel test //\.\.\.' "${workflow_file}"