Version stays the upstream 5.5.4 (updatenotify broadcasts it); the Octo version is X-Octo-Version, shown in the options title and About page. tests/run.ps1 loads every file on DmorphOcto's LuaHost and starts each module in a mock 1.12 client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
591 B
PowerShell
11 lines
591 B
PowerShell
# Runs tests\run.lua through DmorphOcto's LuaHost (LuaJIT from OBS Studio with
|
|
# Lua 5.0 shims). LuaJIT accepts #, % and ... that 5.0 does not: run
|
|
# OctoBG\tools\LuaCheck.ps1 as well.
|
|
# powershell -ExecutionPolicy Bypass -File tests\run.ps1
|
|
$ErrorActionPreference = "Stop"
|
|
$root = Resolve-Path (Join-Path $PSScriptRoot "..")
|
|
$exe = Join-Path $root "..\DmorphOcto\tools\LuaHost\bin\LuaHost.exe"
|
|
if (-not (Test-Path $exe)) { throw "LuaHost not built: run DmorphOcto\tools\run_tests.ps1 once" }
|
|
Push-Location $root
|
|
try { & $exe "tests/run.lua"; exit $LASTEXITCODE } finally { Pop-Location }
|