feat: add Phase 1 model and 2D rink canvas
- 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
This commit is contained in:
parent
bd2f7aaf89
commit
b1e2bf5221
37 changed files with 1350 additions and 3 deletions
21
tools/test.sh
Executable file
21
tools/test.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue