Changes names in core test suites

This commit is contained in:
Jason Perkins 2015-08-28 16:16:14 -04:00
parent 04a7170d6c
commit 14525e8161
109 changed files with 320 additions and 317 deletions

View File

@ -14,12 +14,12 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
toolset "clang" toolset "clang"
prj = premake.solution.getproject(sln, 1) prj = premake.workspace.getproject(wks, 1)
end end

View File

@ -13,15 +13,15 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
premake.escaper(make.esc) premake.escaper(make.esc)
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.workspace.getproject(wks, 1)
make.cppFileRules(prj) make.cppFileRules(prj)
end end

View File

@ -13,10 +13,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare(calls) local function prepare(calls)

View File

@ -13,11 +13,11 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_OS = "linux" _OS = "linux"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare(calls) local function prepare(calls)
@ -92,7 +92,7 @@
function suite.links_onSiblingStaticLib() function suite.links_onSiblingStaticLib()
links "MyProject2" links "MyProject2"
test.createproject(sln) test.createproject(wks)
kind "StaticLib" kind "StaticLib"
location "build" location "build"
@ -112,7 +112,7 @@
function suite.links_onSiblingSharedLib() function suite.links_onSiblingSharedLib()
links "MyProject2" links "MyProject2"
test.createproject(sln) test.createproject(wks)
kind "SharedLib" kind "SharedLib"
location "build" location "build"
@ -132,7 +132,7 @@
links "MyProject2" links "MyProject2"
flags { "RelativeLinks" } flags { "RelativeLinks" }
test.createproject(sln) test.createproject(wks)
kind "SharedLib" kind "SharedLib"
location "build" location "build"

View File

@ -14,9 +14,9 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepareVars() local function prepareVars()

View File

@ -13,14 +13,14 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
make.cppObjects(prj) make.cppObjects(prj)
end end

View File

@ -13,10 +13,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -17,7 +17,7 @@
local cfg local cfg
function suite.setup() function suite.setup()
local sln, prj = test.createsolution() local wks, prj = test.createWorkspace()
cfg = test.getconfig(prj, "Debug") cfg = test.getconfig(prj, "Debug")
end end

View File

@ -16,7 +16,7 @@
local cfg local cfg
function suite.setup() function suite.setup()
local sln, prj = test.createsolution() local wks, prj = test.createWorkspace()
system "wii" system "wii"
flags "Symbols" flags "Symbols"
cfg = test.getconfig(prj, "Debug") cfg = test.getconfig(prj, "Debug")

View File

@ -14,14 +14,14 @@
-- Setup -- Setup
-- --
local sln, prj, cfg local wks, prj, cfg
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.workspace.getproject(wks, 1)
make.csEmbedFiles(prj, premake.tools.dotnet) make.csEmbedFiles(prj, premake.tools.dotnet)
end end

View File

@ -14,10 +14,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -13,10 +13,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()
@ -44,11 +44,11 @@
function suite.doesListLinkDependencyFiles() function suite.doesListLinkDependencyFiles()
links { "MyProject2", "MyProject3" } links { "MyProject2", "MyProject3" }
test.createproject(sln) test.createproject(wks)
kind "SharedLib" kind "SharedLib"
language "C#" language "C#"
test.createproject(sln) test.createproject(wks)
kind "SharedLib" kind "SharedLib"
language "C#" language "C#"

View File

@ -13,14 +13,14 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = test.getproject(sln, 1) prj = test.getproject(wks, 1)
end end

View File

@ -14,14 +14,14 @@
-- Setup -- Setup
-- --
local sln, prj, cfg local wks, prj, cfg
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.workspace.getproject(wks, 1)
make.csSources(prj, premake.tools.dotnet) make.csSources(prj, premake.tools.dotnet)
end end

View File

@ -13,14 +13,14 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
make.configmap(sln) make.configmap(wks)
end end

View File

@ -13,14 +13,14 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.workspace.getproject(wks, 1)
make.defaultconfig(prj) make.defaultconfig(prj)
end end

View File

