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
--
local sln, prj
local wks, prj
function suite.setup()
sln = test.createsolution()
wks = test.createWorkspace()
toolset "clang"
prj = premake.solution.getproject(sln, 1)
prj = premake.workspace.getproject(wks, 1)
end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -14,15 +14,15 @@
-- Setup
--
local sln, prj
local wks, prj
function suite.setup()
_ACTION = "vs2008"
sln, prj = test.createsolution()
wks, prj = test.createWorkspace()
end
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))
end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -12,14 +12,14 @@
-- Setup and teardown
--
local sln
local wks
function suite.setup()
sln = solution("MySolution")
wks = solution("MySolution")
end
local function prepare()
_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 "")
end
_p(2,"-")

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