forked from github/server
move tests out of setup (and keep it small)
This commit is contained in:
parent
9f0cd81086
commit
b3dd1c40a7
4 changed files with 13 additions and 10 deletions
|
@ -6,11 +6,6 @@ local paths = {
|
||||||
'external/lunit/?.lua'
|
'external/lunit/?.lua'
|
||||||
}
|
}
|
||||||
|
|
||||||
tests = {
|
|
||||||
srcpath .. '/server/scripts/tests/common.lua',
|
|
||||||
srcpath .. '/eressea/scripts/tests/eressea.lua',
|
|
||||||
}
|
|
||||||
|
|
||||||
for idx, path in pairs(paths) do
|
for idx, path in pairs(paths) do
|
||||||
package.path = srcpath .. '/' .. path .. ';' .. package.path
|
package.path = srcpath .. '/' .. path .. ';' .. package.path
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,11 +6,6 @@ local paths = {
|
||||||
'external/lunit/?.lua'
|
'external/lunit/?.lua'
|
||||||
}
|
}
|
||||||
|
|
||||||
tests = {
|
|
||||||
srcpath .. '/server/scripts/tests/common.lua',
|
|
||||||
srcpath .. '/eressea/scripts/tests/e3a.lua',
|
|
||||||
}
|
|
||||||
|
|
||||||
for idx, path in pairs(paths) do
|
for idx, path in pairs(paths) do
|
||||||
package.path = srcpath .. '/' .. path .. ';' .. package.path
|
package.path = srcpath .. '/' .. path .. ';' .. package.path
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
require "spells"
|
require "spells"
|
||||||
require "e3a.xmas2009"
|
require "e3a.xmas2009"
|
||||||
require "e3a.rules"
|
require "e3a.rules"
|
||||||
|
|
||||||
|
local srcpath = config.source_dir
|
||||||
|
tests = {
|
||||||
|
srcpath .. '/eressea/scripts/tests/morale.lua',
|
||||||
|
srcpath .. '/server/scripts/tests/common.lua',
|
||||||
|
srcpath .. '/eressea/scripts/tests/e3a.lua',
|
||||||
|
}
|
||||||
|
|
|
@ -13,3 +13,9 @@ require "eressea.xmas2006"
|
||||||
require "eressea.embassy"
|
require "eressea.embassy"
|
||||||
require "eressea.tunnels"
|
require "eressea.tunnels"
|
||||||
require "eressea.ents"
|
require "eressea.ents"
|
||||||
|
|
||||||
|
local srcpath = config.source_dir
|
||||||
|
tests = {
|
||||||
|
srcpath .. '/server/scripts/tests/common.lua',
|
||||||
|
srcpath .. '/eressea/scripts/tests/eressea.lua',
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue