ImSequencer: port of ImGuizmo's ImSequencer (@105e4fd), tests, Roblox example (MySequence + ImCurveEdit RampEdit)

This commit is contained in:
4DBug committed 2026-10-17 08:24:33 -05:00
commit e972de80b4
16 files changed
+1723

No files matched your search

Executable
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Runs every tests/t_*.luau against the core (tools/core submodule) in the Roblox mock, and the Roblox example.
cd "$(dirname "$0")/.."
fail=0
run() { python3 tools/core/tools/test/run.py --module ImSequencer=ImSequencer.lua --module ImCurveEdit=tools/imcurveedit/ImCurveEdit.lua --roblox "$@" 2>&1; }
for t in tests/t_*.luau; do
out=$(run --main "$t" --quiet)
if echo "$out" | grep -q "^OK"; then echo "PASS $t"; else echo "FAIL $t"; echo "$out" | tail -20; fail=1; fi
done
# example LocalScript: 400 frames of random input (mock drives Stepped, not RenderStepped)
ex=$(mktemp --suffix=.luau); sed 's/RenderStepped/Stepped/' examples/roblox/main.client.luau > "$ex"
out=$(run --main "$ex")
rm -f "$ex"
if echo "$out" | grep -q "^avg frame"; then echo "PASS example"; else echo "FAIL example"; echo "$out" | tail -20; fail=1; fi
exit $fail