test: compare compiled modules with the Lua 5.4 interpreter

The generated code can only be trusted if it behaves like the reference
implementation, so the same script runs both ways and the outputs are diffed.
This commit is contained in:
BlackAngelTV committed 2026-11-18 08:48:05 +01:00
1 parent 1ededcd655
commit ea6fb41a48
5 files changed
+250

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
-- Reference driver: runs the same Lua module with the stock interpreter.
local path = arg[1] or "tests/lua/core.lua"
local results = dofile(path)
for i = 1, #results do
print(results[i])
end