@ -12,21 +12,21 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln local wks
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
group "MainGroup" group "MainGroup"
test.createproject(sln) test.createproject(wks)
group "MainGroup/SubGroup1" group "MainGroup/SubGroup1"
test.createproject(sln) test.createproject(wks)
group "MainGroup/SubGroup2" group "MainGroup/SubGroup2"
test.createproject(sln) test.createproject(wks)
test.createproject(sln) test.createproject(wks)
end end
local function prepare() local function prepare()
sln = test.getsolution(sln) wks = test.getWorkspace(wks)
end end
@ -36,7 +36,7 @@
function suite.groupRule_groupAsPhony() function suite.groupRule_groupAsPhony()
prepare() prepare()
make.solutionPhonyRule(sln) make.workspacePhonyRule(wks)
test.capture [[ test.capture [[
.PHONY: all clean help $(PROJECTS) MainGroup MainGroup/SubGroup1 MainGroup/SubGroup2 .PHONY: all clean help $(PROJECTS) MainGroup MainGroup/SubGroup1 MainGroup/SubGroup2
]] ]]
@ -47,7 +47,7 @@
-- --
function suite.groupRule_groupRules() function suite.groupRule_groupRules()
prepare() prepare()
make.groupRules(sln) make.groupRules(wks)
test.capture [[ test.capture [[
MainGroup: MainGroup/SubGroup1 MainGroup/SubGroup2 MyProject2 MainGroup: MainGroup/SubGroup1 MainGroup/SubGroup2 MyProject2

View File

@ -11,15 +11,15 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln local wks
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
sln = test.getsolution(sln) wks = test.getWorkspace(wks)
premake.make.helprule(sln) premake.make.helprule(wks)
end end

View File

@ -11,16 +11,16 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln local wks
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
premake.oven.bake() premake.oven.bake()
sln = test.getsolution(sln) wks = test.getWorkspace(wks)
premake.make.projectrules(sln) premake.make.projectrules(wks)
end end

View File

@ -12,10 +12,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -13,17 +13,17 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2005" _ACTION = "vs2005"
sln = test.createsolution() wks = test.createWorkspace()
language "C#" language "C#"
uuid "AE61726D-187C-E440-BD07-2556188A6565" uuid "AE61726D-187C-E440-BD07-2556188A6565"
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
cs2005.projectProperties(prj) cs2005.projectProperties(prj)
end end

View File

@ -13,16 +13,16 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln = test.createsolution() wks = test.createWorkspace()
language "C#" language "C#"
end end
local function prepare(platform) local function prepare(platform)
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
cs2005.assemblyReferences(prj) cs2005.assemblyReferences(prj)
end end

View File

@ -12,15 +12,15 @@
-- Setup -- Setup
-- --
local sln, prj, cfg local wks, prj, cfg
function suite.setup() function suite.setup()
premake.escaper(premake.vstudio.vs2010.esc) premake.escaper(premake.vstudio.vs2010.esc)
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare(platform) local function prepare(platform)
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
cs2005.buildEvents(prj) cs2005.buildEvents(prj)
end end

View File

@ -12,16 +12,16 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2012" _ACTION = "vs2012"
sln = test.createsolution() wks = test.createWorkspace()
language "C#" language "C#"
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
cs2005.commonProperties(prj) cs2005.commonProperties(prj)
end end

View File

@ -13,11 +13,11 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2005" _ACTION = "vs2005"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -13,11 +13,11 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2005" _ACTION = "vs2005"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -12,14 +12,14 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
cs2005.files(prj) cs2005.files(prj)
end end

View File

@ -12,14 +12,14 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
cs2005.applicationIcon(prj) cs2005.applicationIcon(prj)
end end

View File

@ -13,11 +13,11 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2005" _ACTION = "vs2005"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
language "C#" language "C#"
end end

View File

@ -13,17 +13,17 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln = test.createsolution() wks = test.createWorkspace()
uuid "00112233-4455-6677-8888-99AABBCCDDEE" uuid "00112233-4455-6677-8888-99AABBCCDDEE"
test.createproject(sln) test.createproject(wks)
end end
local function prepare(platform) local function prepare(platform)
prj = premake.solution.getproject(sln, 2) prj = premake.solution.getproject(wks, 2)
cs2005.projectReferences(prj) cs2005.projectReferences(prj)
end end

View File

@ -12,16 +12,16 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2012" _ACTION = "vs2012"
sln = test.createsolution() wks = test.createWorkspace()
language "C#" language "C#"
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
cs2005.targets(prj) cs2005.targets(prj)
end end

View File

@ -12,16 +12,16 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln = test.createsolution() wks = test.createWorkspace()
language "C#" language "C#"
end end
local function prepare() local function prepare()
local prj = test.getproject(sln, 1) local prj = test.getproject(wks, 1)
cs2005.generateUser(prj) cs2005.generateUser(prj)
end end

View File

@ -13,15 +13,15 @@
-- Setup -- Setup
-- --
local sln, prj1, prj2 local wks, prj1, prj2
function suite.setup() function suite.setup()
_ACTION = "vs2005" _ACTION = "vs2005"
sln, prj1 = test.createsolution() wks, prj1 = test.createWorkspace()
uuid "AE61726D-187C-E440-BD07-2556188A6565" uuid "AE61726D-187C-E440-BD07-2556188A6565"
prj2 = test.createproject(sln) prj2 = test.createproject(wks)
uuid "2151E83B-997F-4A9D-955D-380157E88C31" uuid "2151E83B-997F-4A9D-955D-380157E88C31"
prj3 = test.createproject(sln) prj3 = test.createproject(wks)
uuid "CAA68162-8B96-11E1-8D5E-5885BBE59B18" uuid "CAA68162-8B96-11E1-8D5E-5885BBE59B18"
links "MyProject" links "MyProject"
dependson "MyProject2" dependson "MyProject2"
@ -30,10 +30,10 @@
local function prepare(language) local function prepare(language)
prj1.language = language prj1.language = language
prj2.language = language prj2.language = language
prj2 = premake.solution.getproject(sln, 2) prj2 = premake.solution.getproject(wks, 2)
sln2005.projectdependencies(prj2) sln2005.projectdependencies(prj2)
prj3.language = language prj3.language = language
prj3 = premake.solution.getproject(sln, 3) prj3 = premake.solution.getproject(wks, 3)
sln2005.projectdependencies(prj3) sln2005.projectdependencies(prj3)
end end

View File

@ -12,10 +12,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -13,18 +13,18 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln = solution "MySolution" wks = solution "MySolution"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
language "C++" language "C++"
kind "ConsoleApp" kind "ConsoleApp"
end end
local function prepare() local function prepare()
sln2005.NestedProjects(sln) sln2005.NestedProjects(wks)
end end

View File

@ -12,11 +12,11 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln = solution("MySolution") wks = solution("MySolution")
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
language "C++" language "C++"
end end
@ -24,8 +24,8 @@
local function prepare(lang) local function prepare(lang)
filter {} filter {}
uuid "C9135098-6047-8142-B10E-D27E7F73FCB3" uuid "C9135098-6047-8142-B10E-D27E7F73FCB3"
sln = test.getsolution(sln) wks = test.getsolution(wks)
sln2005.configurationPlatforms(sln) sln2005.configurationPlatforms(wks)
end end

View File

@ -12,19 +12,19 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
premake.escaper(premake.vstudio.vs2005.esc) premake.escaper(premake.vstudio.vs2005.esc)
sln = solution "MySolution" wks = solution "MySolution"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
language "C++" language "C++"
kind "ConsoleApp" kind "ConsoleApp"
end end
local function prepare() local function prepare()
sln2005.reorderProjects(sln) sln2005.reorderProjects(wks)
sln2005.projects(sln) sln2005.projects(wks)
end end

View File

@ -12,15 +12,15 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
clr "On" clr "On"
end end
local function prepare(platform) local function prepare(platform)
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
vc200x.assemblyReferences(prj) vc200x.assemblyReferences(prj)
end end

View File

@ -12,11 +12,11 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
premake.escaper(premake.vstudio.vs2005.esc) premake.escaper(premake.vstudio.vs2005.esc)
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -12,11 +12,11 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -14,15 +14,15 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()
local cfg = test.getconfig(prj, "Debug", (prj.platforms or sln.platforms or {})[1]) local cfg = test.getconfig(prj, "Debug", (prj.platforms or wks.platforms or {})[1])
vc200x.configuration(cfg, vstudio.projectConfig(cfg)) vc200x.configuration(cfg, vstudio.projectConfig(cfg))
end end

View File

@ -13,11 +13,11 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
premake.escaper(premake.vstudio.vs2005.esc) premake.escaper(premake.vstudio.vs2005.esc)
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -12,12 +12,12 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln = solution("MySolution") wks = solution("MySolution")
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
platforms { "Zeus", "Ares" } platforms { "Zeus", "Ares" }
language "C++" language "C++"

View File

@ -12,16 +12,16 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
premake.escaper(premake.vstudio.vs2005.esc) premake.escaper(premake.vstudio.vs2005.esc)
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = test.getproject(sln, 1) prj = test.getproject(wks, 1)
vc200x.files(prj) vc200x.files(prj)
end end

View File

@ -12,12 +12,12 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
premake.escaper(premake.vstudio.vs2005.esc) premake.escaper(premake.vstudio.vs2005.esc)
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -12,11 +12,11 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -12,11 +12,11 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
premake.escaper(premake.vstudio.vs2005.esc) premake.escaper(premake.vstudio.vs2005.esc)
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
kind "Makefile" kind "Makefile"
end end

View File

@ -13,15 +13,15 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
vc200x.platforms(prj) vc200x.platforms(prj)
end end

View File

@ -12,16 +12,16 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = 'vs2008' _ACTION = 'vs2008'
sln = test.createsolution() wks = test.createWorkspace()
uuid "AE61726D-187C-E440-BD07-2556188A6565" uuid "AE61726D-187C-E440-BD07-2556188A6565"
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
vc200x.visualStudioProject(prj) vc200x.visualStudioProject(prj)
end end

View File

@ -13,17 +13,17 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln = test.createsolution() wks = test.createWorkspace()
uuid "00112233-4455-6677-8888-99AABBCCDDEE" uuid "00112233-4455-6677-8888-99AABBCCDDEE"
test.createproject(sln) test.createproject(wks)
end end
local function prepare(platform) local function prepare(platform)
prj = premake.solution.getproject(sln, 2) prj = premake.solution.getproject(wks, 2)
vc200x.projectReferences(prj) vc200x.projectReferences(prj)
end end

View File

@ -12,11 +12,11 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -12,15 +12,15 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
_ACTION = "vs2008" _ACTION = "vs2008"
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
local prj = test.getproject(sln, 1) local prj = test.getproject(wks, 1)
vc200x.generateUser(prj) vc200x.generateUser(prj)
end end

View File

@ -12,15 +12,15 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
clr "On" clr "On"
end end
local function prepare(platform) local function prepare(platform)
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
vc2010.assemblyReferences(prj) vc2010.assemblyReferences(prj)
end end

View File

@ -12,15 +12,15 @@
-- Setup -- Setup
-- --
local sln, prj, cfg local wks, prj, cfg
function suite.setup() function suite.setup()
premake.escaper(premake.vstudio.vs2010.esc) premake.escaper(premake.vstudio.vs2010.esc)
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare(platform) local function prepare(platform)
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
vc2010.buildEvents(prj) vc2010.buildEvents(prj)
end end

View File

@ -12,10 +12,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare(platform) local function prepare(platform)

View File

@ -13,10 +13,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare(platform) local function prepare(platform)

View File

@ -13,11 +13,11 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -13,10 +13,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -12,12 +12,12 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln = solution("MySolution") wks = solution("MySolution")
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
platforms { "Zeus", "Ares" } platforms { "Zeus", "Ares" }
language "C++" language "C++"

View File

@ -13,16 +13,16 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
rule "MyRules" rule "MyRules"
rule "MyOtherRules" rule "MyOtherRules"
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
local prj = test.getproject(sln) local prj = test.getproject(wks)
vc2010.importExtensionSettings(prj) vc2010.importExtensionSettings(prj)
end end

View File

@ -13,16 +13,16 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
rule "MyRules" rule "MyRules"
rule "MyOtherRules" rule "MyOtherRules"
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
local prj = test.getproject(sln) local prj = test.getproject(wks)
vc2010.importExtensionTargets(prj) vc2010.importExtensionTargets(prj)
end end

View File

@ -12,7 +12,7 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
@ -25,11 +25,11 @@
separator = ";" separator = ";"
} }
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
vc2010.files(prj) vc2010.files(prj)
end end

View File

@ -12,15 +12,15 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = test.getproject(sln) prj = test.getproject(wks)
vc2010.uniqueIdentifiers(prj) vc2010.uniqueIdentifiers(prj)
end end

View File

@ -12,15 +12,15 @@
-- Setup/teardown -- Setup/teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare(group) local function prepare(group)
prj = test.getproject(sln) prj = test.getproject(wks)
vc2010.filterGroups(prj) vc2010.filterGroups(prj)
end end

View File

@ -10,11 +10,11 @@
local m = premake.vstudio.vc2010 local m = premake.vstudio.vc2010
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -12,15 +12,15 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
vc2010.globals(prj) vc2010.globals(prj)
end end

View File

@ -13,10 +13,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
platforms "xbox360" platforms "xbox360"
end end

View File

@ -13,10 +13,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare(buildcfg) local function prepare(buildcfg)

View File

@ -13,11 +13,11 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
kind "SharedLib" kind "SharedLib"
end end
@ -221,7 +221,7 @@
function suite.excludeSiblings() function suite.excludeSiblings()
links { "MyProject2" } links { "MyProject2" }
test.createproject(sln) test.createproject(wks)
kind "SharedLib" kind "SharedLib"
prepare() prepare()
test.capture [[ test.capture [[
@ -241,7 +241,7 @@
function suite.includeSiblings_onNoImplicitLink() function suite.includeSiblings_onNoImplicitLink()
flags { "NoImplicitLink" } flags { "NoImplicitLink" }
links { "MyProject2" } links { "MyProject2" }
test.createproject(sln) test.createproject(wks)
kind "SharedLib" kind "SharedLib"
prepare() prepare()
test.capture [[ test.capture [[

View File

@ -13,11 +13,11 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
kind "ConsoleApp" kind "ConsoleApp"
end end

View File

@ -12,11 +12,11 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
kind "Makefile" kind "Makefile"
end end

View File

@ -12,11 +12,11 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -12,11 +12,11 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2012" _ACTION = "vs2012"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
files "hello.cpp" files "hello.cpp"
end end

View File

@ -12,15 +12,15 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
vc2010.projectConfigurations(prj) vc2010.projectConfigurations(prj)
end end

View File

@ -13,17 +13,17 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln = test.createsolution() wks = test.createWorkspace()
uuid "00112233-4455-6677-8888-99AABBCCDDEE" uuid "00112233-4455-6677-8888-99AABBCCDDEE"
test.createproject(sln) test.createproject(wks)
end end
local function prepare(platform) local function prepare(platform)
prj = premake.solution.getproject(sln, 2) prj = premake.solution.getproject(wks, 2)
vc2010.projectReferences(prj) vc2010.projectReferences(prj)
end end

View File

@ -13,10 +13,10 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -13,11 +13,11 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
premake.escaper(premake.vstudio.vs2010.esc) premake.escaper(premake.vstudio.vs2010.esc)
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -15,11 +15,11 @@
-- Setup -- Setup
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
rule "MyRule" rule "MyRule"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
rules { "MyRule" } rules { "MyRule" }
end end

View File

@ -12,15 +12,15 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
local prj = test.getproject(sln, 1) local prj = test.getproject(wks, 1)
vc2010.generateUser(prj) vc2010.generateUser(prj)
end end

View File

@ -10,11 +10,11 @@
local m = premake.vstudio.vc2010 local m = premake.vstudio.vc2010
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "vs2010" _ACTION = "vs2010"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare() local function prepare()

View File

@ -18,7 +18,7 @@
kind = "boolean", kind = "boolean",
scope = "project", scope = "project",
} }
test.createsolution() test.createWorkspace()
end end
function suite.teardown() function suite.teardown()

View File

@ -19,7 +19,7 @@
list = true, list = true,
scope = "project" scope = "project"
} }
test.createsolution() test.createWorkspace()
end end
function suite.teardown() function suite.teardown()

View File

@ -21,7 +21,7 @@
scope = "project", scope = "project",
allowed = { "first", "second", "third" } allowed = { "first", "second", "third" }
} }
test.createsolution() test.createWorkspace()
end end
function suite.teardown() function suite.teardown()

View File

@ -19,7 +19,7 @@
kind = "path", kind = "path",
scope = "project" scope = "project"
} }
test.createsolution() test.createWorkspace()
end end
function suite.teardown() function suite.teardown()

View File

@ -20,7 +20,7 @@
scope = "project", scope = "project",
allowed = { "One", "Two", "Three" }, allowed = { "One", "Two", "Three" },
} }
test.createsolution() test.createWorkspace()
end end
function suite.teardown() function suite.teardown()

