premake/modules/vstudio/tests/vc2010/test_header.lua
Reynald Brassard d152f0e5e4 Added support for Visual Studio 2019 solutions
Added tests for new action
Changed how vs2019 aquires latest target Platform

Added optional userToolsVersion to vstudio
2019-03-30 12:25:08 -07:00

48 lines
1.2 KiB
Lua

--
-- tests/actions/vstudio/vc2010/test_header.lua
-- Validate generation of the project file header block.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vc2010_header")
local vc2010 = p.vstudio.vc2010
--
-- If a default build target is specified, it should be included in the
-- generated Project element.
--
function suite.project_on2010()
p.action.set("vs2010")
vc2010.project()
test.capture [[
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
]]
end
function suite.project_on2011()
p.action.set("vs2012")
vc2010.project()
test.capture [[
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
]]
end
function suite.project_on2013()
p.action.set("vs2013")
vc2010.project()
test.capture [[
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
]]
end
function suite.project_on2019()
p.action.set("vs2019")
vc2010.project()
test.capture [[
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
]]
end