Merge pull request #1361 from LORgames/ssurtees/simplifyTest
Simplified unit test to resolve path issues
This commit is contained in:
commit
af3509fbef
@ -4,19 +4,10 @@
|
|||||||
local suite = test.declare("gmake2_buildcommands")
|
local suite = test.declare("gmake2_buildcommands")
|
||||||
local gmake2 = premake.modules.gmake2
|
local gmake2 = premake.modules.gmake2
|
||||||
|
|
||||||
premake.api.register {
|
|
||||||
name = 'test_libdir', -- this controls the targetdir for StaticLib projects.
|
|
||||||
scope = 'config',
|
|
||||||
kind = 'path',
|
|
||||||
tokens = true,
|
|
||||||
pathVars = true,
|
|
||||||
}
|
|
||||||
|
|
||||||
local wks, prj, cfg
|
local wks, prj, cfg
|
||||||
|
|
||||||
function suite.setup()
|
function suite.setup()
|
||||||
wks = workspace("MyWorkspace")
|
wks = workspace("MyWorkspace")
|
||||||
test_libdir (path.join(_MAIN_SCRIPT_DIR, 'lib'))
|
|
||||||
configurations { "Debug", "Release" }
|
configurations { "Debug", "Release" }
|
||||||
prj = test.createProject(wks)
|
prj = test.createProject(wks)
|
||||||
end
|
end
|
||||||
@ -39,8 +30,8 @@ function suite.postbuildcommands()
|
|||||||
|
|
||||||
postbuildcommands
|
postbuildcommands
|
||||||
{
|
{
|
||||||
"mkdir %{cfg.test_libdir}/www",
|
"mkdir lib/www",
|
||||||
"mkdir %{cfg.test_libdir}/www"
|
"mkdir lib/www"
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare()
|
prepare()
|
||||||
|
Loading…
Reference in New Issue
Block a user