View File

@ -14,7 +14,7 @@
function suite.setup() function suite.setup()
api.register { name = "testapi", kind = "table", scope = "project" } api.register { name = "testapi", kind = "table", scope = "project" }
test.createsolution() test.createWorkspace()
end end
function suite.teardown() function suite.teardown()

View File

@ -52,8 +52,8 @@
-- --
function suite.expandsNestedTokens() function suite.expandsNestedTokens()
environ.sln = { name="MySolution%{'X'}" } environ.wks = { name="MySolution%{'X'}" }
x = detoken.expand("%{sln.name}", environ) x = detoken.expand("%{wks.name}", environ)
test.isequal("MySolutionX", x) test.isequal("MySolutionX", x)
end end

View File

@ -14,14 +14,14 @@
-- Setup -- Setup
-- --
local sln local wks
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = test.getproject(sln, 1) prj = test.getproject(wks, 1)
end end
@ -72,7 +72,7 @@
function suite.worksWithSolution() function suite.worksWithSolution()
prepare() prepare()
test.isequal("MySolution", path.getname(p.filename(sln))) test.isequal("MySolution", path.getname(p.filename(wks)))
end end

View File

@ -12,11 +12,11 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "test" _ACTION = "test"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
kind "StaticLib" kind "StaticLib"
system "Windows" system "Windows"
end end

