Fix test framework and luacheck, Add metadata cleanup ABM Added busted and contentdb badges
27 lines
514 B
Lua
27 lines
514 B
Lua
|
|
package.path = "../?.lua;./?.lua;machines/?.lua;" .. package.path
|
|
|
|
local _fixture_path = "spec/fixtures"
|
|
|
|
function fixture_path(name)
|
|
return string.format("%s/%s", _fixture_path, name)
|
|
end
|
|
|
|
local _fixtures = {}
|
|
function fixture(name)
|
|
if not _fixtures[name] then
|
|
dofile(fixture_path(name) .. ".lua")
|
|
end
|
|
_fixtures[name] = true
|
|
end
|
|
|
|
local _source_path = "."
|
|
|
|
function source_path(name)
|
|
return string.format("%s/%s", _source_path, name)
|
|
end
|
|
|
|
function sourcefile(name)
|
|
dofile(source_path(name) .. ".lua")
|
|
end
|