test: add missing implementation-plan test targets

This commit is contained in:
Eric
2026-03-04 08:15:30 +00:00
parent 2ac5412fb0
commit 4c87b3cb0f
18 changed files with 205 additions and 1 deletions

View File

@@ -24,3 +24,22 @@ sh_test(
args = ["$(location :hello_ts_bin)", "hello-ts"],
data = [":hello_ts_bin"],
)
bun_binary(
name = "hello_js_with_data_bin",
entry_point = "hello.js",
data = ["payload.txt"],
)
sh_test(
name = "bun_binary_data_test",
srcs = ["verify_data_shape.sh"],
args = [
"$(location //internal:bun_binary.bzl)",
"$(location //tests/binary_test:BUILD.bazel)",
],
data = [
"//internal:bun_binary.bzl",
"//tests/binary_test:BUILD.bazel",
],
)

View File

@@ -0,0 +1 @@
hello-from-data

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
rule_file="$1"
build_file="$2"
grep -Eq 'files = \[bun_bin, entry_point\] \+ ctx\.files\.data' "${rule_file}"
grep -Eq 'name = "hello_js_with_data_bin"' "${build_file}"
grep -Eq 'data = \["payload\.txt"\]' "${build_file}"