Files
rules_bun/tests/script_test/run_script.sh
2026-03-06 19:51:52 +01:00

12 lines
199 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
binary="$1"
expected="$2"
output="$(${binary})"
if [[ ${output} != "${expected}" ]]; then
echo "Unexpected output from ${binary}: ${output}" >&2
exit 1
fi