View File

@ -12,12 +12,12 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "test" _ACTION = "test"
_OS = "windows" _OS = "windows"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function prepare(kind, part, linkage) local function prepare(kind, part, linkage)

View File

@ -12,11 +12,11 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
_ACTION = "test" _ACTION = "test"
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
system "macosx" system "macosx"
end end

View File

@ -8,7 +8,7 @@
local oven = premake.oven local oven = premake.oven
local solution = premake.solution local solution = premake.solution
local sln, prj local wks, prj
-- --
@ -16,12 +16,12 @@
-- --
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
sln = test.getsolution(sln) wks = test.getsolution(wks)
prj = test.getproject(sln, 1) prj = test.getproject(wks, 1)
end end

View File

@ -7,7 +7,7 @@
local suite = test.declare("oven_objdirs") local suite = test.declare("oven_objdirs")
local oven = premake.oven local oven = premake.oven
local sln, prj local wks, prj
--- ---
-- Setup -- Setup
@ -24,7 +24,7 @@
function suite.singleProject_noPlatforms() function suite.singleProject_noPlatforms()
sln = solution "MySolution" wks = solution "MySolution"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
prj = project "MyProject" prj = project "MyProject"
@ -34,18 +34,18 @@
function suite.multipleProjects_noPlatforms() function suite.multipleProjects_noPlatforms()
sln = solution "MySolution" wks = solution "MySolution"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
prj = project "MyProject" prj = project "MyProject"
project "MyProject2" project "MyProject2"
test.createproject(sln) test.createproject(wks)
test.isequal("obj/Debug/MyProject", result("Debug")) test.isequal("obj/Debug/MyProject", result("Debug"))
end end
function suite.singleProject_withPlatforms() function suite.singleProject_withPlatforms()
sln = solution "MySolution" wks = solution "MySolution"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
platforms { "x86", "x86_64" } platforms { "x86", "x86_64" }
prj = project "MyProject" prj = project "MyProject"
@ -55,7 +55,7 @@
function suite.singleProject_uniqueByTokens_noPlatforms() function suite.singleProject_uniqueByTokens_noPlatforms()
sln = solution "MySolution" wks = solution "MySolution"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
prj = project "MyProject" prj = project "MyProject"
objdir "obj/%{cfg.buildcfg}" objdir "obj/%{cfg.buildcfg}"
@ -65,7 +65,7 @@
function suite.singleProject_uniqueByTokens_withPlatforms() function suite.singleProject_uniqueByTokens_withPlatforms()
sln = solution "MySolution" wks = solution "MySolution"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
platforms { "x86", "x86_64" } platforms { "x86", "x86_64" }
prj = project "MyProject" prj = project "MyProject"
@ -76,7 +76,7 @@
function suite.allowOverlap_onPrefixCode() function suite.allowOverlap_onPrefixCode()
sln = solution "MySolution" wks = solution "MySolution"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
platforms { "x86", "x86_64" } platforms { "x86", "x86_64" }
prj = project "MyProject" prj = project "MyProject"

