test(config): fix busted config to run teal code
This commit is contained in:
parent
bd29c81658
commit
a567eb6cdd
16
.busted
16
.busted
|
@ -1,8 +1,20 @@
|
|||
-- Adds the sources to Lua's path so that busted can find all the modules
|
||||
require "set_paths"
|
||||
require("tl").loader()
|
||||
|
||||
local version <const> = _VERSION:match "%d+%.%d+"
|
||||
|
||||
local function lua_module_paths(module_base_path)
|
||||
local paths = (module_base_path .. "/?.lua;")
|
||||
.. (module_base_path .. "/?/init.lua;")
|
||||
|
||||
return paths
|
||||
end
|
||||
|
||||
return {
|
||||
default = {
|
||||
lpath = lua_module_paths("lua_modules/share/lua/" .. version)
|
||||
.. lua_module_paths "types"
|
||||
.. lua_module_paths "./src/awesomewm.d.tl",
|
||||
cpath = "lua_modules/lib/lua/" .. version .. "/?.so;",
|
||||
loaders = { "teal" },
|
||||
},
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
"justfile",
|
||||
"libc",
|
||||
"lldebugger",
|
||||
"lpath",
|
||||
"Luacheck",
|
||||
"luacheckrc",
|
||||
"luafilesystem",
|
||||
|
|
Loading…
Reference in New Issue