Roblox example: rotating surface + ImPlot3D demo window; test.sh runs it

This commit is contained in:
4DBug committed 2026-10-17 05:50:21 -05:00
1 parent 257c2bbf03
commit a6ddeb3ee4
2 files changed
+50 -2

No files matched your search

+4
View File
@@ -6,4 +6,8 @@ for t in tests/t_*.luau; do
out=$(python3 tools/core/tools/test/run.py --module ImPlot3D=ImPlot3D.lua --module ImPlot3DDemo=ImPlot3DDemo.lua --main "$t" --quiet --roblox 2>&1)
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=$(python3 tools/core/tools/test/run.py --module ImPlot3D=ImPlot3D.lua --module ImPlot3DDemo=ImPlot3DDemo.lua --main "$ex" --roblox 2>&1); rm -f "$ex"
if echo "$out" | grep -q "^avg frame"; then echo "PASS examples/roblox/main.client.luau"; else echo "FAIL examples/roblox/main.client.luau"; echo "$out" | tail -20; fail=1; fi
exit $fail