- isolate the legacy 3D test under prototype/3d_test - add typed Routine, RoutineSection, PathSegment and RinkDimensions resources - add headless model and canvas tests (103 assertions) - add CanvasTransform and RinkCanvas with pan, zoom and touch pinch - add whiteboard main scene and platform renderer overrides - document architecture decisions in docs/architecture.md
21 lines
627 B
Bash
Executable file
21 lines
627 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
PROJECT_DIR="$REPO_ROOT/rinkplanner"
|
|
GODOT="${GODOT:-/opt/godot/Godot_v4.7.2-stable_linux.x86_64}"
|
|
|
|
if [[ ! -x "$GODOT" ]]; then
|
|
echo "Godot binary not found: $GODOT" >&2
|
|
echo "Set GODOT=/path/to/godot" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Import once so global class names and resources are registered.
|
|
"$GODOT" --headless --path "$PROJECT_DIR" --import >/dev/null
|
|
|
|
"$GODOT" --headless --path "$PROJECT_DIR" \
|
|
--script res://tests/run_model_tests.gd
|
|
|
|
"$GODOT" --headless --path "$PROJECT_DIR" \
|
|
--script res://tests/run_canvas_tests.gd
|