lua: conformance.sh + Python runner (writes scoreboard.{json,md})
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled

This commit is contained in:
2026-04-24 17:37:09 +00:00
parent d925be4768
commit 3ab8474e78
3 changed files with 363 additions and 1 deletions

13
lib/lua/conformance.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Lua-on-SX conformance runner — walks lib/lua/lua-tests/*.lua, runs each via
# `lua-eval-ast` on a long-lived sx_server.exe subprocess, classifies
# pass/fail/timeout, and writes lib/lua/scoreboard.{json,md}.
#
# Usage:
# bash lib/lua/conformance.sh # full suite
# bash lib/lua/conformance.sh --filter sort # filter by filename substring
# bash lib/lua/conformance.sh -v # per-file verbose
set -uo pipefail
cd "$(git rev-parse --show-toplevel)"
exec python3 lib/lua/conformance.py "$@"