effil/tests/lua/run_tests
mihacooper 925494e7d5
impl_c_function_support (#170)
Implement C function support
2022-02-23 15:28:43 +03:00

32 lines
665 B
Lua
Executable File

#!/usr/bin/env lua
if jit then
print("Using LuaJIT")
else
print("Using " .. _VERSION)
end
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"
require "dump_table"
require "function"
if os.getenv("STRESS") then
require "channel-stress"
require "thread-stress"
require "gc-stress"
end
test.summary()