mix lua.suite (Lua v1.0.0-rc.2)
View SourceRuns every .lua file in test/lua53_tests/ against this VM and
prints a pass/fail summary.
Contributor-only task
This task is intended for development of the :lua library itself.
It is not shipped to Hex: the suite files under test/lua53_tests/
are downloaded into this repo via mix lua.get_tests and are not
part of the Hex package.
Unlike mix test --only lua53, this task does not consult the
hand-curated @ready_tests / @deferred_permanent lists in
test/lua53_suite_test.exs. It runs every file and reports
whatever happens, which makes it useful for spotting newly-passing
files (candidates to promote) and for sanity-checking the suite
set during development.
Usage
mix lua.suite
mix lua.suite --filter math
mix lua.suite --dir test/lua53_tests
mix lua.suite --verbose
mix lua.suite --status
mix lua.suite --auditOptions
--dir DIR— Directory containing the suite.luafiles (default:test/lua53_tests).--filter PATTERN— Run only files whose basename containsPATTERN(case-sensitive substring).--timeout MS— Per-file timeout in milliseconds. Files that exceed it are reported astimeout(default:30000).--verbose— Print the full error message for each failing file, not just the first line.--status— Print a per-file conformance summary fromtest/lua53_skips.exs. Fast, no tests run.--audit— For each skip entry, re-run the file with that entry removed and report whether it is stale (file passes without it). Slow.
Output
A summary like:
passing: 6
failing: 23
skipped: 0
passing files: api, bitwise, code, simple_test, tpack, vararg
failing files (top reason):
attrib.lua 'require' is sandboxed
big.lua attempt to compare a string with a number
...Exit codes
0— at least one file passed and--filtermatched something.1— directory missing, filter matched no files, or no files passed at all.