premake/tests/actions/vs2012/test_vcxproj_config_props.lua
2013-09-13 11:52:00 -04:00

45 lines
1.0 KiB
Lua

---
-- tests/actions/vs2012/test_vcxproj_config_props.lua
-- Check the VC2012 extensions to the configuration properties block.
-- Copyright (c) 2013 Jason Perkins and the Premake project
---
local suite = test.declare("vs2012_vcxproj_config_props")
local vc2010 = premake.vstudio.vc2010
local project = premake.project
---
-- Setup
---
local sln, prj, cfg
function suite.setup()
_ACTION = "vs2012"
sln = test.createsolution()
end
local function prepare()
prj = premake.solution.getproject(sln, 1)
cfg = project.getconfig(prj, "Debug")
vc2010.configurationProperties(cfg)
end
---
-- Visual Studio 2012 adds a new <PlatformToolset> element.
---
function suite.addsPlatformToolset()
prepare()
test.capture [[
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v110</PlatformToolset>
</PropertyGroup>
]]
end