View File

@ -11,15 +11,15 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj, cfg local wks, prj, cfg
function suite.setup() function suite.setup()
sln = solution("MySolution") wks = solution("MySolution")
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
end end
local function prepare(buildcfg, platform) local function prepare(buildcfg, platform)
prj = sln.projects[1] prj = wks.projects[1]
cfg = test.getconfig(prj, buildcfg or "Debug", platform) cfg = test.getconfig(prj, buildcfg or "Debug", platform)
end end

View File

@ -12,10 +12,10 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = solution("MySolution") wks = solution("MySolution")
end end
local function prepare(buildcfgs) local function prepare(buildcfgs)
@ -23,7 +23,7 @@
if buildcfgs then if buildcfgs then
configurations ( buildcfgs ) configurations ( buildcfgs )
end end
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
for cfg in premake.project.eachconfig(prj) do for cfg in premake.project.eachconfig(prj) do
_p(2,'%s:%s', cfg.buildcfg or "", cfg.platform or "") _p(2,'%s:%s', cfg.buildcfg or "", cfg.platform or "")
end end

View File

@ -10,15 +10,15 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj, cfg local wks, prj, cfg
function suite.setup() function suite.setup()
sln = solution("MySolution") wks = solution("MySolution")
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
end end
local function prepare(buildcfg, platform) local function prepare(buildcfg, platform)
prj = sln.projects[1] prj = wks.projects[1]
cfg = test.getconfig(prj, buildcfg or "Debug", platform) cfg = test.getconfig(prj, buildcfg or "Debug", platform)
end end

