move tests out of setup (and keep it small)

This commit is contained in:
Enno Rehling 2010-03-22 18:19:53 -07:00
parent 9f0cd81086
commit b3dd1c40a7
4 changed files with 13 additions and 10 deletions

View file

@ -6,11 +6,6 @@ local paths = {
'external/lunit/?.lua'
}
tests = {
srcpath .. '/server/scripts/tests/common.lua',
srcpath .. '/eressea/scripts/tests/eressea.lua',
}
for idx, path in pairs(paths) do
package.path = srcpath .. '/' .. path .. ';' .. package.path
end

View file

@ -6,11 +6,6 @@ local paths = {
'external/lunit/?.lua'
}
tests = {
srcpath .. '/server/scripts/tests/common.lua',
srcpath .. '/eressea/scripts/tests/e3a.lua',
}
for idx, path in pairs(paths) do
package.path = srcpath .. '/' .. path .. ';' .. package.path
end

View file

@ -1,3 +1,10 @@
require "spells"
require "e3a.xmas2009"
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',
}

View file

@ -13,3 +13,9 @@ require "eressea.xmas2006"
require "eressea.embassy"
require "eressea.tunnels"
require "eressea.ents"
local srcpath = config.source_dir
tests = {
srcpath .. '/server/scripts/tests/common.lua',
srcpath .. '/eressea/scripts/tests/eressea.lua',
}