Logic Simulator example UI (LogicUI), Delete-key test

This commit is contained in:
4DBug committed 2026-10-17 06:19:09 -05:00
1 parent 53d4cfba75
commit d471cb855c
5 files changed
+253 -172

No files matched your search

+2 -2
View File
@@ -3,11 +3,11 @@
cd "$(dirname "$0")/.."
fail=0
for t in tests/t_*.luau; do
out=$(python3 tools/core/tools/test/run.py --module ImNodes=ImNodes.lua --module LogicSim=examples/roblox/LogicSim.lua --main "$t" --quiet --roblox 2>&1)
out=$(python3 tools/core/tools/test/run.py --module ImNodes=ImNodes.lua --module LogicSim=examples/roblox/LogicSim.lua --module LogicUI=examples/roblox/LogicUI.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 ImNodes=ImNodes.lua --module LogicSim=examples/roblox/LogicSim.lua --main "$ex" --roblox 2>&1); rm -f "$ex"
out=$(python3 tools/core/tools/test/run.py --module ImNodes=ImNodes.lua --module LogicSim=examples/roblox/LogicSim.lua --module LogicUI=examples/roblox/LogicUI.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