View File

@ -11,14 +11,14 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln = test.createsolution() wks = test.createWorkspace()
end end
local function prepare() local function prepare()
prj = premake.solution.getproject(sln, 1) prj = premake.solution.getproject(wks, 1)
end end

View File

@ -12,13 +12,13 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
local cwd = os.getcwd() local cwd = os.getcwd()
local oldcwd local oldcwd
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
-- We change the directory to get nice relative paths -- We change the directory to get nice relative paths
oldcwd = os.getcwd() oldcwd = os.getcwd()

View File

@ -12,10 +12,10 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln, prj local wks, prj
function suite.setup() function suite.setup()
sln, prj = test.createsolution() wks, prj = test.createWorkspace()
end end
local function run() local function run()

View File

@ -12,14 +12,14 @@
-- Setup and teardown -- Setup and teardown
-- --
local sln local wks
function suite.setup() function suite.setup()
sln = solution("MySolution") wks = solution("MySolution")
end end
local function prepare() local function prepare()
_p(2,"-") _p(2,"-")
for cfg in premake.solution.eachconfig(sln) do for cfg in premake.solution.eachconfig(wks) do
_p(2, "%s:%s", cfg.buildcfg or "", cfg.platform or "") _p(2, "%s:%s", cfg.buildcfg or "", cfg.platform or "")
end end
_p(2,"-") _p(2,"-")

Some files were not shown because too many files have changed in this diff Show More