effil/tests/lua/run_tests
Andy Li 864c240cdd Actually running tests in Appveyor (#87)
Implement test run for AppVeyor and adapt them for Windows
2017-10-10 12:17:05 +03:00

24 lines
569 B
Lua
Executable File

#!/usr/bin/env lua
local scripts_path = arg[0]:gsub("[\\/]run_tests", "")
local src_path = scripts_path .. "/../.."
package.path = ";" .. scripts_path .. "/?.lua;"
.. src_path .. "/src/lua/?.lua;"
.. src_path .. "/libs/u-test/?.lua"
package.cpath = "./?.so;" .. package.cpath
require "type"
require "gc"
require "channel"
require "thread"
require "shared-table"
require "metatable"
require "type_mismatch"
if os.getenv("STRESS") then
require "channel-stress"
require "thread-stress"
require "gc-stress"
end
test.summary()