build: bootstrap Go toolchain and generated APIs

This commit is contained in:
2026-08-31 08:01:13 +00:00
parent a110e1df57
commit e23737de0d
24 changed files with 7618 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
set -eu
repo_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
package=./...
run=
race=false
while [ "$#" -gt 0 ]; do
case "$1" in
--package) package=$2; shift 2 ;;
--run) run=$2; shift 2 ;;
--race) race=true; shift ;;
*) echo "usage: scripts/test-unit [--package PATTERN] [--run REGEXP] [--race]" >&2; exit 2 ;;
esac
done
set -- go test -shuffle=on
if [ "$race" = true ]; then set -- "$@" -race; fi
if [ -n "$run" ]; then set -- "$@" -run "$run"; fi
set -- "$@" "$package"
cd "$repo_root"
exec docker compose -f deploy/compose.yaml run --rm toolchain "$@"