local compile_loop = require("compile_loop")
local _ = compile_loop.make({
name = "compile_loop",
runner = function()
return { ok = true, stdout = "PASS", stderr = "", exit_code = 0 }
end,
})
local ok, res = pcall(tool.call, "compile_loop", {
spec = "no-op spec",
target_file = "/tmp/dispatch_test_target.lua",
})
if not ok then
print("dispatch=err: " .. tostring(res))
return
end
if type(res) == "string" and res:find('"ok":', 1, true) then
print("dispatch=ok")
else
print("dispatch=unexpected: " .. tostring(res))
end