#!/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 "$@"
