effil/tests/lua/run_tests
2018-11-25 01:12:20 +03:00

26 lines
574 B
Lua
Executable File

#!/usr/bin/env lua
print("Using " .. _VERSION)
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"
require "type"
require "gc"
require "channel"
require "thread"
require "shared-table"
require "metatable"
require "type_mismatch"
require "upvalues"
if os.getenv("STRESS") then
require "channel-stress"
require "thread-stress"
require "gc-stress"
end
test.summary()